2025-05-25 15:11:33 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.cli.${service};
|
|
|
|
service = "sxhkd";
|
|
|
|
|
|
|
|
inherit (lib) getExe mkIf mkEnableOption;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.cli.${service} = {
|
|
|
|
enable = mkEnableOption "Enable ${service}";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2025-05-31 13:25:46 +01:00
|
|
|
xsession.enable = true;
|
|
|
|
|
2025-05-25 15:11:33 +01:00
|
|
|
services.${service} = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
keybindings = {
|
2025-05-29 17:00:38 +01:00
|
|
|
"{_, shift +, super +}XF86MonBrightness{Down,Up}" = "${getExe pkgs.brightnessctl} set {5%-,10%-,10%,+5%,+10%,100%} --quiet";
|
|
|
|
"super + x; {1, 2, 3, 4}" = "st {notes, newsboat, nmtui, bluetuith}";
|
|
|
|
"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" = "${getExe pkgs.passmenu-otp} -i";
|
|
|
|
"@F3" = "${getExe pkgs.displayselect}";
|
|
|
|
"@F9" = "/home/opdavies/.local/bin/mounter";
|
|
|
|
"@F10" = "/home/opdavies/.local/bin/unmounter";
|
2025-05-25 15:11:33 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|