added wallpapers, moved wallpaper dir to Pictures, and added obs to my user

This commit is contained in:
Tyler Kelley 2024-05-14 18:28:13 -05:00
parent f71eea6c04
commit b85fa62e7e
6 changed files with 21 additions and 4 deletions

View File

@ -120,7 +120,7 @@ with lib;
exec-once = swaync
exec-once = nm-applet --indicator
exec-once = lxqt-policykit-agent
exec-once = swww img /home/${username}/.config/wallpapers/zaney-wallpaper.jpg
exec-once = swww img /home/${username}/Pictures/Wallpapers/zaney-wallpaper.jpg
dwindle {
pseudotile = true
preserve_split = true

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -39,7 +39,7 @@ in
};
# Place Files Inside Home Directory
home.file.".config/wallpapers" = {
home.file."Pictures/Wallpapers" = {
source = ../../config/wallpapers;
recursive = true;
};
@ -80,6 +80,7 @@ in
(import ../../scripts/themechange.nix { inherit pkgs; inherit host; inherit username; })
(import ../../scripts/theme-selector.nix { inherit pkgs; })
(import ../../scripts/nvidia-offload.nix { inherit pkgs; })
(import ../../scripts/wallsetter.nix { inherit pkgs; inherit username; })
(import ../../scripts/web-search.nix { inherit pkgs; })
(import ../../scripts/rofi-launcher.nix { inherit pkgs; })
(import ../../scripts/screenshootin.nix { inherit pkgs; })
@ -98,7 +99,7 @@ in
wheel_scroll_min_lines = 1;
window_padding_width = 4;
confirm_os_window_close = 0;
background_opacity = "0.85";
background_opacity = "0.9";
};
extraConfig = ''
foreground #${palette.base05}

View File

@ -24,7 +24,7 @@ in
];
shell = pkgs.bash;
ignoreShellProgramCheck = true;
packages = with pkgs; [ ];
packages = with pkgs; [ obs-studio ];
};
# "newuser" = {
# homeMode = "755";

16
scripts/wallsetter.nix Normal file
View File

@ -0,0 +1,16 @@
{ pkgs, username, ... }:
pkgs.writeShellScriptBin "wallsetter" ''
WALLPAPER=$(find /home/${username}/Pictures/Wallpapers -name '*' | awk '!/.git/' | tail -n +2 | shuf -n 1)
PREVIOUS=$WALLPAPER
if [ -d /home/${username}/Pictures/Wallpapers ]; then
num_files=$(ls -1 /home/${username}/Pictures/Wallpapers | wc -l)
if [ $num_files -lt 1 ]; then
notify-send -t 9000 "The wallpaper folder is expected to have more than 1 image. Exiting Wallsetter."
exit
fi
${pkgs.swww}/bin/swww img "$WALLPAPER" --transition-type random
fi
''