Fixed the wallpaper changer
This commit is contained in:
parent
c6b2970449
commit
0a45a3d95d
1 changed files with 1 additions and 10 deletions
|
@ -240,7 +240,7 @@
|
||||||
submap = reset
|
submap = reset
|
||||||
|
|
||||||
# Start the config:
|
# Start the config:
|
||||||
exec-once=bash ~/.config/hypr/start.sh >> ~/hypr.log
|
exec-once=bash ~/.config/hypr/start.sh
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
# Set the custom launcher script
|
# Set the custom launcher script
|
||||||
|
@ -252,15 +252,12 @@
|
||||||
# https://wiki.hyprland.org/FAQ/#some-of-my-apps-take-a-really-long-time-to-open
|
# https://wiki.hyprland.org/FAQ/#some-of-my-apps-take-a-really-long-time-to-open
|
||||||
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
|
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
|
||||||
|
|
||||||
echo "sww init"
|
|
||||||
# Set the wallpaper
|
# Set the wallpaper
|
||||||
swww init
|
swww init
|
||||||
|
|
||||||
echo "waybar"
|
|
||||||
# Waybar
|
# Waybar
|
||||||
waybar &
|
waybar &
|
||||||
|
|
||||||
echo "swayidle"
|
|
||||||
# Set up the idle management daemon
|
# Set up the idle management daemon
|
||||||
swayidle -w \
|
swayidle -w \
|
||||||
timeout 120 'swaylock -f && playerctl pause' \
|
timeout 120 'swaylock -f && playerctl pause' \
|
||||||
|
@ -270,21 +267,15 @@
|
||||||
before-sleep 'swaylock -f' \
|
before-sleep 'swaylock -f' \
|
||||||
before-sleep 'playerctl pause' &
|
before-sleep 'playerctl pause' &
|
||||||
|
|
||||||
echo "udiskie"
|
|
||||||
# Automatic device mounting
|
# Automatic device mounting
|
||||||
udiskie &
|
udiskie &
|
||||||
|
|
||||||
echo "sww clear and set up img"
|
|
||||||
swww clear
|
|
||||||
DIR=/etc/nixos/git/wallpapers/${theme}
|
DIR=/etc/nixos/git/wallpapers/${theme}
|
||||||
IMG=`ls $DIR | shuf -n 1`
|
IMG=`ls $DIR | shuf -n 1`
|
||||||
swww img $DIR/$IMG -t random &
|
swww img $DIR/$IMG -t random &
|
||||||
echo "Selected: $DIR/$IMG"
|
|
||||||
|
|
||||||
echo "mako init"
|
|
||||||
# Notification listener
|
# Notification listener
|
||||||
mako
|
mako
|
||||||
echo "done"
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue