]> git.phdru.name Git - dotfiles.git/commitdiff
.fvwmrc: Recognize Firefox windows with longer names
authorOleg Broytman <phd@phdru.name>
Sat, 18 Oct 2025 11:57:50 +0000 (14:57 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 18 Oct 2025 11:57:50 +0000 (14:57 +0300)
There're Firefox windows with longer titles
like "Mozilla Firefox Something".

.fvwm/main.m4

index d48ca8c7e3e46d0a64b9ad8c8da52522ba99d395..f364e3d211932b117349c6fce2f5fd12d89bd6c9 100644 (file)
@@ -537,9 +537,9 @@ AddToFunc ResumeFunction
 +              I Exec sleep 10; exec "$HOME"/current/projects/audio-cdr-video/audio/pa-mic-off
 +              I XsetbgFilename
 +              I Wait gxmessage
-+              I Any ("*Mozilla Firefox") GotoDeskAndPage 0 1 1
++              I Any ("*Mozilla Firefox*") GotoDeskAndPage 0 1 1
 +              I TestRc (Match) Break 1
-+              I None ("*Mozilla Firefox") FireFox
++              I None ("*Mozilla Firefox*") FireFox
 
 ############################################################################
 # COMPLEX FUNCTIONS
@@ -628,18 +628,18 @@ AddToFunc Term2HostsHome      I GotoDeskAndPage 1 1 2
 +                             I GotoDeskAndPage 1 1 2
 
 DestroyFunc FireFox
-AddToFunc FireFox             I Any ("*Mozilla Firefox") Break 1
+AddToFunc FireFox             I Any ("*Mozilla Firefox*") Break 1
 +                             I GotoDeskAndPage 1 0 0
 +                             I Exec LC_CTYPE=ru_RU.KOI8-R exec cgmem_nice 4000 start-browser firefox -P phd
-+                             I Wait "*Mozilla Firefox"
++                             I Wait "*Mozilla Firefox*"
 
 DestroyFunc SuspendFireFox
 AddToFunc SuspendFireFox      I Exec exec pkill -STOP firefox
-+                             I All ("*Mozilla Firefox") Iconify True
++                             I All ("*Mozilla Firefox*") Iconify True
 
 DestroyFunc ResumeFireFox
 AddToFunc ResumeFireFox       I Exec exec pkill -CONT firefox
-+                             I All ("*Mozilla Firefox") Iconify False
++                             I All ("*Mozilla Firefox*") Iconify False
 
 DestroyFunc Chromium
 AddToFunc Chromium            I Any ("*Chromium") Break 1