♻️ refactor(hypr): pyprland is now in charge of randomizing the system wallpaper instead of a custom systemd service

This commit is contained in:
Sergio Laín 2024-04-13 17:48:44 +02:00
parent 099fcb566c
commit 9f4fe396c3
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
5 changed files with 4 additions and 23 deletions

View file

@ -26,7 +26,7 @@ bind = SUPERSHIFT, BACKSPACE, exec, ~/.config/hypr/scripts/custom_app_launch cod
bind = SUPER, 23, exec, rofi -show drun # Tab bind = SUPER, 23, exec, rofi -show drun # Tab
bind = SUPER, INSERT, exec, ~/.config/hypr/scripts/color_picker bind = SUPER, INSERT, exec, ~/.config/hypr/scripts/color_picker
bind = SUPERSHIFT, W, exec, ~/.config/hypr/scripts/wallpaper select bind = SUPERSHIFT, W, exec, ~/.config/hypr/scripts/wallpaper select
bind = SUPERCTRL, W, exec, ~/.config/hypr/scripts/wallpaper random bind = SUPERCTRL, W, exec, pypr wall next
bind = SUPER, 61, exec, ~/.config/hypr/scripts/rofi/keybindings # / bind = SUPER, 61, exec, ~/.config/hypr/scripts/rofi/keybindings # /
bind = SUPERSHIFT, G, exec, ~/.config/hypr/scripts/rofi/game_launcher bind = SUPERSHIFT, G, exec, ~/.config/hypr/scripts/rofi/game_launcher
bind = SUPER, Y, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy bind = SUPER, Y, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy

View file

@ -1,5 +1,5 @@
[pyprland] [pyprland]
plugins = ["scratchpads", "expose", "magnify"] plugins = ["scratchpads", "expose", "magnify", "wallpapers"]
[scratchpads.volume] [scratchpads.volume]
command = "pavucontrol" command = "pavucontrol"
@ -51,7 +51,7 @@ lazy = true
[wallpapers] [wallpapers]
path = "/home/matt/.config/hypr/themes/luna/walls/" path = "/home/matt/.config/hypr/themes/luna/walls/"
interval = 60 # change every hour interval = 60 # change every hour
command = "swww img --transition-bezier 0.5,1.19,.8,.4 --transition-type wipe --transition-duration 2 --transition-fps 75" command = "swww img --transition-bezier 0.5,1.19,.8,.4 --transition-type wipe --transition-duration 2 --transition-fps 75 \"[file]\" && notify-send 'Wallpaper Changed' -i \"[file]\""
clear_command = "swww clear" clear_command = "swww clear"
extensions = ["jpg", "png", "gif", "jpeg"] extensions = ["jpg", "png", "gif", "jpeg"]

View file

@ -9,7 +9,6 @@ udiskie &
# Wallpaper Backend # Wallpaper Backend
swww init swww init
"$scripts"/wallpaper random &
# Bar # Bar
waybar & waybar &

View file

@ -1,9 +0,0 @@
[Unit]
Description=Change wallpaper with swww as backend
[Service]
Type=simple
ExecStart=/home/matt/.config/hypr/scripts/wallpaper random
[Install]
WantedBy=default.target

View file

@ -1,9 +0,0 @@
[Unit]
Description=Timer to change the wallpaper each 1 hours
[Timer]
OnCalendar=0/1:00:00
Unit=change_wallpaper.service
[Install]
WantedBy=timers.target