-
-
Save zakkak/611995eb669f514040b040258c253a55 to your computer and use it in GitHub Desktop.
Disable KDE panel shadow. Script to be placed in ~/.kde/Autostart/disable_panel_shadow.sh https://forum.kde.org/viewtopic.php?f=285&t=121592
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for WID in `xwininfo -root -tree | sed '/"plasma-desktop": ("Plasma" "Plasma")/!d; s/^ *\([^ ]*\) .*/\1/g'`; do | |
xprop -id $WID -remove _KDE_NET_WM_SHADOW | |
done | |
# or | |
for WID in `xwininfo -root -tree | sed '/"Plasma": ("plasmashell" "plasmashell")/!d; s/^ *\([^ ]*\) .*/\1/g'`; do | |
xprop -id $WID -remove _KDE_NET_WM_SHADOW | |
done |
Added on top of script:
#!/bin/bash
sleep 5
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
And added to autostart scripts via KDE System-Settings -> Startup and Shutdown -> Autostart -> Add Script. Works fine! (on Kubuntu 18.04)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The script works nicely when run from terminal, thanks. However, I can't seem to get it to autostart. I tried in both ~/.kde/Autostart/ and ~/.kde4/Autostart/, made it executable. I even tried to get it to autorun with crontab and with systemd timer with no luck.