diff --git a/.config/i3/config b/.config/i3/config index 7ce8ded..e9b415a 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -132,12 +132,6 @@ bindsym $mod+Shift+8 move container to workspace $ws8 bindsym $mod+Shift+9 move container to workspace $ws9 bindsym $mod+Shift+0 move container to workspace $ws10 -# reload the configuration file -bindsym $mod+Shift+y 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'" # resize window (you can also use the mouse for that) mode "resize" { @@ -178,4 +172,14 @@ bar { status_command i3status } -bindsym $mod+Ctrl+l exec i3lock +# I3 System commands: restart, reload, shutdown, lock +# reload the configuration file +bindsym $mod+Shift+y 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+s exec --no-startup-id `[ $(printf "NO\nYES" | dmenu \ + -nb "#222222" -sb "#aa0088" -sf "#ffffff" -fn Monospace-11 \ + -nf "#7777bb" -i -p "Exit i3 X session?") = "YES" ] && i3-msg exit` +# lock i3 screen +bindsym $mod+Shift+p exec i3lock