Compare commits

..
2 Commits
Author SHA1 Message Date
root 091259da79 (bash) void needs an update for arm-none-eabi- 2026-07-06 16:39:37 +02:00
root b2ffead66b (scripts) added colour picker to screenshot script 2026-07-06 16:39:33 +02:00
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -11,6 +11,7 @@ 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"
import -window root -crop "$(slop --tolerance=4 || exit 0)" "${temp_file}"
# maim -suo -f png --tolerance=4 "${temp_file}"
maim -suo -f png -t 0 "${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}"