Add ac-adaptive and ac-i3

This commit is contained in:
2024-12-30 17:42:34 -07:00
parent 08266c9e8a
commit 0df5cf6ad2
77 changed files with 11099 additions and 24 deletions

22
ac-i3/scripts/i3_colorpicker Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
## Copyright (C) 2020-2024 Aditya Shakya <adi1090x@gmail.com>
##
## Simple script to pick color quickly.
color=$(xcolor --format hex --preview-size 255 --scale 10)
image=/tmp/${color}.png
main() {
if [[ "$color" ]]; then
# copy color code to clipboard
echo $color | tr -d "\n" | xclip -selection clipboard
# generate preview
convert -size 48x48 xc:"$color" ${image}
# notify about it
dunstify -u low -h string:x-dunst-stack-tag:obcolorpicker -i ${image} "$color, copied to clipboard."
fi
}
# run the script
main