From: Oleg Broytman Date: Tue, 6 Jun 2023 18:09:51 +0000 (+0300) Subject: .fvwmrc: Suspend/resume FireFox X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=ef7c1df927b438c502dea5a766f4dad02e5b9aca;p=dotfiles.git .fvwmrc: Suspend/resume FireFox --- 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...