From 43d92d14ed4a20a69d77b3a544b132b28dde2bb0 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sat, 10 Oct 2026 02:32:55 -0700 Subject: [PATCH] i3, add system restart and restarting of LLM services. --- files/settings/i3.config | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/files/settings/i3.config b/files/settings/i3.config index fdf509c..65ee7d8 100644 --- a/files/settings/i3.config +++ b/files/settings/i3.config @@ -215,7 +215,6 @@ bindsym $shift+XF86AudioLowerVolume exec --no-startup-id bash -c 'source /usr/lo bindsym $mod+slash exec pavucontrol - ## Workspaces ## # 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. #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 $shift+$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+$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) ## # resize window (you can also use the mouse for that)