i3, add system restart and restarting of LLM services.

This commit is contained in:
me
2026-10-10 02:32:55 -07:00
parent 0450aa45c3
commit 43d92d14ed
+14 -3
View File
@@ -215,7 +215,6 @@ bindsym $shift+XF86AudioLowerVolume exec --no-startup-id bash -c 'source /usr/lo
bindsym $mod+slash exec pavucontrol bindsym $mod+slash exec pavucontrol
## Workspaces ## ## Workspaces ##
# Define names for default workspaces for which we configure key bindings later on. # Define names for default workspaces for which we configure key bindings later on.
@@ -336,10 +335,22 @@ bindsym $shift+$mod+l exec "i3lock -c 000000 -e -f && sleep 1 && xset dpms force
# shutdown entire system. # shutdown entire system.
#bindsym $ctrl+$shift+q exec dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop #bindsym $ctrl+$shift+q exec dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
bindsym $ctrl+$alt+q exec sudo shutdown -h now bindsym $ctrl+$alt+q exec sudo shutdown -h now
bindsym $shift+$alt+q exec sudo shutdown -h now bindsym $shift+$alt+q exec sudo shutdown -h now
bindsym $shift+$ctrl+q exec sudo shutdown -h now bindsym $shift+$ctrl+q exec sudo shutdown -h now
# restart entire system.
bindsym $ctrl+$alt+r exec sudo shutdown -r now
bindsym $shift+$alt+r exec sudo shutdown -r now
bindsym $shift+$ctrl+r exec sudo shutdown -r now
# restart LLM programs
set $RESTART_LLMS "sudo sv restart ollama; sudo sv restart zeroclaw; sudo sv restart open-webui"
bindsym $ctrl+$alt+r exec $RESTART_LLMS
bindsym $shift+$alt+r exec $RESTART_LLMS
bindsym $shift+$ctrl+r exec $RESTART_LLMS
## Resizing (Disabled) ## ## Resizing (Disabled) ##
# resize window (you can also use the mouse for that) # resize window (you can also use the mouse for that)