Can you run the command from alt+F2?
No. Or, if I open another window after that, yes. So it looks like the taskbar needs to be updated in some way after running the command …
If you’re running the command in a Terminal window you would need to reload Gnome Shell (Alt +F2 then enter r
as the command and press Enter). This is because the taskbar isn’t be able to pick up changes to the properties of existing windows.
Thanks, meanwhile I also realized that it works:
wmctrl -x -r tzclock.Tzclock -b add, skip_taskbar && gnome-shell-extension-tool -r zorin-taskbar@zorinos.com
(Tzclock can be any other application of course).
So this is how it works for me:
tzclock & sleep 2 && wmctrl -x -r tzclock.Tzclock -b add,skip_taskbar && gnome-shell-extension-tool -r zorin-taskbar@zorinos.com
I put this in a bash script and placed it in autostart.
Hey guys! Final code completed:
#!/bin/bash
tzclock &
while :
do
result=$(wmctrl -l -x | grep tzclock.Tzclock 2>&1 | wc -l)
if [ $result -eq 1 ]; then
break
fi
done
wmctrl -x -r tzclock.Tzclock -b add,skip_taskbar && gnome-shell-extension-tool -r zorin-taskbar@zorinos.com
2 Likes