]> git.phdru.name Git - dotfiles.git/commitdiff
.fvwmrc: Suspend/resume FireFox
authorOleg Broytman <phd@phdru.name>
Tue, 6 Jun 2023 18:09:51 +0000 (21:09 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 6 Jun 2023 19:43:30 +0000 (22:43 +0300)
.fvwm/main.m4

index fcc07e4d24b48901ec8b138662ef7693b43f271c..4cf29b6baa1791a82b01e07f5235db085957520d 100644 (file)
@@ -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...