Switch to Hyprpicker

This commit is contained in:
Bun 2025-05-06 05:35:09 -04:00
parent 9aba9dd727
commit bbe92e5cd7
3 changed files with 5 additions and 22 deletions

View file

@ -6,17 +6,15 @@
./rofi
./swaylock
./waybar
./wlpicker
];
home.packages = with pkgs; lib.mkIf config.home.desktop.enable [
brightnessctl
clipman
grim
hyprpicker
libnotify
rot8
slurp
shotman
wdisplays
wl-clipboard
wlsunset

View file

@ -1,15 +0,0 @@
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; lib.mkIf config.home.desktop.enable [
(pkgs.writeScriptBin "wlpicker" ''
# Get color position
position=$(slurp -b 00000000 -p)
# Sleep to prevet grim always returning improper color
sleep 1
# Store the hex color value using imagemagick
grim -g "$position" -t png - | magick - -format '%[pixel:p{0,0}]' txt:- | tail -n 1 | cut -d ' ' -f 4 | wl-copy -n
'')
];
}