Commit d067ccdc authored by Jay Ta'ala's avatar Jay Ta'ala
Browse files

Added xsm session saving and reloading on exit/start.

parent cd6163fd
...@@ -110,6 +110,7 @@ exec --no-startup-id xfce4-power-manager ...@@ -110,6 +110,7 @@ exec --no-startup-id xfce4-power-manager
exec_always --no-startup-id "pkill conky; sleep 0.5; conky -c ~/.config/conky; conky -c ~/.config/conky_shortcuts" exec_always --no-startup-id "pkill conky; sleep 0.5; conky -c ~/.config/conky; conky -c ~/.config/conky_shortcuts"
set $picom_start "pkill picom; sleep 1; picom -b" set $picom_start "pkill picom; sleep 1; picom -b"
exec_always --no-startup-id $picom_start exec_always --no-startup-id $picom_start
exec --no-startup-id yes | xsm --restore
# picom (compositor) # picom (compositor)
bindsym $mod+t exec --no-startup-id $picom_start bindsym $mod+t exec --no-startup-id $picom_start
...@@ -401,7 +402,8 @@ mode "$mode_system" { ...@@ -401,7 +402,8 @@ mode "$mode_system" {
bindsym l exec --no-startup-id i3exit lock, mode "default" bindsym l exec --no-startup-id i3exit lock, mode "default"
bindsym Shift+s exec --no-startup-id "systemctl suspend", mode "default" bindsym Shift+s exec --no-startup-id "systemctl suspend", mode "default"
bindsym s exec --no-startup-id "i3exit lock; systemctl suspend", mode "default" bindsym s exec --no-startup-id "i3exit lock; systemctl suspend", mode "default"
bindsym u exec --no-startup-id "i3exit switch_user", mode "default" # requires xsm (xsession-manager)
bindsym u exec --no-startup-id "yes | xsm --save; i3exit switch_user", mode "default"
bindsym e exec --no-startup-id "i3exit logout", mode "default" bindsym e exec --no-startup-id "i3exit logout", mode "default"
bindsym h exec --no-startup-id "systemctl hibernate", mode "default" bindsym h exec --no-startup-id "systemctl hibernate", mode "default"
bindsym Shift+h exec --no-startup-id "i3exit lock; systemctl hibernate", mode "default" bindsym Shift+h exec --no-startup-id "i3exit lock; systemctl hibernate", mode "default"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment