nixos/home-manager/sxhkd.nix
ISnortPennies d85d1e7bf0 switched from webcord to openasar
fixed dmenu quit-prompt having a random "-e" in it
added screenshotting to clipboard keybindings
2022-10-23 23:18:14 -04:00

23 lines
945 B
Nix

{
services.sxhkd = {
enable = true;
keybindings = {
#media keybindings
"XF86AudioPlay" = "playerctl play-pause";
"XF86AudioPause" = "playerctl play-pause";
"XF86AudioStop" = "playerctl stop";
"XF86AudioNext" = "playerctl next";
"XF86AudioPrev" = "playerctl previous";
"XF86AudioRaiseVolume" = "amixer sset Master 40+";
"XF86AudioLowerVolume" = "amixer sset Master 40-";
"XF86AudioMute" = "amixer sset Master toggle ";
"XF86MonBrightnessUp" = "brightnessctl s 20+";
"XF86MonBrightnessDown" = "brightnessctl s 20-";
#screenshot stuff
"Print" = "maim $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg";
"Print + shift" = "maim | xclip -selection clipboard -t image/png";
"super + Print" = "maim -s $HOME/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg";
"super + Print + shift" = "maim -s | xclip -selection clipboard -t image/png";
};
};
}