i3: restrict rules for Chromium/Firefox sharing indicator to floating windows

This seems safer.
This commit is contained in:
Vincent Bernat 2022-02-28 11:45:11 +01:00
parent effdf7dd95
commit ac47c8be9c

8
config
View file

@ -151,11 +151,11 @@ for_window [class="Shadow"] fullscreen enable
for_window [window_role="PictureInPicture"] floating enable for_window [window_role="PictureInPicture"] floating enable
for_window [class="Pavucontrol"] floating enable for_window [class="Pavucontrol"] floating enable
# Firefox sharing indicator # Firefox sharing indicator
for_window [title="Firefox — Sharing Indicator"] border pixel 1, sticky enable, move position 20 ppt -5 px for_window [floating_from="auto" title="Firefox — Sharing Indicator"] border pixel 1, sticky enable, move position 20 ppt -5 px
no_focus [title="Firefox — Sharing Indicator"] no_focus [floating_from="auto" title="Firefox — Sharing Indicator"]
# Chromium sharing indicator # Chromium sharing indicator
for_window [title=" is sharing your screen.$"] border pixel 1, sticky enable, move position 20 ppt -5 px for_window [floating_from="auto" title=" is sharing your screen.$"] border pixel 1, sticky enable, move position 20 ppt -5 px
no_focus [title=" is sharing your screen.$"] no_focus [floating_from="auto" title=" is sharing your screen.$"]
# Zoom random rules # Zoom random rules
for_window [class="zoom" instance="zoom" title="^Zoom"] floating disable, border pixel $borderpx for_window [class="zoom" instance="zoom" title="^Zoom"] floating disable, border pixel $borderpx
for_window [class="zoom" instance="zoom" title="^zoom$"] floating enable, border pixel 0 for_window [class="zoom" instance="zoom" title="^zoom$"] floating enable, border pixel 0