Skip to content

Instantly share code, notes, and snippets.

@zakkak
Forked from alibitek/disable_panel_shadow.sh
Created April 11, 2017 08:55
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zakkak/611995eb669f514040b040258c253a55 to your computer and use it in GitHub Desktop.
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
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
@albaphysic
Copy link

albaphysic commented Feb 6, 2018

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.

@endlesslight0
Copy link

endlesslight0 commented May 1, 2018

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