|
|
|
@ -16,8 +16,7 @@ set $email thunderbird
|
|
|
|
|
# menus
|
|
|
|
|
set $drun fuzzel
|
|
|
|
|
set $mountmenu fuzzel_mount.sh
|
|
|
|
|
set $findmenu fuzzel_find_file.sh
|
|
|
|
|
set $openmenu fuzzel_open_file.sh
|
|
|
|
|
set $findmenu fuzzel_find_and_open.sh
|
|
|
|
|
set $wifimenu $term_float nmtui
|
|
|
|
|
|
|
|
|
|
# colors
|
|
|
|
@ -31,8 +30,8 @@ set $error #ff404f
|
|
|
|
|
# bindsym alt+shift mode $xkb_layout_mode
|
|
|
|
|
#
|
|
|
|
|
# mode $xkb_layout_mode {
|
|
|
|
|
# bindsym g input "type:keyboard" xkb_layout gb, mode default
|
|
|
|
|
# bindsym s input "type:keyboard" xkb_layout si, mode default
|
|
|
|
|
# bindsym g input "type:keyboard" xkb_layout gb, mode default
|
|
|
|
|
# bindsym s input "type:keyboard" xkb_layout si, mode default
|
|
|
|
|
# }
|
|
|
|
|
|
|
|
|
|
seat * hide_cursor 5000
|
|
|
|
@ -54,8 +53,7 @@ bindsym $mod+shift+w exec $email
|
|
|
|
|
bindsym $mod+space exec $drun
|
|
|
|
|
bindsym $mod+home exec $wifimenu
|
|
|
|
|
bindsym $mod+insert exec $mountmenu
|
|
|
|
|
bindsym $mod+e exec $openmenu
|
|
|
|
|
bindsym $mod+shift+e exec $findmenu
|
|
|
|
|
bindsym $mod+e exec $findmenu
|
|
|
|
|
|
|
|
|
|
# notifications
|
|
|
|
|
bindsym $mod+slash exec notify-send -e -h string:x-canonical-private-synchronous:status "$(date)" "Battery: $(cat /sys/class/power_supply/BAT0/capacity)%"
|
|
|
|
@ -111,17 +109,17 @@ set $resize_mode "resize"
|
|
|
|
|
bindsym $mod+r mode $resize_mode
|
|
|
|
|
|
|
|
|
|
mode $resize_mode {
|
|
|
|
|
bindsym $left resize shrink width
|
|
|
|
|
bindsym $down resize grow height
|
|
|
|
|
bindsym $up resize shrink height
|
|
|
|
|
bindsym $right resize grow width
|
|
|
|
|
bindsym $mod+$left resize shrink width 25 px
|
|
|
|
|
bindsym $mod+$down resize grow height 25 px
|
|
|
|
|
bindsym $mod+$up resize shrink height 25 px
|
|
|
|
|
bindsym $mod+$right resize grow width 25 px
|
|
|
|
|
bindsym escape mode default
|
|
|
|
|
bindsym $mod+escape mode default
|
|
|
|
|
bindsym $mod+r mode default
|
|
|
|
|
bindsym $left resize shrink width
|
|
|
|
|
bindsym $down resize grow height
|
|
|
|
|
bindsym $up resize shrink height
|
|
|
|
|
bindsym $right resize grow width
|
|
|
|
|
bindsym $mod+$left resize shrink width 25 px
|
|
|
|
|
bindsym $mod+$down resize grow height 25 px
|
|
|
|
|
bindsym $mod+$up resize shrink height 25 px
|
|
|
|
|
bindsym $mod+$right resize grow width 25 px
|
|
|
|
|
bindsym escape mode default
|
|
|
|
|
bindsym $mod+escape mode default
|
|
|
|
|
bindsym $mod+r mode default
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# layout
|
|
|
|
@ -149,25 +147,25 @@ for_window [window_type="notification"] floating enable
|
|
|
|
|
# rules
|
|
|
|
|
for_window [title="About Mozilla Firefox"] floating enable
|
|
|
|
|
for_window [app_id="foot_float"] floating enable
|
|
|
|
|
for_window [app_id="foot"] inhibit_idle
|
|
|
|
|
for_window [app_id="foot"] inhibit_idle focus
|
|
|
|
|
|
|
|
|
|
# laptop
|
|
|
|
|
bindsym XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+;\
|
|
|
|
|
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:audio_sink "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
|
|
|
|
|
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:audio_sink "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
|
|
|
|
|
bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-;\
|
|
|
|
|
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:audio_sink "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
|
|
|
|
|
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:audio_sink "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
|
|
|
|
|
bindsym XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle;\
|
|
|
|
|
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:audio_sink "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
|
|
|
|
|
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:audio_sink "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
|
|
|
|
|
bindsym XF86AudioMicMute exec wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle;\
|
|
|
|
|
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:audio_source "$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@)"
|
|
|
|
|
bindsym XF86MonBrightnessUp exec light -A 1;\
|
|
|
|
|
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(light)"
|
|
|
|
|
bindsym XF86MonBrightnessDown exec light -U 1;\
|
|
|
|
|
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(light)"
|
|
|
|
|
bindsym shift+XF86MonBrightnessUp exec light -A 10;\
|
|
|
|
|
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(light)"
|
|
|
|
|
bindsym shift+XF86MonBrightnessDown exec light -U 10;\
|
|
|
|
|
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(light)"
|
|
|
|
|
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:audio_source "$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@)"
|
|
|
|
|
bindsym XF86MonBrightnessUp exec brightnessctl set "+1%";\
|
|
|
|
|
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
|
|
|
|
|
bindsym XF86MonBrightnessDown exec brightnessctl set "1%-";\
|
|
|
|
|
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
|
|
|
|
|
bindsym shift+XF86MonBrightnessUp exec brightnessctl set "+10%";\
|
|
|
|
|
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
|
|
|
|
|
bindsym shift+XF86MonBrightnessDown exec brightnessctl set "10%-";\
|
|
|
|
|
exec notify-send -e -t 1000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
|
|
|
|
|
|
|
|
|
|
# screenshots
|
|
|
|
|
bindsym print exec grimshot save screen
|
|
|
|
@ -177,14 +175,14 @@ set $session_mode "session: (r)eload (l)ock (q)uit (s)uspend re(b)oot (p)oweroff
|
|
|
|
|
bindsym $mod+escape mode $session_mode
|
|
|
|
|
|
|
|
|
|
mode $session_mode {
|
|
|
|
|
bindsym r reload, mode default
|
|
|
|
|
bindsym l exec swaylock, mode default
|
|
|
|
|
bindsym q exit, mode default
|
|
|
|
|
bindsym s exec systemctl suspend, mode default
|
|
|
|
|
bindsym b exec systemctl reboot, mode default
|
|
|
|
|
bindsym p exec systemctl poweroff, mode default
|
|
|
|
|
bindsym escape mode default
|
|
|
|
|
bindsym $mod+escape mode default
|
|
|
|
|
bindsym r reload, mode default
|
|
|
|
|
bindsym l exec swaylock, mode default
|
|
|
|
|
bindsym q exit, mode default
|
|
|
|
|
bindsym s exec systemctl suspend, mode default
|
|
|
|
|
bindsym b exec systemctl reboot, mode default
|
|
|
|
|
bindsym p exec systemctl poweroff, mode default
|
|
|
|
|
bindsym escape mode default
|
|
|
|
|
bindsym $mod+escape mode default
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# border
|
|
|
|
@ -195,12 +193,12 @@ set $border_mode "border: (n)one (t)itle (p)ixel"
|
|
|
|
|
bindsym $mod+b mode $border_mode
|
|
|
|
|
|
|
|
|
|
mode $border_mode {
|
|
|
|
|
bindsym n border none, mode default
|
|
|
|
|
bindsym t border normal 1, mode default
|
|
|
|
|
bindsym p border pixel 1, mode default
|
|
|
|
|
bindsym escape mode default
|
|
|
|
|
bindsym $mod+escape mode default
|
|
|
|
|
bindsym $mod+b mode default
|
|
|
|
|
bindsym n border none, mode default
|
|
|
|
|
bindsym t border normal 1, mode default
|
|
|
|
|
bindsym p border pixel 1, mode default
|
|
|
|
|
bindsym escape mode default
|
|
|
|
|
bindsym $mod+escape mode default
|
|
|
|
|
bindsym $mod+b mode default
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# class border background text indicator child_border
|
|
|
|
@ -210,9 +208,7 @@ client.unfocused $dimmed $dimmed $bg $bg $dimmed
|
|
|
|
|
client.urgent $error $error $bg $error $error
|
|
|
|
|
|
|
|
|
|
# statusbar
|
|
|
|
|
bar {
|
|
|
|
|
# binding_mode_indicator no
|
|
|
|
|
colors {
|
|
|
|
|
bar colors {
|
|
|
|
|
background $bg
|
|
|
|
|
statusline $dimmed
|
|
|
|
|
separator $dimmed
|
|
|
|
@ -228,13 +224,13 @@ set $bar_mode "bar: (d)ock (h)ide (i)nvisible (o)verlay"
|
|
|
|
|
bindsym $mod+shift+b mode $bar_mode, bar mode dock
|
|
|
|
|
|
|
|
|
|
mode $bar_mode {
|
|
|
|
|
bindsym d bar mode dock, mode default
|
|
|
|
|
bindsym h bar mode hide, mode default
|
|
|
|
|
bindsym i bar mode invisible, mode default
|
|
|
|
|
bindsym o bar mode overlay, mode default
|
|
|
|
|
bindsym escape mode default
|
|
|
|
|
bindsym $mod+escape mode default
|
|
|
|
|
bindsym $mod+shift+b mode default
|
|
|
|
|
bindsym d bar mode dock, mode default
|
|
|
|
|
bindsym h bar mode hide, mode default
|
|
|
|
|
bindsym i bar mode invisible, mode default
|
|
|
|
|
bindsym o bar mode overlay, mode default
|
|
|
|
|
bindsym escape mode default
|
|
|
|
|
bindsym $mod+escape mode default
|
|
|
|
|
bindsym $mod+shift+b mode default
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# autostart
|
|
|
|
|