Skip to content

Instantly share code, notes, and snippets.

@farseerfc
Created July 27, 2020 03:06
Show Gist options
  • Save farseerfc/e74367a64be79f02d8d0a5a74d0d8d9b to your computer and use it in GitHub Desktop.
Save farseerfc/e74367a64be79f02d8d0a5a74d0d8d9b to your computer and use it in GitHub Desktop.
try plasma remove shadow
[Desktop Entry]
Categories=System;Utility;
Comment[zh_CN]=
Comment=
Exec=/home/farseerfc/try.sh
GenericName[zh_CN]=try
GenericName=try
MimeType=
Name[zh_CN]=try
Name=try
OnlyShowIn=
Path=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=none
X-GNOME-AutoRestart=false
X-GNOME-Autostart-Notify=false
X-KDE-StartupNotify=false
X-KDE-SubstituteUID=false
X-KDE-Username=
X-KDE-autostart-after=panel
#!/bin/bash
plasma_waitforname
sleep 30
# wait until plasma notification is up and ready
for WID in $(xwininfo -root -tree | sed '/"Plasma": ("plasmashell" "plasmashell")/!d; s/^ *\([^ ]*\) .*/\1/g'); do
xprop -id $WID -remove _KDE_NET_WM_SHADOW
done
date -Iseconds >> /home/farseerfc/testscript
pgrep -l plasma >> /home/farseerfc/testscript
echo "execed" >> /home/farseerfc/testscript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment