feat(hyprland): Floating picture-in-picture videos

This commit is contained in:
Malte Tammena 2023-04-16 14:34:56 +02:00
parent 74b95e35ef
commit c8178be6e8

View file

@ -36,13 +36,6 @@
exec-once=${pkgs.waybar-hypr}/bin/waybar
exec-once=hyprpaper
windowrule = float,class:^(pinentry-qt)$
windowrule = pin,class:^(pinentry-qt)$
windowrule = bordercolor rgb(ff0000) rgb(ff0000),class:^(pinentry-qt)$
windowrule = center,class:^(pinentry-qt)$
windowrule = animation popin,class:^(pinentry-qt)$
windowrule = bordercolor rgb(ff0000),xwayland:1
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
kb_layout = us
@ -119,17 +112,23 @@
workspace_swipe_distance = 100;
}
# Example windowrule v1
# windowrule = float, ^(kitty)$
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# Pinentry fancyness
windowrule = float,class:^(pinentry-qt)$
windowrule = pin,class:^(pinentry-qt)$
windowrule = bordercolor rgb(ff0000) rgb(ff0000),class:^(pinentry-qt)$
windowrule = center,class:^(pinentry-qt)$
windowrule = animation popin,class:^(pinentry-qt)$
windowrule = bordercolor rgb(ff0000),xwayland:1
# Yikes, firefox sharing indicator!
windowrule = float,title:^(Firefox Sharing Indicator)$
windowrule = move 100%-57 100%-31,title:^(Firefox Sharing Indicator)$
windowrule = nofocus,title:^(Firefox Sharing Indicator)$
windowrule = noborder,title:^(Firefox Sharing Indicator)$
windowrule = nofullscreenrequest,title:^(Firefox Sharing Indicator)$
windowrule = animation popin,title:^(Firefox Sharing Indicator)$
# Float picture-in-picture videos
windowrulev2 = float,title:^(Picture-in-Picture)$,class:^(firefox)$
windowrulev2 = pin,title:^(Picture-in-Picture)$,class:^(firefox)$
bind = $mainMod , return, exec , kitty
bind = $mainMod SHIFT, Q , killactive ,