Compare commits

..
1 Commits
Author SHA1 Message Date
root 4282a9e541 (scripts) added colour picker to screenshot script 2026-07-06 15:31:30 +02:00
2 changed files with 2 additions and 3 deletions
-1
View File
@@ -11,7 +11,6 @@ export_paths+=("${HOME}/dotfiles/scripts")
export_paths+=("${HOME}/dotfiles/desktop-files")
export_paths+=("/opt/jlink")
export_paths+=("${HOME}/.cargo/bin")
export_paths+=("/opt/arm-gnu-toolchain-15.2.rel1-x86_64-arm-none-eabi/bin")
for entry in ${export_paths[@]}; do
if ! [[ -d "${entry}" ]]; then
+2 -2
View File
@@ -22,9 +22,9 @@ if [[ ! -d "${screenshots_path}" ]]; then
fi
temp_file="${screenshots_path}/temporary.png"
maim -suo -f png -t 0 "${temp_file}"
import -window root -crop "$(slop --tolerance=4 || exit 0)" "${temp_file}"
# maim -suo -f png --tolerance=4 "${temp_file}"
# meh!
function colour_picker {
colour_value="$(magick "${temp_file}" -scale 1x1\! -format "#%[hex:p{0,0}]" info:)"
notify-send "[colour picker]" "${colour_value}"