add swww wallpaper cycling on unlock
This commit is contained in:
+4
-3
@@ -17,7 +17,8 @@ exec "foot --server"
|
|||||||
exec lxqt-policykit-agent
|
exec lxqt-policykit-agent
|
||||||
exec mako
|
exec mako
|
||||||
|
|
||||||
output * bg ~/.config/sway/nixgirl.png fill
|
exec swww-daemon
|
||||||
|
exec sh -c 'sleep 1 && ~/.config/sway/wallpaper.sh'
|
||||||
|
|
||||||
input type:keyboard {
|
input type:keyboard {
|
||||||
xkb_layout "se"
|
xkb_layout "se"
|
||||||
@@ -100,7 +101,7 @@ bindsym $mod+Shift+s exec 'grim -l 0 -g "$(slurp)" - | wl-copy'
|
|||||||
bindsym $mod+Alt+s exec 'mkdir -p ~/Pictures/Screenshots && grim -l 0 -g "$(slurp)" - | satty --filename - --output-filename ~/Pictures/Screenshots/$(date +"%Y-%m-%d_%H-%M-%S").png'
|
bindsym $mod+Alt+s exec 'mkdir -p ~/Pictures/Screenshots && grim -l 0 -g "$(slurp)" - | satty --filename - --output-filename ~/Pictures/Screenshots/$(date +"%Y-%m-%d_%H-%M-%S").png'
|
||||||
|
|
||||||
exec swayidle -w \
|
exec swayidle -w \
|
||||||
timeout 300 'swaylock -f -c 0a0a0a' \
|
timeout 300 'swaylock -f -c 0a0a0a && ~/.config/sway/wallpaper.sh' \
|
||||||
timeout 600 'swaymsg "output * dpms off"; wpctl set-mute @DEFAULT_AUDIO_SINK@ 1' \
|
timeout 600 'swaymsg "output * dpms off"; wpctl set-mute @DEFAULT_AUDIO_SINK@ 1' \
|
||||||
resume 'swaymsg "output * dpms on"; wpctl set-mute @DEFAULT_AUDIO_SINK@ 0' \
|
resume 'swaymsg "output * dpms on"; wpctl set-mute @DEFAULT_AUDIO_SINK@ 0' \
|
||||||
before-sleep 'swaylock -f -c 0a0a0a'
|
before-sleep 'swaylock -f -c 0a0a0a && ~/.config/sway/wallpaper.sh'
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
WALLPAPER=$(find "$HOME/.config/sway/wallpapers" -maxdepth 1 -type f \( -name "*.png" -o -name "*.jpg" -o -name "*.jpeg" \) | shuf -n 1)
|
||||||
|
swww img "$WALLPAPER" --transition-type random --transition-duration 2 --transition-fps 60
|
||||||
@@ -239,6 +239,10 @@
|
|||||||
source = config.lib.file.mkOutOfStoreSymlink "/home/ulve/nixos-dotfiles/config/nvim";
|
source = config.lib.file.mkOutOfStoreSymlink "/home/ulve/nixos-dotfiles/config/nvim";
|
||||||
};
|
};
|
||||||
xdg.configFile."sway".source = ./config/sway;
|
xdg.configFile."sway".source = ./config/sway;
|
||||||
|
home.file.".config/sway/wallpaper.sh" = {
|
||||||
|
source = ./config/sway/wallpaper.sh;
|
||||||
|
executable = true;
|
||||||
|
};
|
||||||
xdg.configFile."waybar".source = ./config/waybar;
|
xdg.configFile."waybar".source = ./config/waybar;
|
||||||
xdg.configFile."foot".source = ./config/foot;
|
xdg.configFile."foot".source = ./config/foot;
|
||||||
|
|
||||||
@@ -281,6 +285,7 @@
|
|||||||
swaylock # lock screen
|
swaylock # lock screen
|
||||||
swayidle # idle management (dims/locks/sleeps)
|
swayidle # idle management (dims/locks/sleeps)
|
||||||
brightnessctl # screen brightness control
|
brightnessctl # screen brightness control
|
||||||
|
swww # wallpaper daemon with transitions
|
||||||
waybar # status bar with left/center/right sections
|
waybar # status bar with left/center/right sections
|
||||||
lxqt.lxqt-policykit # polkit authentication agent
|
lxqt.lxqt-policykit # polkit authentication agent
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user