Some Updates

This commit is contained in:
Eli Fouts
2025-01-23 00:42:06 -05:00
parent 5292de676f
commit ecfe83d022
39 changed files with 35 additions and 167 deletions
+2 -8
View File
@@ -1,16 +1,9 @@
#!/usr/bin/env bash
check() {
command -v "$1" 1>/dev/null
}
notify() {
check notify-send && {
notify-send -a "Color Picker" "$@"
return
}
echo "$@"
}
loc="$HOME/.cache/colorpicker"
[ -d "$loc" ] || mkdir -p "$loc"
@@ -57,4 +50,5 @@ prevColors=$(head -n $((limit - 1)) "$loc/colors")
echo "$color" >"$loc/colors"
echo "$prevColors" >>"$loc/colors"
sed -i '/^$/d' "$loc/colors"
source ~/.cache/wal/colors.sh && notify-send "Color Picker" "This color has been selected: $color" -i $wallpaper
pkill -RTMIN+1 waybar