open new terminal instance

This commit is contained in:
rileyrg 2021-05-27 00:02:09 +02:00
parent 0d916d9865
commit 08affc1439
3 changed files with 191 additions and 182 deletions

View file

@ -770,23 +770,10 @@ Use mako as the notification daemon
# Maintained in linux-config.org
set $mod Mod4
set $menu sway-launcher-fzf
for_window [title="sway-launcher"] floating enable
set $term 'sway-scratch-terminal'
set $term 'oneterminal'
set $menu 'sway-launcher-fzf'
set $editor 'sway-editor'
set $wallpaper "~/Pictures/Wallpapers/current"
set $laptop-id `sway-laptop-id`
set $trans 0.8
set $alphamark "α"
for_window [con_mark=$alphamark] opacity set $trans
bindsym $mod+Control+a mark --toggle "$alphamark" ; [con_id=__focused__] opacity set 1 ; [con_mark=$alphamark con_id=__focused__] opacity set $trans
set $monitor `swaymsg -t get_outputs | jq -r '.[0].name')`
exec sleep 2 && sway-notify $monitor
set $wallpaper '~/Pictures/Wallpapers/current'
include /etc/sway/config-vars.d/*
include config-vars.d/*
@ -807,32 +794,53 @@ bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
Bindsym $mod+Shift+r restart
output * bg $wallpaper fill
bindsym $mod+Shift+e exec $editor
bindsym $mod+d exec $menu
```
### display
1. lid :lid:clamshell:
### launcher
```conf
for_window [title="sway-launcher"] floating enable
```
### display
1. wallpaper
```conf
set $wallpaper "~/Pictures/Wallpapers/current"
output * bg $wallpaper fill
```
2. transparency
```conf
set $trans 0.8
set $alphamark "α"
for_window [con_mark=$alphamark] opacity set $trans
bindsym $mod+Control+a mark --toggle "$alphamark" ; [con_id=__focused__] opacity set 1 ; [con_mark=$alphamark con_id=__focused__] opacity set $trans
```
3. lid :lid:clamshell:
```conf
set $laptop-id `sway-laptop-id`
bindswitch lid:on exec "sway-screen disable $laptop-id"
bindswitch lid:off exec "sway-screen enable $laptop-id"
```
2. brightness :brightness:
4. brightness :brightness:
```conf
bindsym --locked XF86MonBrightnessUp exec --no-startup-id light -A 10 && sway-brightness-notify
bindsym --locked XF86MonBrightnessDown exec --no-startup-id light -U 10 && sway-brightness-notify
```
### gaps
5. gaps
```conf
gaps inner 2
@ -1838,7 +1846,7 @@ notify-send -t 3000 "${@}"
```
<a id="org06cd628"></a>
<a id="org21f6ad9"></a>
### ~/bin/sway/sway-screen
@ -1859,7 +1867,7 @@ swaymsg "output ${m} ${c}"
### ~/bin/sway/sway-screen-menu
Gui to select a display and enable/disable it. Calls down to [~/bin/sway/sway-screen](#org06cd628).
Gui to select a display and enable/disable it. Calls down to [~/bin/sway/sway-screen](#org21f6ad9).
:ID: 82455cae-1c48-48b2-a8b3-cb5d44eeaee9

View file

@ -3,12 +3,11 @@ exec xrdb -merge ~/.Xresources
# Maintained in linux-config.org
set $mod Mod4
set $menu sway-launcher-fzf
for_window [title="sway-launcher"] floating enable
set $term 'sway-scratch-terminal'
set $term 'oneterminal'
set $menu 'sway-launcher-fzf'
set $editor 'sway-editor'
set $wallpaper '~/Pictures/Wallpapers/current'
include /etc/sway/config-vars.d/*
include config-vars.d/*
@ -31,7 +30,8 @@ Bindsym $mod+Shift+r restart
bindsym $mod+Shift+e exec $editor
bindsym $mod+d exec $menu
#+begin_src conf
for_window [title="sway-launcher"] floating enable
set $wallpaper "~/Pictures/Wallpapers/current"
output * bg $wallpaper fill

View file

@ -1301,12 +1301,11 @@ $XDG_DATA_HOME/dbus-1/services/org.freedesktop.Notifications.service
# Maintained in linux-config.org
set $mod Mod4
set $menu sway-launcher-fzf
for_window [title="sway-launcher"] floating enable
set $term 'sway-scratch-terminal'
set $term 'oneterminal'
set $menu 'sway-launcher-fzf'
set $editor 'sway-editor'
set $wallpaper '~/Pictures/Wallpapers/current'
include /etc/sway/config-vars.d/*
include config-vars.d/*
@ -1330,14 +1329,16 @@ $XDG_DATA_HOME/dbus-1/services/org.freedesktop.Notifications.service
bindsym $mod+d exec $menu
#+end_src
*** launcher
#+begin_src conf
for_window [title="sway-launcher"] floating enable
#+end_src
*** display
**** wallpaper
#+begin_src conf
,#+begin_src conf
set $wallpaper "~/Pictures/Wallpapers/current"
output * bg $wallpaper fill
#+end_src
#+end_src
**** transparency
#+begin_src conf
set $trans 0.8