[Feature Request] Zebar should shut down along with GlazeWM
Only GlazeWM shuts down, leaving the Zebar on. Make them shutdown altogether when alt+shift+e is pressed.
While this gets fixed, you can manually shutdown zebar from the task manager.
There's also a system tray option to exit Zebar:
Perhaps a general.shutdownCommands option should be added? It would also be possible currently to just chain a shell-exec command to the alt+shift+e keybinding to kill the Zebar process.
I am dealing with this too. I added
# Kill GlazeWM process safely.
- commands: ['shell-exec taskkill /IM "zebar.exe" /F', 'wm-exit']
bindings: ['alt+shift+e']
To my config.yaml for now which seems to work. This is not very robust though since if zebar isn't running then an error will be thrown.
I am dealing with this too. I added
# Kill GlazeWM process safely. - commands: ['shell-exec taskkill /IM "zebar.exe" /F', 'wm-exit'] bindings: ['alt+shift+e']To my
config.yamlfor now which seems to work. This is not very robust though since ifzebarisn't running then an error will be thrown.
A good temporary fix.
Another option, via Powershell:
# Kill GlazeWM process safely.
- commands: ['shell-exec powershell if (Get-Process -Name "zebar") { Stop-Process -Name "zebar" -Force }', 'wm-exit']
bindings: ['alt+shift+e']
shutdown_commands: ['shell-exec taskkill /IM zebar.exe /F']
and
config_reload_commands: [ 'shell-exec taskkill /IM zebar.exe /F', 'shell-exec %userprofile%/.glzr/zebar/start.bat' ]
Still don't work in stopping / restarting zebar.
shutdown_commands: ['shell-exec taskkill /IM zebar.exe /F']and
config_reload_commands: [ 'shell-exec taskkill /IM zebar.exe /F', 'shell-exec %userprofile%/.glzr/zebar/start.bat' ]Still don't work in stopping / restarting zebar.
To restart zebra i use this: A batch file to kill and restart zebar
@echo off
taskkill /IM zebar.exe /F
start "" /normal "C:\Program Files\glzr.io\Zebar\zebar.exe"
Then i run the batch file from a vbs script so i don't get any popups
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "path\to\ReloadZebar.bat", 0
Set WshShell = Nothing
config.yaml
config_reload_commands: ['shell-exec path\to\ReloadZebar.vbs']
It's sad you have to use VB script to launch a batch file in the background. Does Windows not have any other method of doing this? I tried to replace all my startup, shutdown and reload with powershell scripts, and I had to use this vbs trick to get them to run without a console window popping up.
I believe this has been resolved by #713. (See release v3.2.0)