rm dead code and organizing
This commit is contained in:
@@ -16,10 +16,6 @@ in {
|
|||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
# monitor = [
|
|
||||||
# "DP-3, 2560x1440@240, auto, auto, bitdepth, 10"
|
|
||||||
# "eDP-1,1920x1200@60.02,auto,1"
|
|
||||||
# ];
|
|
||||||
monitor = map (
|
monitor = map (
|
||||||
m: "${m.name},${
|
m: "${m.name},${
|
||||||
if m.enabled
|
if m.enabled
|
||||||
@@ -55,25 +51,6 @@ in {
|
|||||||
scroll_factor = 0.5;
|
scroll_factor = 0.5;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# Desktop keyboard
|
|
||||||
# device = [
|
|
||||||
# {
|
|
||||||
# name = "pfu-limited-hhkb-hybrid";
|
|
||||||
# kb_layout = "hhkbse";
|
|
||||||
# kb_options = "lv3:rwin_switch";
|
|
||||||
# }
|
|
||||||
# {
|
|
||||||
# name = "hhkb-hybrid_1-keyboard";
|
|
||||||
# kb_layout = "hhkbse";
|
|
||||||
# kb_options = "lv3:rwin_switch";
|
|
||||||
# }
|
|
||||||
# # Laptop keyboard
|
|
||||||
# {
|
|
||||||
# name = "at-translated-set-2-keyboard";
|
|
||||||
# kb_layout = "se";
|
|
||||||
# kb_options = "ctrl:swapcaps";
|
|
||||||
# }
|
|
||||||
# ];
|
|
||||||
gestures = {
|
gestures = {
|
||||||
workspace_swipe = true;
|
workspace_swipe = true;
|
||||||
workspace_swipe_distance = 400;
|
workspace_swipe_distance = 400;
|
||||||
@@ -101,11 +78,6 @@ in {
|
|||||||
explicit_sync_kms = 2;
|
explicit_sync_kms = 2;
|
||||||
direct_scanout = false;
|
direct_scanout = false;
|
||||||
};
|
};
|
||||||
# cursor = {
|
|
||||||
# no_hardware_cursors = true;
|
|
||||||
# no_break_fs_vrr = true;
|
|
||||||
# min_refresh_rate = 24;
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,54 +9,59 @@ in {
|
|||||||
options = {
|
options = {
|
||||||
home.wm.hyprland.cnst.rules.enable = mkEnableOption "Enables window rule settings in Hyprland";
|
home.wm.hyprland.cnst.rules.enable = mkEnableOption "Enables window rule settings in Hyprland";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
# CALCURSE SETTINGS
|
|
||||||
windowrulev2 = [
|
windowrulev2 = [
|
||||||
"float,initialTitle:(floatcal)"
|
# === CALCURSE SETTINGS ===
|
||||||
"size 843 650,initialTitle:(floatcal)"
|
"size 843 650, initialTitle:^(floatcal)$"
|
||||||
"move 100%-w-20 40,initialTitle:(floatcal)"
|
"move 100%-w-20 40, initialTitle:^(floatcal)$"
|
||||||
"float,initialTitle:(tuirun)"
|
"float, initialTitle:^(floatcal)$"
|
||||||
"size 600 300,initialTitle:(tuirun)"
|
|
||||||
"center,initialTitle:(tuirun)"
|
|
||||||
"workspace special:tuirun,initialTitle:(tuirun)"
|
|
||||||
"noborder,initialTitle:(tuirun)"
|
|
||||||
#windowrulev2 = move 1708 32,class:(floatcal)
|
|
||||||
"float,class:(org.keepassxc.KeePassXC)"
|
|
||||||
"size 843 530,class:(org.keepassxc.KeePassXC)"
|
|
||||||
"move 100%-w-20 40,class:(org.keepassxc.KeePassXC)"
|
|
||||||
|
|
||||||
# RANGER/NNN SETTINGS
|
# === TUIRUN SETTINGS ===
|
||||||
"float,class:(floatranger)"
|
"size 600 300, initialTitle:^(tuirun)$"
|
||||||
"float,class:(floatnnn)"
|
"center, initialTitle:^(tuirun)$"
|
||||||
#windowrulev2 = size 843 650,class:(floatranger)
|
"workspace special:tuirun, initialTitle:^(tuirun)$"
|
||||||
#windowrulev2 = move 1708 32,class:(floatranger)
|
"noborder, initialTitle:^(tuirun)$"
|
||||||
#windowrulev2 = move 1708 32;size 843 650;dimaround;float,class:^(kitty)$,title:^(kitty)$
|
"float, initialTitle:^(tuirun)$"
|
||||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
|
||||||
"suppressevent maximize, class:.* # You'll probably like this."
|
# === KEEPASSXC SETTINGS ===
|
||||||
#windowrulev2 = noshadow, floating:0
|
"size 843 530, class:^(org.keepassxc.KeePassXC)$"
|
||||||
|
"move 100%-w-20 40, class:^(org.keepassxc.KeePassXC)$"
|
||||||
|
"float, class:^(org.keepassxc.KeePassXC)$"
|
||||||
|
|
||||||
|
# === SUPPRESS MAXIMIZE EVENT ===
|
||||||
|
"suppressevent maximize, class:.*" # Suppress maximize events for all windows
|
||||||
|
|
||||||
|
# === NWG-LOOK SETTINGS ===
|
||||||
|
"center, class:^(nwg-look)$"
|
||||||
|
"float, class:^(nwg-look)$"
|
||||||
|
|
||||||
|
# === PAVUCONTROL SETTINGS ===
|
||||||
|
"move 100%-w-20 40, class:^(pavucontrol)$"
|
||||||
|
"size 741 585, class:^(pavucontrol)$"
|
||||||
|
"float, class:^(pavucontrol)$"
|
||||||
|
|
||||||
|
# === XARCHIVER SETTINGS ===
|
||||||
|
"center, class:^(xarchiver)$"
|
||||||
|
"float, class:^(xarchiver)$"
|
||||||
|
|
||||||
|
# === FLOATING APPLICATIONS ===
|
||||||
|
"float, class:^(org.gnome.FileRoller)$"
|
||||||
|
"float, class:^(org.freedesktop.impl.portal.desktop.kde)$"
|
||||||
|
"float, class:^(org.corectrl.CoreCtrl)$"
|
||||||
|
"float, class:^(feh)$"
|
||||||
|
"float, class:^(polkit-gnome-authentication-agent-1)$"
|
||||||
|
"float, class:^(org.gnome.Calculator)$"
|
||||||
|
"float, class:^(Lxappearance)$"
|
||||||
"float, class:^(imv)$"
|
"float, class:^(imv)$"
|
||||||
"float, class:^(com.github.hluk.copyq)$"
|
"float, class:^(com.github.hluk.copyq)$"
|
||||||
"float, class:^(blueman-manager)$"
|
"float, class:^(blueman-manager)$"
|
||||||
"center,class:^(nwg-look)$"
|
"float, class:^(floatranger)$"
|
||||||
"float,class:^(nwg-look)$"
|
"float, class:^(floatnnn)$"
|
||||||
"float,class:^(Lxappearance)$"
|
|
||||||
"float,class:(pavucontrol)$"
|
|
||||||
"move 100%-w-20 40,class:(pavucontrol)$"
|
|
||||||
"float,class:^(polkit-gnome-authentication-agent-1)$"
|
|
||||||
"float,class:^(org.gnome.Calculator)$"
|
|
||||||
"size 741 585,class:(pavucontrol)$"
|
|
||||||
"float,class:^(cnst.test)$"
|
|
||||||
"float,class:^(org.corectrl.CoreCtrl)$"
|
|
||||||
"float,class:^(feh)$"
|
|
||||||
"float,class:^(com.example.gtk-adieux)$"
|
|
||||||
];
|
|
||||||
windowrule = [
|
|
||||||
"center, ^(xarchiver)$"
|
|
||||||
"float, ^(xarchiver)$"
|
|
||||||
"float, ^(org.gnome.FileRoller)$"
|
|
||||||
"float, ^(org.freedesktop.impl.portal.desktop.kde)$"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
windowrule = [];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,9 +11,21 @@ in {
|
|||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
monitor = [
|
monitor = map (
|
||||||
"monitor=DVI-D-1,1920x1080@144,auto,1"
|
m: "${m.name},${
|
||||||
];
|
if m.enabled
|
||||||
|
then "${toString m.width}x${toString m.height}@${toString m.refreshRate},${m.position},1${
|
||||||
|
if m.bitDepth != null
|
||||||
|
then ",bitdepth,${toString m.bitDepth}"
|
||||||
|
else ""
|
||||||
|
}"
|
||||||
|
else "disable"
|
||||||
|
}"
|
||||||
|
) (config.monitors);
|
||||||
|
workspace = map (
|
||||||
|
m: "name:${m.workspace},monitor:${m.name}"
|
||||||
|
) (lib.filter (m: m.enabled && m.workspace != null) config.monitors);
|
||||||
|
|
||||||
env = [
|
env = [
|
||||||
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
|
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user