This commit is contained in:
iFargle 2023-08-31 22:00:27 +09:00
parent 0c0a9738cd
commit 0f81749b44

View file

@ -268,7 +268,7 @@
timeout 300 'systemctl suspend-then-hibernate' \ timeout 300 'systemctl suspend-then-hibernate' \
resume 'hyprctl dispatch dpms on' \ resume 'hyprctl dispatch dpms on' \
before-sleep 'swaylock -f' \ before-sleep 'swaylock -f' \
before-sleep 'playerctl pause' before-sleep 'playerctl pause' &
echo "udiskie" echo "udiskie"
# Automatic device mounting # Automatic device mounting
@ -277,7 +277,8 @@
echo "sww clear and set up img" echo "sww clear and set up img"
swww clear swww clear
DIR=/etc/nixos/git/wallpapers/${theme} DIR=/etc/nixos/git/wallpapers/${theme}
IMG=`ls $DIR | shuf -n 1` && swww img $DIR/$IMG -t random IMG=`ls $DIR | shuf -n 1`
swww img $DIR/$IMG -t random &
echo "Selected: $DIR/$IMG" echo "Selected: $DIR/$IMG"
echo "mako init" echo "mako init"