From: Oleg Broytman Date: Sat, 2 May 2015 16:51:45 +0000 (+0300) Subject: .fvwmrc: add ResumeFunction and FireFox-Wait X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=81342609dd90000a4e57471555e298085e2a0d39;p=dotfiles.git .fvwmrc: add ResumeFunction and FireFox-Wait --- diff --git a/.fvwm/phd.m4 b/.fvwm/phd.m4 index 6564ac2..a5f1bde 100644 --- a/.fvwm/phd.m4 +++ b/.fvwm/phd.m4 @@ -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