This commit is contained in:
parent
8d7d6115e3
commit
487e116bac
5 changed files with 15 additions and 30 deletions
|
@ -10,7 +10,6 @@
|
||||||
cli = {
|
cli = {
|
||||||
bookmarkthis.enable = true;
|
bookmarkthis.enable = true;
|
||||||
node.enable = true;
|
node.enable = true;
|
||||||
sxhkd.enable = true;
|
|
||||||
starship.enable = true;
|
starship.enable = true;
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
./redshift.nix
|
./redshift.nix
|
||||||
./screenkey.nix
|
./screenkey.nix
|
||||||
./starship.nix
|
./starship.nix
|
||||||
./sxhkd.nix
|
|
||||||
./zsh
|
./zsh
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
3
modules2/sxhkd/enable.nix
Normal file
3
modules2/sxhkd/enable.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
flake.modules.homeManager.gui.services.sxhkd.enable = true;
|
||||||
|
}
|
|
@ -1,40 +1,21 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
config,
|
flake.modules.homeManager.gui =
|
||||||
lib,
|
{ pkgs, ... }:
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.features.cli.${service};
|
|
||||||
service = "sxhkd";
|
|
||||||
|
|
||||||
inherit (lib) getExe mkIf mkEnableOption;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
options.features.cli.${service} = {
|
services.sxhkd.keybindings = {
|
||||||
enable = mkEnableOption "Enable ${service}";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
xsession.enable = true;
|
|
||||||
|
|
||||||
services.${service} = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
keybindings = {
|
|
||||||
"{_, shift +, super +}XF86MonBrightness{Down,Up}" =
|
"{_, shift +, super +}XF86MonBrightness{Down,Up}" =
|
||||||
"${getExe pkgs.brightnessctl} set {5%-,10%-,10%,+5%,+10%,100%} --quiet";
|
"${lib.getExe pkgs.brightnessctl} set {5%-,10%-,10%,+5%,+10%,100%} --quiet";
|
||||||
"super + BackSpace" = "/home/opdavies/sysact";
|
"super + BackSpace" = "/home/opdavies/sysact";
|
||||||
"super + shift + b" = "/etc/profiles/per-user/opdavies/bin/bookmarkthis";
|
"super + shift + b" = "/etc/profiles/per-user/opdavies/bin/bookmarkthis";
|
||||||
"super + shift + i" =
|
"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)";
|
"${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";
|
"super + shift + p" = "${lib.getExe pkgs.passmenu-otp} -i";
|
||||||
"super + x; {1, 2, 3, 4}" = "st {notes, newsboat, nmtui, bluetuith}";
|
"super + x; {1, 2, 3, 4}" = "st {notes, newsboat, nmtui, bluetuith}";
|
||||||
"@F3" = "${getExe pkgs.displayselect}";
|
"@F3" = "${lib.getExe pkgs.displayselect}";
|
||||||
"@F9" = "/home/opdavies/.local/bin/mounter";
|
"@F9" = "/home/opdavies/.local/bin/mounter";
|
||||||
"@F10" = "/home/opdavies/.local/bin/unmounter";
|
"@F10" = "/home/opdavies/.local/bin/unmounter";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
3
modules2/xsession.nix
Normal file
3
modules2/xsession.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
flake.modules.homeManager.gui.xsession.enable = true;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue