nix-config/modules/sxhkd/keybindings.nix

21 lines
872 B
Nix

{ lib, ... }:
{
flake.modules.homeManager.gui =
{ pkgs, ... }:
{
services.sxhkd.keybindings = {
"@F10" = "/home/opdavies/.local/bin/unmounter";
"@F3" = "displayselect";
"@F9" = "/home/opdavies/.local/bin/mounter";
"super + BackSpace" = "dmenu_sys";
"super + shift + b" = "/etc/profiles/per-user/opdavies/bin/bookmarkthis";
"super + shift + i" =
"${pkgs.xdotool}/bin/xdotool type $(cat ~/.local/share/snippets.txt | grep -v '^#' | grep -v '^$' | sort | dmenu -i -l 50 | cut -d' ' -f1)";
"super + shift + p" = "${lib.getExe pkgs.passmenu-otp} -i";
"super + x; {1, 2, 3, 4}" = "st {notes, newsboat, nmtui, bluetuith}";
"{_, shift +, super +}XF86MonBrightness{Down,Up}" =
"${lib.getExe pkgs.brightnessctl} set {5%-,10%-,10%,+5%,+10%,100%} --quiet";
};
};
}