diff --git a/hosts/nb-new.cloonar.com/modules/sway/sway.conf b/hosts/nb-new.cloonar.com/modules/sway/sway.conf index b4018c1..6e48f6b 100644 --- a/hosts/nb-new.cloonar.com/modules/sway/sway.conf +++ b/hosts/nb-new.cloonar.com/modules/sway/sway.conf @@ -301,7 +301,7 @@ exec nextcloud exec cryptomator exec swayidle \ before-sleep 'loginctl lock-session $XDG_SESSION_ID' \ - lock 'swaylock --image ~/.wallpaper.jpg' \ + lock 'swaylock --color #282a36 --image ~/.wallpaper.jpg' \ timeout 180 'swaylock --screenshots --effect-blur 7x5' \ timeout 1800 'systemctl suspend' exec dunst @@ -312,9 +312,12 @@ exec mako --default-timeout=5000 # wallpaper output eDP-1 scale 1.5 -output eDP-1 bg ~/.wallpaper.jpg fill -output DP-4 bg ~/.wallpaper.jpg fill -output DP-5 bg ~/.wallpaper.jpg fill +output eDP-1 bg #282a36 solid_color +output eDP-1 bg ~/.wallpaper.png center +output DP-4 bg #282a36 solid_color +output DP-4 bg ~/.wallpaper.png center +output DP-5 bg #282a36 solid_color +output DP-5 bg ~/.wallpaper.png center input * xkb_layout "de" input * xkb_variant "colemak,,typewriter" diff --git a/hosts/nb-new.cloonar.com/modules/sway/sway.nix b/hosts/nb-new.cloonar.com/modules/sway/sway.nix index 20fa44a..12d1414 100644 --- a/hosts/nb-new.cloonar.com/modules/sway/sway.nix +++ b/hosts/nb-new.cloonar.com/modules/sway/sway.nix @@ -17,7 +17,9 @@ let ''; }; - sway-conf = builtins.readFile ./sway.conf + cfg.additionalConfig; + sway-conf = builtins.readFile ./sway.conf + cfg.additionalConfig + '' + exec swaybg --mode center -c #252525 -i ~/.wallpaper.png + ''; unstable = import (fetchTarball https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz) { config = { allowUnfree = true; }; }; @@ -94,6 +96,7 @@ in { rofi-rbw slurp sway + swaybg sway-launcher-desktop swayidle swaylock diff --git a/hosts/nb-new.cloonar.com/users/configs/wallpaper.jpg b/hosts/nb-new.cloonar.com/users/configs/wallpaper.jpg new file mode 100644 index 0000000..f58a38c Binary files /dev/null and b/hosts/nb-new.cloonar.com/users/configs/wallpaper.jpg differ diff --git a/hosts/nb-new.cloonar.com/users/configs/wallpaper.png b/hosts/nb-new.cloonar.com/users/configs/wallpaper.png new file mode 100644 index 0000000..701bbb8 Binary files /dev/null and b/hosts/nb-new.cloonar.com/users/configs/wallpaper.png differ diff --git a/hosts/nb-new.cloonar.com/users/dominik.nix b/hosts/nb-new.cloonar.com/users/dominik.nix index aea645d..d2c35d5 100644 --- a/hosts/nb-new.cloonar.com/users/dominik.nix +++ b/hosts/nb-new.cloonar.com/users/dominik.nix @@ -345,6 +345,8 @@ in set -eu ''; + home.file.".wallpaper.jpg".source = ./configs/wallpaper.jpg; + home.file.".wallpaper.png".source = ./configs/wallpaper.png; home.file.".local/share/nvim/project_nvim/project_history".source = ./configs/project_history; home.file.".config/Cryptomator/settings.json".source = ./configs/cryptomator.json;