minor tweaks
This commit is contained in:
@@ -46,6 +46,12 @@ in {
|
|||||||
|
|
||||||
environment.variables.FLAKE = "/home/cnst/.nix-config";
|
environment.variables.FLAKE = "/home/cnst/.nix-config";
|
||||||
|
|
||||||
|
programs.hyprland.settings = {
|
||||||
|
monitor = [
|
||||||
|
"eDP-1,1920x1200@60,0x0,1,transform,0"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
system.stateVersion = lib.mkDefault "23.11";
|
system.stateVersion = lib.mkDefault "23.11";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ in {
|
|||||||
settings = [
|
settings = [
|
||||||
{
|
{
|
||||||
height = 25;
|
height = 25;
|
||||||
output = ["DP-3"];
|
output = ["DP-3" "eDP-1"];
|
||||||
|
|
||||||
modules-left = [
|
modules-left = [
|
||||||
"group/system"
|
"group/system"
|
||||||
|
|||||||
@@ -3,68 +3,86 @@
|
|||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib) mkIf mkEnableOption;
|
inherit (lib) mkIf mkEnableOption mkMerge;
|
||||||
|
host = config.networking.hostName;
|
||||||
cfg = config.nixos.programs.hyprland.rules;
|
cfg = config.nixos.programs.hyprland.rules;
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
nixos.programs.hyprland.rules.enable = mkEnableOption "Enables window rule settings in Hyprland";
|
nixos.programs.hyprland.rules.enable = mkEnableOption "Enables window rule settings in Hyprland";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable (mkMerge [
|
||||||
programs.hyprland.settings = {
|
{
|
||||||
windowrulev2 = [
|
programs.hyprland.settings = {
|
||||||
# === CALCURSE SETTINGS ===
|
windowrulev2 = [
|
||||||
"size 843 650, initialTitle:^(floatcal)$"
|
# === CALCURSE SETTINGS ===
|
||||||
"move 100%-w-20 40, initialTitle:^(floatcal)$"
|
"size 843 650, initialTitle:^(floatcal)$"
|
||||||
"float, initialTitle:^(floatcal)$"
|
"move 100%-w-20 40, initialTitle:^(floatcal)$"
|
||||||
|
"float, initialTitle:^(floatcal)$"
|
||||||
|
|
||||||
# === TUIRUN SETTINGS ===
|
# === TUIRUN SETTINGS ===
|
||||||
"size 600 300, title:^(tuirun)$"
|
"size 600 300, title:^(tuirun)$"
|
||||||
"center, title:^(tuirun)$"
|
"center, title:^(tuirun)$"
|
||||||
# "workspace special:tuirun, initialTitle:^(tuirun)$"
|
# "workspace special:tuirun, initialTitle:^(tuirun)$"
|
||||||
"noborder, title:^(tuirun)$"
|
"noborder, title:^(tuirun)$"
|
||||||
"float, title:^(tuirun)$"
|
"float, title:^(tuirun)$"
|
||||||
|
|
||||||
# === KEEPASSXC SETTINGS ===
|
# === KEEPASSXC SETTINGS ===
|
||||||
"size 843 530, class:^(org.keepassxc.KeePassXC)$"
|
"size 843 530, class:^(org.keepassxc.KeePassXC)$"
|
||||||
"move 100%-w-20 40, class:^(org.keepassxc.KeePassXC)$"
|
"move 100%-w-20 40, class:^(org.keepassxc.KeePassXC)$"
|
||||||
"float, class:^(org.keepassxc.KeePassXC)$"
|
"float, class:^(org.keepassxc.KeePassXC)$"
|
||||||
|
|
||||||
# === SUPPRESS MAXIMIZE EVENT ===
|
# === SUPPRESS MAXIMIZE EVENT ===
|
||||||
"suppressevent maximize, class:.*" # Suppress maximize events for all windows
|
"suppressevent maximize, class:.*" # Suppress maximize events for all windows
|
||||||
|
|
||||||
# === NWG-LOOK SETTINGS ===
|
# === NWG-LOOK SETTINGS ===
|
||||||
"center, class:^(nwg-look)$"
|
"center, class:^(nwg-look)$"
|
||||||
"float, class:^(nwg-look)$"
|
"float, class:^(nwg-look)$"
|
||||||
|
|
||||||
# === OCULANTE SETTINGS ===
|
# === OCULANTE SETTINGS ===
|
||||||
"center, class:^(oculante)$"
|
"center, class:^(oculante)$"
|
||||||
"float, class:^(oculante)$"
|
"float, class:^(oculante)$"
|
||||||
|
|
||||||
# === PAVUCONTROL SETTINGS ===
|
# === PAVUCONTROL SETTINGS ===
|
||||||
"move 100%-w-20 40, class:^(pavucontrol)$"
|
"move 100%-w-20 40, class:^(pavucontrol)$"
|
||||||
"size 741 585, class:^(pavucontrol)$"
|
"size 741 585, class:^(pavucontrol)$"
|
||||||
"float, class:^(pavucontrol)$"
|
"float, class:^(pavucontrol)$"
|
||||||
|
|
||||||
# === XARCHIVER SETTINGS ===
|
# === XARCHIVER SETTINGS ===
|
||||||
"center, class:^(xarchiver)$"
|
"center, class:^(xarchiver)$"
|
||||||
"float, class:^(xarchiver)$"
|
"float, class:^(xarchiver)$"
|
||||||
|
|
||||||
# === FLOATING APPLICATIONS ===
|
# === FLOATING APPLICATIONS ===
|
||||||
"float, class:^(org.gnome.FileRoller)$"
|
"float, class:^(org.gnome.FileRoller)$"
|
||||||
"float, class:^(org.freedesktop.impl.portal.desktop.kde)$"
|
"float, class:^(org.freedesktop.impl.portal.desktop.kde)$"
|
||||||
"float, class:^(org.corectrl.CoreCtrl)$"
|
"float, class:^(org.corectrl.CoreCtrl)$"
|
||||||
"float, class:^(feh)$"
|
"float, class:^(feh)$"
|
||||||
"float, class:^(polkit-gnome-authentication-agent-1)$"
|
"float, class:^(polkit-gnome-authentication-agent-1)$"
|
||||||
"float, class:^(org.gnome.Calculator)$"
|
"float, class:^(org.gnome.Calculator)$"
|
||||||
"float, class:^(com.github.hluk.copyq)$"
|
"float, class:^(com.github.hluk.copyq)$"
|
||||||
"float, class:^(blueman-manager)$"
|
"float, class:^(blueman-manager)$"
|
||||||
|
|
||||||
# === WORKSPACE RULES ===
|
# === WORKSPACE RULES ===
|
||||||
"workspace 5 silent, class:^(discord)$"
|
"workspace 5 silent, class:^(discord)$"
|
||||||
];
|
];
|
||||||
windowrule = [];
|
windowrule = [];
|
||||||
workspace = [
|
layerrule = [
|
||||||
|
"animation fade,hyprpicker"
|
||||||
|
"animation fade,selection"
|
||||||
|
|
||||||
|
"noanim,waybar"
|
||||||
|
"ignorezero,waybar"
|
||||||
|
"ignorealpha 0.0,waybar"
|
||||||
|
|
||||||
|
"blur,notifications"
|
||||||
|
"ignorezero,notifications"
|
||||||
|
|
||||||
|
"noanim,wallpaper"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
(mkIf (host == "cnix") {
|
||||||
|
programs.hyprland.settings.workspace = [
|
||||||
"name:1,monitor:DP-3"
|
"name:1,monitor:DP-3"
|
||||||
"name:2,monitor:DP-3"
|
"name:2,monitor:DP-3"
|
||||||
"name:3,monitor:DP-3"
|
"name:3,monitor:DP-3"
|
||||||
@@ -76,19 +94,12 @@ in {
|
|||||||
"name:9,monitor:DP-3"
|
"name:9,monitor:DP-3"
|
||||||
"name:10,monitor:DP-3"
|
"name:10,monitor:DP-3"
|
||||||
];
|
];
|
||||||
layerrule = [
|
})
|
||||||
"animation fade,hyprpicker"
|
(mkIf (host == "cnixpad") {
|
||||||
"animation fade,selection"
|
programs.hyprland.settings.workspace = [];
|
||||||
|
})
|
||||||
"noanim,waybar"
|
(mkIf (host == "toothpc") {
|
||||||
"ignorezero,waybar"
|
programs.hyprland.settings.workspace = [];
|
||||||
"ignorealpha 0.0,waybar"
|
})
|
||||||
|
]);
|
||||||
"blur,notifications"
|
|
||||||
"ignorezero,notifications"
|
|
||||||
|
|
||||||
"noanim,wallpaper"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user