]> git.phdru.name Git - dotfiles.git/blobdiff - .fvwm/phd.m4
.fvwmrc: add ResumeFunction and FireFox-Wait
[dotfiles.git] / .fvwm / phd.m4
index e4588c4f47f9695c2cdbe8425ceb9f2efe796349..a5f1bde1e3f1cb2db70314fe52bdeb1bb01a8000 100644 (file)
@@ -458,7 +458,7 @@ AddToFunc RestartFunction
 +              I Module FvwmButtons
 +              I Module FvwmCommandS
 +              I Module FvwmPager 0 2
-+              I Next [!iconic CurrentScreen xterm] Focus
++              I Schedule 1000 Raise-All
 
 DestroyFunc UrgencyFunc
 AddToFunc UrgencyFunc
@@ -481,8 +481,7 @@ AddToFunc StartStandardSession
 +              I Wait TERM
 +              I PaVuControl
 +              I Wait "Volume Control"
-+              I FireFox
-+              I Wait "*Mozilla Firefox"
++              I FireFox-Wait
 +              I GotoDeskAndPage 1 0 1
 +              I TERM_KOI8
 +              I Wait TERM
@@ -498,6 +497,17 @@ AddToFunc StartStandardSession
 +              I GotoDeskAndPage 1 1 0
 +              I Schedule 1000 GotoDeskAndPage 0 1 0
 
+DestroyFunc ResumeFunction
+AddToFunc ResumeFunction
++              I GotoDeskAndPage 0 0 0
++              I TERM_KOI8
++              I Wait TERM
++              I PaVuControl
++              I Wait "Volume Control"
++              I Exec $HOME/current/projects/xsetbg/print-filename.py | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
++              I Wait gxmessage
++              I None ("*Mozilla Firefox") FireFox-Wait
++              I GotoDeskAndPage 0 1 0
 
 ############################################################################
 # COMPLEX FUNCTIONS
@@ -596,7 +606,11 @@ AddToFunc Term-Phdru-Big      I GotoDeskAndPage 1 0 1
 
 DestroyFunc FireFox
 AddToFunc FireFox             I GotoDeskAndPage 1 0 0
-+                             I Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser firefox
++                             I Exec if ! pgrep firefox >/dev/null; then LC_CTYPE=ru_RU.KOI8-R exec start-browser firefox; fi
+
+DestroyFunc FireFox-Wait
+AddToFunc FireFox-Wait        I FireFox
++                             I Wait "*Mozilla Firefox"
 
 DestroyFunc Gajim
 AddToFunc Gajim               I GotoDeskAndPage 1 1 0