about summary refs log tree commit diff
path: root/modules/workstation/windowing/sway/config.in
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-02-21 19:01:59 +0000
committerAlyssa Ross <hi@alyssa.is>2020-02-21 19:02:52 +0000
commit906ee15fe2ea97852784bb579233a6b2cdd8b059 (patch)
tree9d32fb3fc51ab931a39c688e001573691790dd00 /modules/workstation/windowing/sway/config.in
parent883610729144f72b548141761e9e92b094c209db (diff)
downloadnixlib-906ee15fe2ea97852784bb579233a6b2cdd8b059.tar
nixlib-906ee15fe2ea97852784bb579233a6b2cdd8b059.tar.gz
nixlib-906ee15fe2ea97852784bb579233a6b2cdd8b059.tar.bz2
nixlib-906ee15fe2ea97852784bb579233a6b2cdd8b059.tar.lz
nixlib-906ee15fe2ea97852784bb579233a6b2cdd8b059.tar.xz
nixlib-906ee15fe2ea97852784bb579233a6b2cdd8b059.tar.zst
nixlib-906ee15fe2ea97852784bb579233a6b2cdd8b059.zip
modules/sway: don't tile Firefox sharing indicator
Diffstat (limited to 'modules/workstation/windowing/sway/config.in')
-rw-r--r--modules/workstation/windowing/sway/config.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/workstation/windowing/sway/config.in b/modules/workstation/windowing/sway/config.in
index 77753953d8db..a5009174bc28 100644
--- a/modules/workstation/windowing/sway/config.in
+++ b/modules/workstation/windowing/sway/config.in
@@ -16,6 +16,22 @@ for_window [class="XDvi"] floating enable
 for_window [instance="xdvi"] floating enable
 for_window [class="XDvi" instance="xdvi"] floating disable
 
+# Stop the Firefox sharing indicator (that appears when on an
+# audio/video call) tiling, or appearing in the center of the display,
+# or being focused.
+no_focus [title="Firefox - Sharing Indicator"]
+for_window [title="Firefox - Sharing Indicator"] {
+    floating enable
+
+    # I'd really like this to be at the top, horizontally centered.
+    # Or maybe at the bottom right.  But there's not really a way to
+    # do that in sway configuration, as far as I can tell.  I think
+    # I'd need to exec a program that would measure the display size
+    # and compute the coordinates or something.  That sounds horrible
+    # and fragile, so top left it is.
+    move position 0 0
+}
+
 input * natural_scroll enabled
 output * bg @wallpaper@ fill