bbidulock / icewm

A window manager designed for speed, usability, and consistency
Other
585 stars 98 forks source link

Toggle system tray and monitor widgets for space in the taskbar #568

Closed qsmodo closed 3 years ago

qsmodo commented 3 years ago

When there are too many windows open or/and the tray is taking up too much space, I find it useful to toggle all the tray (including monitor widgets). So I made this script to do it:

#!/bin/sh
file=$HOME/.icewm/preferences
mv "$file" "$file".bak
sed '
/^TaskBarShowTray=/y/01/10/
/^TaskBarShowWorkspaces=/y/10/01/
/^TaskBarEnableSystemTray=/y/01/10/
/^TaskBarShowAPMStatus=/y/10/01/
/^TaskBarShowCPUStatus=/y/10/01/
/^TaskBarShowMEMStatus=/y/10/01/
/^TaskBarShowNetStatus=/y/10/01/
/^TaskBarShowClock=/y/10/01/
' "$file".bak > "$file"
icewm --restart

It works but there is flickering because it has to restart Icewm. I believe it would be an useful addition if that could somehow be accomplished on the fly, maybe via an icesh or icewmtray command?

gijsbers commented 3 years ago

Consider setting TaskBarShowAllWindows=1, otherwise TaskBarTaskGrouping=1.

gijsbers commented 3 years ago

Try Github search.