forked from poz/niksos
move asusd to options
This commit is contained in:
parent
446e1b824b
commit
6244018977
6 changed files with 17 additions and 28 deletions
|
@ -220,7 +220,6 @@
|
|||
};
|
||||
};
|
||||
services = {
|
||||
asusd.enable = true;
|
||||
dunst.enable = true;
|
||||
mpd.enable = true;
|
||||
greetd = {
|
||||
|
|
|
@ -10,6 +10,7 @@ _: {
|
|||
../../options/common/oomd.nix
|
||||
../../options/common/pin-registry.nix
|
||||
../../options/common/preserve-system.nix
|
||||
../../options/desktop/asusd.nix
|
||||
../../options/desktop/bluetooth.nix
|
||||
../../options/desktop/dev/malloc-perturb.nix
|
||||
../../options/desktop/fonts.nix
|
||||
|
|
|
@ -311,10 +311,10 @@ in {
|
|||
"$mainMod SHIFT CONTROL, S, exec, ${hyprcontrib.grimblast}/bin/grimblast save area - | ${pkgs.swappy}/bin/swappy -f - -o - | ${shadower}/bin/shadower | ${pkgs.coreutils-full}/bin/tee \"$(${pkgs.xdg-user-dirs}/bin/xdg-user-dir PICTURES)/Screenshots/$(date +'screenshot-%Y%m%d%H%M%S.png')\" | ${wl-clipboard}/bin/wl-copy && ${pkgs.libnotify}/bin/notify-send \"Screenshot taken (shadower)\""
|
||||
"$mainMod SHIFT, R, exec, ${hyprland}/bin/hyprctl reload"
|
||||
|
||||
(mkIf config.myOptions.services.asusd.enable
|
||||
", XF86Launch3, exec, ${pkgs.asusctl}/bin/asusctl led-mode -n")
|
||||
(mkIf config.myOptions.services.asusd.enable
|
||||
", XF86Launch4, exec, ${pkgs.asusctl}/bin/asusctl profile -n")
|
||||
(mkIf config.services.asusd.enable
|
||||
", XF86Launch3, exec, ${config.services.asusd.package}/bin/asusctl led-mode -n")
|
||||
(mkIf config.services.asusd.enable
|
||||
", XF86Launch4, exec, ${config.services.asusd.package}/bin/asusctl profile -n")
|
||||
# TODO what the fuck is this
|
||||
", XF86TouchpadToggle, exec, "
|
||||
# TODO fix this maybe
|
||||
|
@ -356,10 +356,10 @@ in {
|
|||
"$mainMod CONTROL, K, focusmonitor, r"
|
||||
|
||||
# keyboard brightness
|
||||
(mkIf config.myOptions.services.asusd.enable
|
||||
", XF86KbdBrightnessUp, exec, ${pkgs.asusctl}/bin/asusctl -n")
|
||||
(mkIf config.myOptions.services.asusd.enable
|
||||
", XF86KbdBrightnessDown, exec, ${pkgs.asusctl}/bin/asusctl -p")
|
||||
(mkIf config.services.asusd.enable
|
||||
", XF86KbdBrightnessUp, exec, ${config.services.asusd.package}/bin/asusctl -n")
|
||||
(mkIf config.services.asusd.enable
|
||||
", XF86KbdBrightnessDown, exec, ${config.services.asusd.package}/bin/asusctl -p")
|
||||
|
||||
"$mainMod SHIFT, G, changegroupactive, f"
|
||||
"$mainMod CONTROL, G, changegroupactive, b"
|
||||
|
@ -399,8 +399,8 @@ in {
|
|||
|
||||
# run persistent special workspace windows
|
||||
"[workspace special:nixos silent;tile] cd ~/niksos; ${foot}/bin/foot"
|
||||
(mkIf config.myOptions.services.asusd.enable
|
||||
"[workspace special:rog silent;tile] ${pkgs.asusctl}/bin/rog-control-center")
|
||||
(mkIf config.services.asusd.enable
|
||||
"[workspace special:rog silent;tile] ${config.services.asusd.package}/bin/rog-control-center")
|
||||
"[workspace special:keepassxc silent;tile] ${pkgs.keepassxc}/bin/keepassxc"
|
||||
|
||||
(if config.myOptions.programs.foot.server then "sleep 0.5 && ${pkgs.systemd}/bin/systemctl --user restart foot.service" else ";")
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: with lib; let
|
||||
cfg = config.myOptions.services.asusd;
|
||||
in {
|
||||
options.myOptions.services.asusd.enable = mkEnableOption "enable asusd";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.asusd = {
|
||||
enable = true;
|
||||
enableUserService = true;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,6 +1,5 @@
|
|||
_: {
|
||||
imports = [
|
||||
./asusd.nix
|
||||
./dunst.nix
|
||||
./greetd.nix
|
||||
./mpd.nix
|
||||
|
|
6
options/desktop/asusd.nix
Normal file
6
options/desktop/asusd.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
_: {
|
||||
services.asusd = {
|
||||
enable = true;
|
||||
enableUserService = true;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue