1
0

Better exit prompt

This commit is contained in:
devenblake 2020-11-29 00:29:07 -05:00
parent 53b1c5e17b
commit 3672b077b8

View File

@ -61,8 +61,8 @@ bindsym $mod+F4 kill
bindsym --release button2 kill bindsym --release button2 kill
# start dmenu (a program launcher) # start dmenu (a program launcher)
# bindsym $mod+d exec dmenu_run bindsym $mod+d exec dmenu_run
bindsym $mod+d exec rofi -show run # bindsym $mod+d exec rofi -show run
# There also is the (new) i3-dmenu-desktop which only displays applications # 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 # shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed. # installed.
@ -163,7 +163,8 @@ bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session) # 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'"
bindsym $mod+Shift+e exec [ "Yes." = $(printf "No.\nYes." | dmenu -p "You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.") ] && i3-msg exit
# resize window (you can also use the mouse for that) # resize window (you can also use the mouse for that)
mode "resize" { mode "resize" {