1
0
forked from extern/zaneyos

make wallsetter better and add swappy config

This commit is contained in:
Tyler Kelley 2024-05-17 16:03:33 -05:00
parent 9988abea7b
commit e577a61b24
2 changed files with 16 additions and 1 deletions

View File

@ -13,7 +13,6 @@ let
gitUsername
gitEmail
theme
browser
;
in
{
@ -79,6 +78,19 @@ in
separator=" $(color 4)>"
stdout="off"
'';
home.file.".config/swappy/config".text = ''
[Default]
save_dir=/home/${username}/Pictures/Screenshots
save_filename_format=swappy-%Y%m%d-%H%M%S.png
show_panel=false
line_size=5
text_size=20
text_font=Ubuntu
paint_mode=brush
early_exit=true
fill_shape=false
'';
# Install & Configure Git
programs.git = {

View File

@ -3,6 +3,9 @@
pkgs.writeShellScriptBin "wallsetter" ''
WALLPAPER=$(find /home/${username}/Pictures/Wallpapers -name '*' | awk '!/.git/' | tail -n +2 | shuf -n 1)
PREVIOUS=$WALLPAPER
if [ "$WALLPAPER" == "$PREVIOUS" ]; then
WALLPAPER=$(find /home/${username}/Pictures/Wallpapers -name '*' | awk '!/.git/' | tail -n +2 | shuf -n 1)
fi
if [ -d /home/${username}/Pictures/Wallpapers ]; then
num_files=$(ls -1 /home/${username}/Pictures/Wallpapers | wc -l)