From ef7c1df927b438c502dea5a766f4dad02e5b9aca Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 6 Jun 2023 21:09:51 +0300 Subject: [PATCH] .fvwmrc: Suspend/resume FireFox --- .fvwm/main.m4 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.fvwm/main.m4 b/.fvwm/main.m4 index fcc07e4..4cf29b6 100644 --- a/.fvwm/main.m4 +++ b/.fvwm/main.m4 @@ -644,6 +644,14 @@ AddToFunc FireFox I Any ("*Mozilla Firefox") Break + I Exec LC_CTYPE=ru_RU.KOI8-R exec cgmem_nice 4000 start-browser firefox -P phd + I Wait "*Mozilla Firefox" +DestroyFunc SuspendFireFox +AddToFunc SuspendFireFox I Exec exec pkill -STOP firefox ++ I All ("*Mozilla Firefox") Iconify True + +DestroyFunc ResumeFireFox +AddToFunc ResumeFireFox I Exec exec pkill -CONT firefox ++ I All ("*Mozilla Firefox") Iconify False + DestroyFunc Chromium AddToFunc Chromium I Any ("*Chromium") Break + I GotoDeskAndPage 1 1 0 @@ -853,6 +861,9 @@ AddToMenu Utilities "Choose one:" Title DestroyMenu Browsers AddToMenu Browsers "Choose one:" Title + "FireFox" FireFox ++ "Suspend FireFox" SuspendFireFox ++ "Resume FireFox" ResumeFireFox ++ "" Nop + "Chromium" Chromium # A wide variety of screenlocking options... -- 2.39.5