parent
3ad5bd900c
commit
c144f1fde5
12 changed files with 44 additions and 8 deletions
@ -1,6 +0,0 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
backgroundDir="$HOME/Pictures/wallpapers/" |
||||
|
||||
ls "$backgroundDir" | /usr/bin/shuf -n 1 | /usr/bin/awk \ |
||||
"{print \"$backgroundDir\" \$1}" | /usr/bin/xargs /usr/bin/feh --bg-fill |
@ -0,0 +1,3 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
notify-send "Look Away" |
@ -0,0 +1,8 @@ |
||||
[Unit] |
||||
Description=Look Away |
||||
|
||||
[Service] |
||||
ExecStart=/home/jonathan/.config/systemd/user/lookAway |
||||
|
||||
[Install] |
||||
WantedBy=default.target |
@ -0,0 +1,9 @@ |
||||
[Unit] |
||||
Description=Remind me to look away every 15 minutes |
||||
|
||||
[Timer] |
||||
OnBootSec=15min |
||||
OnUnitActiveSec=15min |
||||
|
||||
[Install] |
||||
WantedBy=timers.target |
@ -0,0 +1,21 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
backgroundDir="$HOME/Pictures/wallpapers/" |
||||
background="$(ls "$backgroundDir" | /usr/bin/shuf -n 1 | /usr/bin/awk \ |
||||
"{print \"$backgroundDir\" \$1}")" |
||||
|
||||
echo "Wayland Display: $WAYLAND_DISPLAY" |
||||
|
||||
if [ -n "$WAYLAND_DISPLAY" ]; then |
||||
while :; do |
||||
background="$(ls "$backgroundDir" | /usr/bin/shuf -n 1 | /usr/bin/awk \ |
||||
"{print \"$backgroundDir\" \$1}")" |
||||
echo "I get here" |
||||
pkill swaybg |
||||
swaybg --mode fill -i "$background" |
||||
sleep 60 |
||||
done |
||||
else |
||||
/usr/bin/feh --bg-fill "$background" |
||||
fi |
||||
|
Loading…
Reference in new issue