Add rofi-shutdown and change i3 config acordingly

master
Jonathan Hodgson 7 years ago
parent 0c043e1ec4
commit 654a7fe8ca
  1. 29
      config/i3/configWork
  2. 28
      config/rofi/scripts/rofi-shutdown

@ -281,20 +281,21 @@ bindsym Shift+Print exec xfce4-screenshooter -r
bindsym $mod+x exec --no-startup-id ~/.config/i3/i3exit logout bindsym $mod+x exec --no-startup-id ~/.config/i3/i3exit logout
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown #set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
mode "$mode_system" { #mode "$mode_system" {
bindsym l exec --no-startup-id ~/.config/i3/i3exit lock, mode "default" # bindsym l exec --no-startup-id ~/.config/i3/i3exit lock, mode "default"
bindsym e exec --no-startup-id ~/.config/i3/i3exit logout, mode "default" # bindsym e exec --no-startup-id ~/.config/i3/i3exit logout, mode "default"
bindsym s exec --no-startup-id ~/.config/i3/i3exit suspend, mode "default" # bindsym s exec --no-startup-id ~/.config/i3/i3exit suspend, mode "default"
bindsym h exec --no-startup-id ~/.config/i3/i3exit hibernate, mode "default" # bindsym h exec --no-startup-id ~/.config/i3/i3exit hibernate, mode "default"
bindsym r exec --no-startup-id~/.config/i3/i3exit reboot, mode "default" # bindsym r exec --no-startup-id~/.config/i3/i3exit reboot, mode "default"
bindsym Shift+s exec --no-startup-id ~/.config/i3/i3exit shutdown, mode "default" # bindsym Shift+s exec --no-startup-id ~/.config/i3/i3exit shutdown, mode "default"
#
# back to normal: Enter or Escape # # back to normal: Enter or Escape
bindsym Return mode "default" # bindsym Return mode "default"
bindsym Escape mode "default" # bindsym Escape mode "default"
} #}
bindsym ctrl+shift+l mode "$mode_system" #bindsym ctrl+shift+l mode "$mode_system"
bindsym ctrl+shift+l exec --no-startup-id ~/.config/rofi/scripts/rofi-shutdown
#bindsym ctrl+l exec "~/.config/i3/i3exit lock" #bindsym ctrl+l exec "~/.config/i3/i3exit lock"
################################################## ##################################################

@ -0,0 +1,28 @@
#!/usr/bin/sh
selection=$( \
echo -e "Lock\nLogout\nSuspend\nHibernate\nReboot\nShutdown" |\
rofi -dmenu -i -p 'Option');
echo $selection;
sleep .2
case $selection in
Lock)
~/.config/i3/i3exit lock
;;
Logout)
~/.config/i3/i3exit logout
;;
Suspend)
~/.config/i3/i3exit suspend
;;
Hibernate)
~/.config/i3/i3exit hibernate
;;
Reboot)
~/.config/i3/i3exit reboot
;;
Shutdown)
~/.config/i3/i3exit shutdown
;;
esac
Loading…
Cancel
Save