mirror of
https://github.com/szymon-jozef/superior_dotfiles.git
synced 2026-09-07 20:20:38 +02:00
Change attributes of .local/bin/brightness.sh
Change attributes of .local/bin/change_colors.sh Change attributes of .local/bin/change_wallpaper.sh Change attributes of .local/bin/check-do-not-disturb.sh Change attributes of .local/bin/check-if-muted.sh Change attributes of .local/bin/home_backup.sh Change attributes of .local/bin/random_wallpaper.sh Change attributes of .local/bin/restart_waybar.sh Change attributes of .local/bin/screenshot.sh Change attributes of .local/bin/screenshots.sh Change attributes of .local/bin/sekirofpsunlock Change attributes of .local/bin/start_coding.sh Change attributes of .local/bin/system_setup.sh Change attributes of .local/bin/wp-vol.sh Change attributes of .local/bin/old/brightness.sh Change attributes of .local/bin/old/change_colors.sh Change attributes of .local/bin/old/random_wallpaper.sh Change attributes of .local/bin/old/screenshots_overcomplified.sh Change attributes of .local/bin/steamtinkerlaunch
This commit is contained in:
20
private_dot_local/bin/executable_random_wallpaper.sh
Normal file
20
private_dot_local/bin/executable_random_wallpaper.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
case $1 in
|
||||
"nsfw")
|
||||
WALLPAPER_DIR="$HOME/Obrazy/tapety/nsfw/"
|
||||
;;
|
||||
"sfw")
|
||||
WALLPAPER_DIR="$HOME/Obrazy/tapety/sfw/"
|
||||
;;
|
||||
*)
|
||||
echo "Please choose nsfw or sfw"
|
||||
exit 1
|
||||
esac
|
||||
CURRENT_WALL=$(hyprctl hyprpaper listloaded)
|
||||
|
||||
# Get a random wallpaper that is not the current one
|
||||
WALLPAPER=$(find "$WALLPAPER_DIR" -type f ! -name "$(basename "$CURRENT_WALL")" | shuf -n 1)
|
||||
|
||||
# Apply the selected wallpaper
|
||||
hyprctl hyprpaper reload ,"$WALLPAPER"
|
||||
Reference in New Issue
Block a user