X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/blobdiff_plain/fa74ff232d9b7e39a43b8be101aebac1a8912bbd..eb0fc501389862aaa4e390825ed5dec22ef3fbdd:/i3/.i3/config?ds=inline diff --git a/i3/.i3/config b/i3/.i3/config index 5075095..080c598 100644 --- a/i3/.i3/config +++ b/i3/.i3/config @@ -42,10 +42,10 @@ set $ws4 "4:" set $ws5 "5:" set $ws6 "6:" -set $default_gaps_inner 10 -set $default_gaps_outer 0 -gaps inner $default_gaps_inner -gaps outer $default_gaps_outer +# set $default_gaps_inner 10 +# set $default_gaps_outer 0 +# gaps inner $default_gaps_inner +# gaps outer $default_gaps_outer #smart_borders on # start a terminal @@ -56,7 +56,7 @@ bindsym $mod+Return exec urxvt bindsym $mod+q kill # start dmenu (a program launcher) -bindsym $mod+space exec dmenu_run +bindsym $mod+space exec --no-startup-id dmenu_run # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. @@ -147,7 +147,7 @@ bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) -bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" +# bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" # resize window (you can also use the mouse for that) mode "resize" { @@ -250,6 +250,19 @@ bar { } } +set $mode_system System (l) lock, (e) logout, (r) reboot, (Shift+s) shutdown +mode "$mode_system" { + bindsym l exec --no-startup-id i3exit lock, mode "default" + bindsym e exec --no-startup-id i3exit logout, mode "default" + bindsym r exec --no-startup-id i3exit reboot, mode "default" + bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default" + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+Shift+e mode "$mode_system" + exec --no-startup-id nm-applet exec --no-startup-id "pulseaudio --start"