Fixed error when trying to shut down in .i3/config.
This commit is contained in:
27
i3/i3/config
27
i3/i3/config
@@ -26,6 +26,21 @@ set $mouse_repeat_speed 25
|
|||||||
# Path to the exit script
|
# Path to the exit script
|
||||||
set $path_i3exit ~/.i3/scripts/i3exit.bash
|
set $path_i3exit ~/.i3/scripts/i3exit.bash
|
||||||
|
|
||||||
|
# Keys for the exit mode
|
||||||
|
set $key_lock l
|
||||||
|
set $key_logout e
|
||||||
|
set $key_suspend s
|
||||||
|
set $key_hibernate h
|
||||||
|
set $key_reboot r
|
||||||
|
set $key_shutdown Shift+S
|
||||||
|
|
||||||
|
set $signal_lock lock
|
||||||
|
set $signal_logout logout
|
||||||
|
set $signal_suspend suspend
|
||||||
|
set $signal_hibernate hibernate
|
||||||
|
set $signal_reboot reboot
|
||||||
|
set $signal_shutdown shutdown
|
||||||
|
|
||||||
# Path and options for the wallpaper changer script
|
# Path and options for the wallpaper changer script
|
||||||
set $path_wallchanger ~/.i3/scripts/wallchanger.bash
|
set $path_wallchanger ~/.i3/scripts/wallchanger.bash
|
||||||
set $wallpaper_directory "$HOME/Bilder/wallpaper/misc"
|
set $wallpaper_directory "$HOME/Bilder/wallpaper/misc"
|
||||||
@@ -250,12 +265,12 @@ exec --no-startup-id conky
|
|||||||
# Enabling a mode to shutdown, reboot, lock screen and so on
|
# Enabling a mode to shutdown, reboot, lock screen and so on
|
||||||
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 $path_i3exit lock, mode "default"
|
bindsym $key_lock exec --no-startup-id $path_i3exit $signal_lock, mode "default"
|
||||||
bindsym e exec --no-startup-id $path_i3exit logout, mode "default"
|
bindsym $key_logout exec --no-startup-id $path_i3exit $signal_logout, mode "default"
|
||||||
bindsym s exec --no-startup-id $path_i3exit suspend, mode "default"
|
bindsym $key_suspend exec --no-startup-id $path_i3exit $signal_suspend, mode "default"
|
||||||
bindsym h exec --no-startup-id $path_i3exit hibernate, mode "default"
|
bindsym $key_hibernate exec --no-startup-id $path_i3exit $signal_hibernate, mode "default"
|
||||||
bindsym r exec --no-startup-id $path_i3exit reboot, mode "default"
|
bindsym $key_reboot exec --no-startup-id $path_i3exit $signal_reboot, mode "default"
|
||||||
bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
|
bindsym $key_shutdown exec --no-startup-id $path_i3exit $signal_shutdown, mode "default"
|
||||||
|
|
||||||
# back to normal: Enter or Escape
|
# back to normal: Enter or Escape
|
||||||
bindsym Return mode "default"
|
bindsym Return mode "default"
|
||||||
|
|||||||
Reference in New Issue
Block a user