aboutsummaryrefslogtreecommitdiff
path: root/share/cfg
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2024-05-16 17:03:35 +0200
committerMiran Bastaja <miran.bastaja04@gmail.com>2024-05-16 17:03:35 +0200
commit28e60e430c7ac5791718b62073eddcde552187f6 (patch)
treeabf689b4951ba4d8f921a2b90eaa352a95483921 /share/cfg
parente8e4ebdffa43d5610e8c5a66e43049b8ecd7c2a5 (diff)
hyprland: float picture-in-picture firefox windows
Diffstat (limited to 'share/cfg')
-rw-r--r--share/cfg/hyprland.nix26
1 files changed, 20 insertions, 6 deletions
diff --git a/share/cfg/hyprland.nix b/share/cfg/hyprland.nix
index 5189b38..b9353ef 100644
--- a/share/cfg/hyprland.nix
+++ b/share/cfg/hyprland.nix
@@ -36,12 +36,22 @@ in
# workspaces
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
- ${builtins.concatStringsSep "\n" (builtins.genList (x:
- let ws = let c = (x + 1) / 10; in builtins.toString (x + 1 - (c * 10));
- in ''
- bind = $mod, ${ws}, workspace, ${toString (x + 1)}
- bind = $mod SHIFT, ${ws}, movetoworkspacesilent, ${toString (x + 1)}
- '') 10)}
+ ${builtins.concatStringsSep "\n" (
+ builtins.genList (
+ x:
+ let
+ ws =
+ let
+ c = (x + 1) / 10;
+ in
+ builtins.toString (x + 1 - (c * 10));
+ in
+ ''
+ bind = $mod, ${ws}, workspace, ${toString (x + 1)}
+ bind = $mod SHIFT, ${ws}, movetoworkspacesilent, ${toString (x + 1)}
+ ''
+ ) 10
+ )}
bind = $mod SHIFT, C, killactive
bind = $mod SHIFT, F, togglefloating
@@ -89,6 +99,10 @@ in
windowrulev2 = workspace 4,class:(Signal)
windowrulev2 = workspace 5,class:(Bitwarden)
+ # Floating picture-in-picture windows
+ windowrulev2 = float, title:^(Picture-in-Picture)$,class:^(firefox)$
+ windowrulev2 = size 15% 15%, title:^(Picture-in-Picture)$,class:^(firefox)$
+
# workaround for https://github.com/hyprwm/Hyprland/issues/2661
windowrulev2 = stayfocused, title:^()$,class:^(steam)$
windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$