make asusd stuff in hyprland config optional

This commit is contained in:
jacekpoz 2024-03-02 23:21:23 +01:00
parent f1d559de88
commit 446e1b824b
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C

View file

@ -311,8 +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"
", XF86Launch3, exec, ${pkgs.asusctl}/bin/asusctl led-mode -n"
", XF86Launch4, exec, ${pkgs.asusctl}/bin/asusctl profile -n"
(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")
# TODO what the fuck is this
", XF86TouchpadToggle, exec, "
# TODO fix this maybe
@ -354,8 +356,10 @@ in {
"$mainMod CONTROL, K, focusmonitor, r"
# keyboard brightness
", XF86KbdBrightnessUp, exec, ${pkgs.asusctl}/bin/asusctl -n"
", XF86KbdBrightnessDown, exec, ${pkgs.asusctl}/bin/asusctl -p"
(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")
"$mainMod SHIFT, G, changegroupactive, f"
"$mainMod CONTROL, G, changegroupactive, b"
@ -395,7 +399,8 @@ in {
# run persistent special workspace windows
"[workspace special:nixos silent;tile] cd ~/niksos; ${foot}/bin/foot"
"[workspace special:rog silent;tile] ${pkgs.asusctl}/bin/rog-control-center"
(mkIf config.myOptions.services.asusd.enable
"[workspace special:rog silent;tile] ${pkgs.asusctl}/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 ";")