This commit is contained in:
2025-12-11 10:50:53 -08:00
parent 4ddcf12d58
commit cdedc4ced2
2 changed files with 2 additions and 4 deletions

View File

@@ -6,9 +6,6 @@ THEME="$HOME/.config/rofi/launchers/type-3/style-4.rasi"
DIR="$HOME/Pictures/wallpapers/favorites" DIR="$HOME/Pictures/wallpapers/favorites"
SELECTED_WALL=$(cd "$DIR" && for a in *.jpg *.png; do echo -en "$a\0icon\x1f$a\n"; done | rofi -dmenu -i -no-custom -theme "$THEME" -p "Select a wallpaper" -theme-str 'configuration {icon-size: 128; dpi: 96;} window {width: 45%; height: 45%;}') SELECTED_WALL=$(cd "$DIR" && for a in *.jpg *.png; do echo -en "$a\0icon\x1f$a\n"; done | rofi -dmenu -i -no-custom -theme "$THEME" -p "Select a wallpaper" -theme-str 'configuration {icon-size: 128; dpi: 96;} window {width: 45%; height: 45%;}')
PTH="$(printf "%s" "$DIR/$SELECTED_WALL" | tr -s '/')" PTH="$(printf "%s" "$DIR/$SELECTED_WALL" | tr -s '/')"
hyprctl hyprpaper preload "$PTH" hyprctl hyprpaper wallpaper "DP-1, $PTH"
hyprctl hyprpaper wallpaper "$PTH"
hyprctl hyprpaper unload "$(cat "$HOME/.wallpaper")"
# hyprctl hyprpaper wallpaper "DP-1, $PTH"
notify-send -a "rofi-wallpaper" "Wallpaper set to" -i "$PTH" "$PTH" notify-send -a "rofi-wallpaper" "Wallpaper set to" -i "$PTH" "$PTH"
echo "$PTH" >"$HOME/.wallpaper" echo "$PTH" >"$HOME/.wallpaper"

View File

@@ -15,6 +15,7 @@ export QT_QPA_PLATFORMTHEME=qt5ct
export GTK_THEME=Dracula export GTK_THEME=Dracula
export XDG_CONFIG_HOME=$HOME/.config export XDG_CONFIG_HOME=$HOME/.config
export COMPOSE_BAKE=true export COMPOSE_BAKE=true
export ANKI_WAYLAND=1
# nvidia # nvidia
export NVD_BACKEND=direct export NVD_BACKEND=direct