committing random WM stuff

This commit is contained in:
2026-03-24 00:03:59 +01:00
parent a7c0018684
commit cb15e83811
70 changed files with 5428 additions and 1 deletions

23
colorpicker Executable file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env bash
## Copyright (C) 2020-2024 Aditya Shakya <adi1090x@gmail.com>
##
## Simple Script To Pick Color Quickly.
#color=$(grim -g "`slurp -b 00000000 -p`" -t ppm - | convert - -format '%[pixel:p{0,0}]' txt:- | tail -n1 | cut -d' ' -f4)
color=`$(which hyprpicker)`
image=/tmp/${color}.png
main() {
if [[ "$color" ]]; then
# copy color code to clipboard
echo $color | tr -d "\n" | wl-copy
# generate preview
convert -size 48x48 xc:"$color" ${image}
# notify about it
notify-send -h string:x-canonical-private-synchronous:sys-notify-picker -u low -i ${image} "$color, copied to clipboard."
fi
}
# Run the script
main