diff --git a/polybar-modules/bluetooth2.ini b/polybar-modules/bluetooth2.ini index a53b2ac..255bbf1 100644 --- a/polybar-modules/bluetooth2.ini +++ b/polybar-modules/bluetooth2.ini @@ -2,7 +2,7 @@ type = custom/script exec = rofi-bluetooth --status interval = 2 -click-left = ~/scripts/rofi-bluetooth +click-left = ~/SudacodeRice/scripts/rofi-bluetooth click-right = blueman-manager # format-foreground = #fc8353 format-foreground = #A8D385 diff --git a/scripts/new-wallpaper.sh b/scripts/new-wallpaper.sh index 7506df8..f98c5df 100755 --- a/scripts/new-wallpaper.sh +++ b/scripts/new-wallpaper.sh @@ -1,13 +1,6 @@ -#!/bin/sh +#!/usr/bin/env bash -# set -Eeuo pipefail +set -Eeuo pipefail DIR=/home/sudacode/Pictures/wallpapers/ - -img=$(ls $DIR | shuf -n 1) - -if [[ $# -gt 0 && $1 == "-v" ]]; then - echo $img -fi - -feh --bg-scale $DIR$img +feh --bg-scale "$(find "$DIR" | shuf -n 1)"