Switch to Hyprpicker
This commit is contained in:
parent
9aba9dd727
commit
bbe92e5cd7
3 changed files with 5 additions and 22 deletions
|
@ -6,17 +6,15 @@
|
||||||
./rofi
|
./rofi
|
||||||
./swaylock
|
./swaylock
|
||||||
./waybar
|
./waybar
|
||||||
./wlpicker
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; lib.mkIf config.home.desktop.enable [
|
home.packages = with pkgs; lib.mkIf config.home.desktop.enable [
|
||||||
brightnessctl
|
brightnessctl
|
||||||
clipman
|
clipman
|
||||||
grim
|
|
||||||
hyprpicker
|
hyprpicker
|
||||||
libnotify
|
libnotify
|
||||||
rot8
|
rot8
|
||||||
slurp
|
shotman
|
||||||
wdisplays
|
wdisplays
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
wlsunset
|
wlsunset
|
||||||
|
|
|
@ -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
|
|
||||||
'')
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
# Prime + ctrl + key
|
# Prime + ctrl + key
|
||||||
"${primeMod}+Ctrl+s" = ''exec rofiscratch'';
|
"${primeMod}+Ctrl+s" = ''exec rofiscratch'';
|
||||||
"${primeMod}+Ctrl+c" = ''exec wlpicker && notify-send "Color copied to clipboard"'';
|
"${primeMod}+Ctrl+c" = ''exec hyprpicker | wl-copy -n && notify-send "Color copied to clipboard"'';
|
||||||
|
|
||||||
## Media
|
## Media
|
||||||
|
|
||||||
|
@ -60,9 +60,9 @@
|
||||||
"${primeMod}+Ctrl+n" = ''exec makoctl dismiss -a'';
|
"${primeMod}+Ctrl+n" = ''exec makoctl dismiss -a'';
|
||||||
|
|
||||||
# Screenshots
|
# Screenshots
|
||||||
"${secMod}+f" = ''exec ${pkgs.shotman}/bin/shotman --copy --capture region'';
|
"${secMod}+f" = ''exec shotman --copy --capture region'';
|
||||||
"${secMod}+Shift+f" = ''exec ${pkgs.shotman}/bin/shotman --copy --capture window'';
|
"${secMod}+Shift+f" = ''exec shotman --copy --capture window'';
|
||||||
"${secMod}+Ctrl+f" = ''exec ${pkgs.shotman}/bin/shotman --copy --capture output'';
|
"${secMod}+Ctrl+f" = ''exec shotman --copy --capture output'';
|
||||||
|
|
||||||
# Display brightness
|
# Display brightness
|
||||||
"${primeMod}+equal" = ''exec brightnessctl s 5%+'';
|
"${primeMod}+equal" = ''exec brightnessctl s 5%+'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue