mirror of
https://github.com/WarrenHood/dotfiles.git
synced 2025-04-29 04:04:58 +01:00
Change wallpaper
This commit is contained in:
parent
bc979b1269
commit
0d24e431a1
|
@ -25,6 +25,7 @@ env = XDG_SESSION_TYPE,wayland
|
|||
env = GBM_BACKEND,nvidia-drm
|
||||
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
||||
env = WLR_NO_HARDWARE_CURSORS,1
|
||||
env = GDK_BACKEND,wayland
|
||||
|
||||
# Set GTK Themes
|
||||
env = GTK_THEME,Breeze:dark
|
||||
|
@ -232,3 +233,8 @@ bind = , XF86AudioNext, exec, ~/.scripts/playerctl-fast next
|
|||
exec-once = dunst & waybar & /usr/lib/polkit-kde-authentication-agent-1
|
||||
# exec-once = ~/.scripts/start-xdg-desktop-portal-hyprland
|
||||
# exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
#
|
||||
|
||||
# hyprpaper for wallpaper stuff
|
||||
# exec-once = hyprpaper & ~/.config/hypr/setwallpapers
|
||||
exec-once = hyprpaper
|
||||
|
|
10
hyprland/.config/hypr/hyprpaper.conf
Normal file
10
hyprland/.config/hypr/hyprpaper.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
preload = ~/.wallpapers/anime1.jpg
|
||||
|
||||
#set the default wallpaper(s) seen on initial workspace(s) --depending on the number of monitors used
|
||||
wallpaper = ,~/.wallpapers/anime1.jpg
|
||||
|
||||
#enable splash text rendering over the wallpaper
|
||||
splash = false
|
||||
|
||||
#fully disable ipc
|
||||
# ipc = off
|
22
hyprland/.config/hypr/setwallpapers
Executable file
22
hyprland/.config/hypr/setwallpapers
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env bash
|
||||
# A simple wallpaper setting script
|
||||
|
||||
wallpapers_dir=~/.wallpapers
|
||||
# wallpaper=miku.jpg
|
||||
wallpaper=anime1.jpg
|
||||
|
||||
monitors=$(hyprctl monitors | grep Monitor | awk '{print $2}')
|
||||
|
||||
# unload all existing wallpapers to free mem
|
||||
echo "Unloading all wallpapers: $(hyprctl hyprpaper unload all)"
|
||||
echo "Preloading wallpaper '$wallpaper': $(hyprctl hyprpaper preload "$wallpapers_dir/$wallpaper")"
|
||||
|
||||
# Set wallpaper on all monitors (doesn't work)
|
||||
# result=$(hyprctl hyprpaper wallpaper ", $wallpapers_dir/$wallpaper")
|
||||
# echo "Set wallpaper: $result"
|
||||
|
||||
# Set wallpaper on each monitor one by one
|
||||
for mon in $monitors; do
|
||||
result=$(hyprctl hyprpaper wallpaper "$mon, $wallpapers_dir/$wallpaper")
|
||||
echo "Set wallpaper on monitor $mon: $result"
|
||||
done
|
BIN
wallpapers/.wallpapers/anime1.jpg
Normal file
BIN
wallpapers/.wallpapers/anime1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 970 KiB |
1
wallpapers/.wallpapers/current
Symbolic link
1
wallpapers/.wallpapers/current
Symbolic link
|
@ -0,0 +1 @@
|
|||
miku.jpg
|
Before Width: | Height: | Size: 436 KiB After Width: | Height: | Size: 436 KiB |
BIN
wallpapers/.wallpapers/miku.jpg
Normal file
BIN
wallpapers/.wallpapers/miku.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 469 KiB |
Loading…
Reference in a new issue