[TWEAK] Better check if we're running KDE, in which case Spectacle should work

This commit is contained in:
2024-09-09 16:26:21 +02:00
parent 7efba24eac
commit 49eb66641c
2 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ SCR_NEW="$DIR/$DAY/$TIME.$FORMAT"
SCR_LAST=`ls -t $DIR/$DAY/*.png | head -n1`
# do a screenshot
if [ "$DESKTOP_SESSION" = "plasmawayland" ]
if [ "$XDG_CURRENT_DESKTOP" = "KDE" ]
then
spectacle -bn -o $SCR_NEW
else