some hyprland updates

This commit is contained in:
mjallen18
2025-06-25 18:42:52 -05:00
parent e436f4e543
commit 24fa8c6569
11 changed files with 306 additions and 222 deletions

View File

@@ -1,5 +1,7 @@
{ pkgs, ... }:
let
drawer = "nwg-drawer -fm nautilus -term kitty -mb 10 -mt 10 -ml 10 -mr 10 -pbuseicontheme -i Colloid-nord-dark";
theme = import ../../theme.nix { inherit pkgs; };
drawer = "nwg-drawer -fm nautilus -term kitty -mb 10 -mt 10 -ml 10 -mr 10 -pbuseicontheme -i ${theme.iconTheme}";
in
{
wayland.windowManager.hyprland = {
@@ -32,6 +34,7 @@ in
bind = [
"$mod, Return, exec, kitty"
"$mod, SPACE, exec, wofi --show drun"
"$mod, Q, killactive, "
"$mod, M, exec, wlogout --protocol layer-shell"
"$mod, E, exec, nautilus"
@@ -44,12 +47,12 @@ in
"$mod,F,exec,hyprctl dispatch fullscreen active"
"$mod SHIFT, E, exec, smile"
"$mod, mouse:276, movecurrentworkspacetomonitor, DP-1"
"$mod, mouse:275, movecurrentworkspacetomonitor, DP-2"
"$mod, mouse:276, movecurrentworkspacetomonitor, ${theme.displayLeft.input}"
"$mod, mouse:275, movecurrentworkspacetomonitor, ${theme.displayRight.input}"
# alt-tab between workspaces on active monitor
"ALT, Tab, workspace, m+1"
"ALT SHIFT, Tab, workspace, m-1"
"$mod, Tab, workspace, m+1"
"$mod SHIFT, Tab, workspace, m-1"
"$mod, h, movefocus, l"
"$mod, l, movefocus, r"
@@ -112,9 +115,8 @@ in
];
monitor = [
"DP-1,3840x2160@240.00000,0x0,1"
"DP-2,3840x2160@240.00000,3840x0,1"
"HDMI-A-1,1920x1080@60.00000,0x0,1"
"${theme.displayLeft.input},${theme.displayLeft.resolution}@${theme.displayLeft.refreshRate},0x0,1"
"${theme.displayRight.input},${theme.displayRight.resolution}@${theme.displayRight.refreshRate},3840x0,1"
];
misc = {
@@ -178,27 +180,27 @@ in
};
workspace = [
"name:firefox, monitor:DP-2, default:false, special, class:(.*firefox.*)"
"name:discord, monitor:DP-2, default:true, special, title:(.*vesktop.*), title:(.*Apple Music.*)"
"name:steam, monitor:DP-1, default:false, special, class:(.*[Ss]team.*)"
"name:firefox, monitor:${theme.displayRight.input}, default:false, special, class:(.*firefox.*)"
"name:discord, monitor:${theme.displayRight.input}, default:true, special, title:(.*vesktop.*), title:(.*Apple Music.*)"
"name:steam, monitor:${theme.displayLeft.input}, default:false, special, class:(.*[Ss]team.*)"
];
windowrule = [
"float, title:(file_progress)"
"float, title:(.*confirm.*)"
"float, title:(.*dialog.*)"
"float, title:(.*download.*)"
"float, title:(.*notification.*)"
"float, title:(.*error.*)"
"float, title:(.*splash.*)"
"float, title:(.*confirmreset.*)"
"float, title:(.*Open File.*)"
"float, title:(.*[Cc]onfirm.*)"
"float, title:(.*[Dd]ialog.*)"
"float, title:(.*[Dd]ownload.*)"
"float, title:(.*[Nn]otification.*)"
"float, title:(.*[Ee]rror.*)"
"float, title:(.*[Ss]plash.*)"
"float, title:(.*[Cc]onfirmreset.*)"
"float, title:(.*[Oo]pen [Ff]ile.*)"
"float, title:(.*branchdialog.*)"
"float, class:(.*pavucontrol)"
"move onscreen cursor 0% 0%, class:(.*pavucontrol)"
"float, class:(.*FileRoller)"
"float, class:(.*wlogout)"
"idleinhibit stayfocused, title:(.*mpv)"
"float, class:(.*pavucontrol.*)"
"move onscreen cursor 0% 0%, class:(.*pavucontrol.*)"
"float, class:(.*FileRoller.*)"
"float, class:(.*wlogout.*)"
"idleinhibit stayfocused, title:(.*mpv.*)"
"float, title:(Media viewer)"
"float, class:(it.mijorus.smile),title:(Smile)"
@@ -226,10 +228,11 @@ in
# Game Tearing??? https://wiki.hyprland.org/Configuring/Tearing/
"immediate, class:(.*gamescope)"
# todo properly fix this shit instead of using gamescope
# vmware
"tag +horizonrdp, class:(Remote Desktop Connection),title:(BBar)"
"tag +horizonrdp, class:(Remote Desktop Connection),title:(Remote Desktop Connection)"
# this tag will set the below options to the vdi window
# this will have it auto open as a 2160x7680 window
# and makes multi-monitor work
"tag +horizonrdp, class:(.*[Vv][Mm]ware-view),title:(USPS Next VDI)"
"noanim, tag:horizonrdp"
"noblur, tag:horizonrdp"
@@ -240,11 +243,12 @@ in
"noborder, tag:horizonrdp"
"nodim, tag:horizonrdp"
"nomaxsize, tag:horizonrdp"
"float, class:(.*Vmware-view),title:(VMware Horizon Client"
"float, class:(Remote Desktop Connection),title:(.*Remote Desktop Connection.*)"
"float, class:(Remote Desktop Connection),title:(.*5cd238b4x0.*)"
"float, class:(Credential Manager UI Host),title:(.*Windows Security.*)"
"renderunfocused, tag:horizonrdp"
"idleinhibit, tag:horizonrdp"
"float, tag:horizonrdp"
"size 2160 7680, tag:horizonrdp"
# float the vmware window cause its annoying to use in fullscreen
"float, class:(.*[Vv][Mm]ware-view),title:([Vv][Mm]ware [Hh]orizon [Cc]lient)"
];
input = {