hyprland: add audio workspace, fix keybinds

This commit is contained in:
Charlie Root 2024-09-22 19:21:53 +02:00
commit 966b9f9942
5 changed files with 9 additions and 5 deletions

View file

@ -49,6 +49,7 @@ in {
# Toggle the three different special workspaces.
"$mainMod, N, togglespecialworkspace, nixos"
"$mainMod, X, togglespecialworkspace, keepassxc"
"$mainMod, V, togglespecialworkspace, audio"
# Reload hyprland
"$mainMod, R, exec, ${cfg.package}/bin/hyprctl reload"

View file

@ -20,6 +20,9 @@ in {
"[workspace special:nixos; silent;tile] ${pkgs.foot}/bin/foot -D ~/projects/nichts"
"[workspace special:keepassxc; silent;tile] ${pkgs.keepassxc}/bin/keepassxc"
"[workspace special:audio; silent;tile] ${pkgs.pavucontrol}/bin/pavucontrol"
"[workspace special:audio; silent;tile] ${pkgs.pwvucontrol}/bin/pwvucontrol"
"${pkgs.swww}/bin/swww-daemon"

View file

@ -6,7 +6,7 @@
...
}: let
cfg = config.modules.usrEnv.desktops.hyprland;
inherit (config.modules.other.system) username;
inherit (config.meta.mainUser) username;
inherit
(inputs'.split-monitor-workspaces.packages)
split-monitor-workspaces
@ -39,7 +39,7 @@ in {
cfg.portalPackage
];
config = {
common.default = ["hyprland"];
common.default = ["gtk" "hyprland"];
};
};

View file

@ -51,7 +51,6 @@ in {
gaps_out = 0;
border_size = 2;
"col.active_border" = "0xff${colors.base07}";
no_border_on_floating = true;
};

View file

@ -3,7 +3,7 @@
lib,
...
}: let
inherit (config.modules.other.system) username;
inherit (config.meta.mainUser) username;
inherit (config.modules.system.hardware) monitors;
inherit (lib) imap0 flatten optionalString;
inherit (builtins) map genList attrNames toString;
@ -50,6 +50,7 @@ in {
++ [
"special:nixos, decorate:false"
"special:keepassxc, decorate:false"
"special:audio, decorate:false"
];
};
};