From 71d93214d63621804b3f35a7023355d11bbac058 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 23 Dec 2023 12:02:06 -0500 Subject: Small i3 config tweaks --- .config/i3/config | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 8547088..b74bdc8 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -134,10 +134,10 @@ mode "$mode_system" { # bindsym l exec i3lock, mode "default" bindsym l exec xscreensaver-command -lock, mode "default" bindsym e exec i3-msg exit, mode "default" - bindsym s exec systemctl suspend, mode "default" - bindsym h exec systemctl hibernate, mode "default" - bindsym r exec systemctl reboot, mode "default" - bindsym Shift+s exec systemctl poweroff -i, mode "default" + # bindsym s exec systemctl suspend, mode "default" + # bindsym h exec systemctl hibernate, mode "default" + bindsym r exec sudo reboot, mode "default" + bindsym Shift+s exec sudo poweroff, mode "default" bindsym Return mode "default" bindsym Escape mode "default" @@ -184,6 +184,19 @@ mode "$mode_theme" { } bindsym $mod+t mode "$mode_theme" +set $mode_dunst dunst (c)lose | c(.)ntext | (a)ction | (h)istory +mode "$mode_dunst" { + bindsym c exec --no-startup-id dunstctl close + bindsym period exec --no-startup-id dunstctl context, mode "default" + bindsym a exec --no-startup-id dunstctl action, mode "default" + bindsym h exec --no-startup-id dunstctl history-pop + + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym q mode "default" +} +bindsym $mod+d mode "$mode_dunst" + # pop-ups for_window [window_role="pop-up"] floating enable @@ -193,8 +206,10 @@ for_window [class="Mumble"] floating enable for_window [class="Nm-connection-editor"] floating enable for_window [class="Virt-manager"] floating enable for_window [class="Vncviewer"] floating enable +for_window [class="TigerVNC Viewer"] floating enable for_window [class="Engrampa"] floating enable for_window [class="Caja"] floating enable +for_window [class="Thunar"] floating enable # no title bars for_window [class="^.*"] border pixel 4 -- cgit v1.2.3-60-g2f50