agsdotfilesdotshyprlandhyprland-configricerofirofi-configshell-scriptsswwwwallustwaybarwaybar-modulewaybar-themes
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
618 B
10 lines
618 B
#!/bin/bash |
|
cd $1 |
|
result=$(find . -type f|fzf \ |
|
--reverse --header="WallPaperSwitcher" --preview-window=44% \ |
|
--preview='kitten icat --clear --transfer-mode=memory --place="$FZF_PREVIEW_COLUMNS"x"$FZF_PREVIEW_LINES"@$(math $COLUMNS+5)x1 --align center --stdin=no -z -1 {}') |
|
#?? Maybe its a good idea to make a global function for changing wallpaper, something like :$hypr_dir/Scirpt/ChangeWallpapper.sh "SomePic.jpg" |
|
#so if you change wallpaper somewhere else,the workflow stay the same. |
|
#and you can move SWWW_PARAMS to the Wallpaper.conf so user can change that without touching the scirpt |
|
swww img "$result" |
|
exit 0
|
|
|