adding a script to hide and show plasma panel

This commit is contained in:
Chris Cochrun 2023-01-12 09:58:17 -06:00
parent 2c0699c544
commit dc0d32a137

12
scripts/plasma-panel.sh Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
hiding=$(qdbus org.kde.plasmashell /PlasmaShell evaluateScript "p = panelById(panelIds[0]); print(p.hiding);")
if [ $hiding == "none" ]
then
qdbus org.kde.plasmashell /PlasmaShell evaluateScript "p = panelById(panelIds[0]); p.hiding = 'autohide';"
else
qdbus org.kde.plasmashell /PlasmaShell evaluateScript "p = panelById(panelIds[0]); p.hiding = 'none';"
fi
echo $hiding