Compare commits

...

4 commits

4 changed files with 18 additions and 23 deletions

View file

@ -1,8 +1,8 @@
misc {
disable_hyprland_logo = true
vfr = true
vrr = 2
disable_autoreload = true
mouse_move_enables_dpms = true
key_press_enables_dpms = true
force_default_wallpaper = 0
}

View file

@ -1,18 +1,8 @@
# Laptop config
monitor = eDP-1, 1920x1080@60, 0x0, 1
monitor = , preferred, auto, 1, mirror, eDP-1
# monitor = , preferred, auto, 1
workspace = 1, monitor:eDP-1, default:true
workspace = 2, monitor:eDP-1
workspace = 3, monitor:eDP-1
workspace = 4, monitor:eDP-1
# Desktop config
# monitor = DP-1, 1920x1080@165, 0x0, 1
# monitor = HDMI-A-1, preferred, 1920x0, 1
# monitor = , preferred, auto, 1
# workspace = 1, monitor:DP-1, default:true
# workspace = 2, monitor:DP-1
# workspace = 3, monitor:DP-1
# workspace = 4, monitor:DP-1

View file

@ -1,3 +1 @@
preload = /usr/share/hyprland/wall0.png
wallpaper = ,/usr/share/hyprland/wall0.png
splash = true

View file

@ -177,15 +177,22 @@ function set_betterdiscord_theme {
function set_desktop_wallpaper_theme {
if ! pgrep -u "$USER" hyprpaper > /dev/null; then
hyprctl dispatch exec hyprpaper > /dev/null
while ! hyprctl hyprpaper listloaded &> /dev/null; do
sleep 0.25
hyprctl -q dispatch exec hyprpaper
while ! hyprctl -q hyprpaper listloaded; do
sleep 0.1
done
fi
hyprctl hyprpaper preload "$wallpaper"
hyprctl hyprpaper wallpaper "eDP-1,$wallpaper"
hyprctl hyprpaper unload unused
for monitor in $(hyprctl -j monitors | jq -r '.[] | .name'); do
hyprctl -q hyprpaper preload "$wallpaper"
hyprctl -q hyprpaper wallpaper "$monitor,$wallpaper"
if [[ -n $albums_arg ]]; then
# Sets global variable $wallpaper
pick_random_wallpaper
fi
done
hyprctl -q hyprpaper unload unused
}
@ -202,7 +209,7 @@ function set_hyprland_theme {
echo '$'"$key=$value" >> "$HOME/.config/hypr/hyprland.d/colors.conf"
done
hyprctl reload > /dev/null
hyprctl -q reload
}
@ -245,7 +252,7 @@ function set_mako_theme {
if pgrep -u "$USER" mako > /dev/null; then
makoctl reload
else
hyprctl dispatch exec mako > /dev/null
hyprctl -q dispatch exec mako
fi
}
@ -279,7 +286,7 @@ function set_waybar_theme {
if pgrep -u "$USER" waybar > /dev/null; then
killall -SIGUSR2 waybar
else
hyprctl dispatch exec waybar > /dev/null
hyprctl -q dispatch exec waybar
fi
}