update:swww to awww change

This commit is contained in:
kokopi-dev
2026-02-18 16:17:53 +09:00
parent a04284e84f
commit 95346911a8
3 changed files with 10 additions and 7 deletions

View File

@@ -2,10 +2,10 @@
### wallpaper names: ### wallpaper names:
## standard-1.png ## standard-1.png
## wide-1.png ## wide-1.png
while ! swww query &>/dev/null; do while ! awww query &>/dev/null; do
sleep 0.1 sleep 0.1
done done
swww clear 000000 awww clear 000000
sleep 0.1 sleep 0.1
output=$(wlr-randr) output=$(wlr-randr)
@@ -13,7 +13,7 @@ output=$(wlr-randr)
monitor_count=$(echo "$output" | grep -c "Enabled: yes") monitor_count=$(echo "$output" | grep -c "Enabled: yes")
# init standard # init standard
swww img ~/pictures/bgs/standard-1.png --transition-type fade --transition-duration 1 --outputs "eDP-1" & disown awww img ~/pictures/bgs/standard-1.png --transition-type fade --transition-duration 1 --outputs "eDP-1" & disown
# framework laptop will only ever have 1 external plugged in (for now) # framework laptop will only ever have 1 external plugged in (for now)
if [ "$monitor_count" -gt 1 ]; then if [ "$monitor_count" -gt 1 ]; then
@@ -24,10 +24,10 @@ if [ "$monitor_count" -gt 1 ]; then
echo $external_monitor echo $external_monitor
if [ -n "$resolution" ]; then if [ -n "$resolution" ]; then
if [ "$resolution" = "1920x1080" ]; then if [ "$resolution" = "1920x1080" ]; then
swww img ~/pictures/bgs/standard-1.png --transition-type fade --transition-duration 1 --outputs "$external_monitor" & disown awww img ~/pictures/bgs/standard-1.png --transition-type fade --transition-duration 1 --outputs "$external_monitor" & disown
else else
echo "Monitor type: Non-standard (not 1920x1080)" echo "Monitor type: Non-standard (not 1920x1080)"
swww img ~/pictures/bgs/wide-1.png --transition-type fade --transition-duration 1 --outputs "$external_monitor" & disown awww img ~/pictures/bgs/wide-1.png --transition-type fade --transition-duration 1 --outputs "$external_monitor" & disown
fi fi
fi fi
fi fi

View File

@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
set +e set +e
swww-daemon & disown awww-daemon & disown
init-wallpapers init-wallpapers

View File

@@ -1,6 +1,9 @@
# general packages # general packages
sudo pacman -S swaybg wl-clipboard wl-clip-persist cliphist slurp grim satty mako neovim firefox ghostty fastfetch xdg-desktop-portal-wlr xdg-desktop-portal-gtk libnotify unzip bat rsync exa ripgrep bash-completion jq otf-font-awesome thunar tumbler less fd mpv btop rofi difftastic udiskie sudo pacman -S swaybg wl-clipboard wl-clip-persist cliphist slurp grim satty mako neovim firefox ghostty fastfetch xdg-desktop-portal-wlr xdg-desktop-portal-gtk libnotify unzip bat rsync exa ripgrep bash-completion jq otf-font-awesome thunar tumbler less fd mpv btop rofi difftastic udiskie
# sony raw image thumbnail
yay -S raw-thumbnailer
# screenrecording # screenrecording
yay -S wl-screenrec yay -S wl-screenrec
@@ -80,7 +83,7 @@ sudo systemctl enable --now bluetooth.service
# not enabled: sudo modprobe btusb # not enabled: sudo modprobe btusb
# wallpapers # wallpapers
sudo pacman -S swww yay -S awww
# if pyenv installed: PATH="/usr/bin:$PATH" yay -S waypaper-git # if pyenv installed: PATH="/usr/bin:$PATH" yay -S waypaper-git
yay -S waypaper-git yay -S waypaper-git