mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
33 lines
1.1 KiB
Nix
33 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
settings,
|
|
...
|
|
}:
|
|
with lib; let
|
|
volInc =
|
|
if (settings.hostname == "gerg-desktop")
|
|
then "40"
|
|
else "400";
|
|
in {
|
|
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 ${volInc}+";
|
|
"XF86AudioLowerVolume" = "amixer sset Master ${volInc}-";
|
|
"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";
|
|
};
|
|
};
|
|
}
|