mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-06-25 22:41:54 +02:00
added wallpapers, moved wallpaper dir to Pictures, and added obs to my user
This commit is contained in:
parent
f71eea6c04
commit
b85fa62e7e
@ -120,7 +120,7 @@ with lib;
|
|||||||
exec-once = swaync
|
exec-once = swaync
|
||||||
exec-once = nm-applet --indicator
|
exec-once = nm-applet --indicator
|
||||||
exec-once = lxqt-policykit-agent
|
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 {
|
dwindle {
|
||||||
pseudotile = true
|
pseudotile = true
|
||||||
preserve_split = true
|
preserve_split = true
|
||||||
|
BIN
config/wallpapers/Rainnight.jpg
Normal file
BIN
config/wallpapers/Rainnight.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 MiB |
BIN
config/wallpapers/nix-wallpaper-stripes-logo.png
Normal file
BIN
config/wallpapers/nix-wallpaper-stripes-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
@ -39,7 +39,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Place Files Inside Home Directory
|
# Place Files Inside Home Directory
|
||||||
home.file.".config/wallpapers" = {
|
home.file."Pictures/Wallpapers" = {
|
||||||
source = ../../config/wallpapers;
|
source = ../../config/wallpapers;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
@ -80,6 +80,7 @@ in
|
|||||||
(import ../../scripts/themechange.nix { inherit pkgs; inherit host; inherit username; })
|
(import ../../scripts/themechange.nix { inherit pkgs; inherit host; inherit username; })
|
||||||
(import ../../scripts/theme-selector.nix { inherit pkgs; })
|
(import ../../scripts/theme-selector.nix { inherit pkgs; })
|
||||||
(import ../../scripts/nvidia-offload.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/web-search.nix { inherit pkgs; })
|
||||||
(import ../../scripts/rofi-launcher.nix { inherit pkgs; })
|
(import ../../scripts/rofi-launcher.nix { inherit pkgs; })
|
||||||
(import ../../scripts/screenshootin.nix { inherit pkgs; })
|
(import ../../scripts/screenshootin.nix { inherit pkgs; })
|
||||||
@ -98,7 +99,7 @@ in
|
|||||||
wheel_scroll_min_lines = 1;
|
wheel_scroll_min_lines = 1;
|
||||||
window_padding_width = 4;
|
window_padding_width = 4;
|
||||||
confirm_os_window_close = 0;
|
confirm_os_window_close = 0;
|
||||||
background_opacity = "0.85";
|
background_opacity = "0.9";
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
foreground #${palette.base05}
|
foreground #${palette.base05}
|
||||||
|
@ -24,7 +24,7 @@ in
|
|||||||
];
|
];
|
||||||
shell = pkgs.bash;
|
shell = pkgs.bash;
|
||||||
ignoreShellProgramCheck = true;
|
ignoreShellProgramCheck = true;
|
||||||
packages = with pkgs; [ ];
|
packages = with pkgs; [ obs-studio ];
|
||||||
};
|
};
|
||||||
# "newuser" = {
|
# "newuser" = {
|
||||||
# homeMode = "755";
|
# homeMode = "755";
|
||||||
|
16
scripts/wallsetter.nix
Normal file
16
scripts/wallsetter.nix
Normal 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
|
||||||
|
''
|
Loading…
x
Reference in New Issue
Block a user