glazewm icon indicating copy to clipboard operation
glazewm copied to clipboard

[Feature Request] Zebar should shut down along with GlazeWM

Open AfzGit opened this issue 1 year ago • 6 comments

Only GlazeWM shuts down, leaving the Zebar on. Make them shutdown altogether when alt+shift+e is pressed.

AfzGit avatar Aug 06 '24 14:08 AfzGit

While this gets fixed, you can manually shutdown zebar from the task manager.

image

AfzGit avatar Aug 07 '24 10:08 AfzGit

There's also a system tray option to exit Zebar:

image

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.

lars-berger avatar Aug 07 '24 10:08 lars-berger

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.

ethanrutt avatar Aug 07 '24 19:08 ethanrutt

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.

A good temporary fix.

AfzGit avatar Aug 08 '24 03:08 AfzGit

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']

ParasiteDelta avatar Aug 12 '24 23:08 ParasiteDelta

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.

broesmelii avatar Sep 30 '24 08:09 broesmelii

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']

Rekit0 avatar Dec 24 '24 18:12 Rekit0

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.

bartdorsey avatar Jan 14 '25 17:01 bartdorsey

I believe this has been resolved by #713. (See release v3.2.0)

AJ-505 avatar Oct 31 '25 15:10 AJ-505