From: Oleg Broytman Date: Sat, 18 Oct 2025 11:57:50 +0000 (+0300) Subject: .fvwmrc: Recognize Firefox windows with longer names X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=2db6507e3938aa29e67897eed6ca1fc1e5ceb10e;p=dotfiles.git .fvwmrc: Recognize Firefox windows with longer names There're Firefox windows with longer titles like "Mozilla Firefox Something". --- diff --git a/.fvwm/main.m4 b/.fvwm/main.m4 index d48ca8c..f364e3d 100644 --- a/.fvwm/main.m4 +++ b/.fvwm/main.m4 @@ -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