X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.fvwm%2Fphd.m4;h=e28be6c8801e583f0c373af5dc3d51716f6b68ea;hb=60a70cfee8af5e2da611e7ad91fd86db9bb8ea81;hp=93db602f81866546bd1b0b0f44c21186e0ac3b43;hpb=1000e4191808ff2572837dfa2838d9c841089c44;p=dotfiles.git diff --git a/.fvwm/phd.m4 b/.fvwm/phd.m4 index 93db602..e28be6c 100644 --- a/.fvwm/phd.m4 +++ b/.fvwm/phd.m4 @@ -54,8 +54,8 @@ define(`BUTTONS_FONT', PAGER_FONT) define(`MENU_FONT', -ifelse(eval(WIDTH < 1024), 1, `xft:Helvetica:size=16', - eval(WIDTH < 1920), 1, `xft:Helvetica:size=18', `xft:Helvetica:size=22')) +ifelse(eval(WIDTH < 1024), 1, `xft:Sans:size=16', + eval(WIDTH < 1920), 1, `xft:Sans:size=18', `xft:Sans:size=22')) define(`IDENT_FONT', MENU_FONT) define(`WIN_LIST_FONT', MENU_FONT) define(`ICON_BOX_FONT', MENU_FONT) @@ -79,7 +79,7 @@ define(`TERM_GEOM_BOTRT', TERM_GEOM`-0-0') define(`TERM_GEOM_BIG', ifelse(eval(WIDTH < 1024), 1, `96x30', - eval(WIDTH < 1920), 1, `112x32', `126x35')) + eval(WIDTH < 1920), 1, `112x32+2-0', `126x35')) define(`TERM', `urxvt') @@ -232,7 +232,8 @@ Style * BorderWidth 5, HandleWidth 5, Icon unknown1.xpm Style * DecorateTransient, ClickToFocusRaisesOff Style "Fvwm*" !Title, Sticky, WindowListSkip -Style "FvwmButtons" !Handles, BorderWidth 0 +Style "FvwmButtons" !Handles, BorderWidth 0, Layer 2 +Style "FvwmPager" Layer 2 # Terminals Style "*term" Icon term.xpm @@ -259,7 +260,7 @@ Style "*Pidgin*" MinOverlapPercentPlacement # (S)MPlayer Style "*MPlayer*" Layer 6, PositionPlacement 350p 100p -Style "*clock" !Title, Sticky, WindowListSkip, Color Black/#40c040, NeverFocus, PositionPlacement 50-50w +1p +Style "*clock" !Title, Sticky, WindowListSkip, Color Black/#40c040, NeverFocus, PositionPlacement 50-50w +1p, Layer 2 Style "emacs" NoPPosition Style "gxmessage" PositionPlacement 50-50w +20 Style "*lock" !Title, Sticky, WindowListSkip @@ -480,23 +481,20 @@ AddToFunc StartStandardSession + I TERM_KOI8 -e su - + I Wait TERM + I PaVuControl -+ I Wait "Volume Control" + I Exec exec "$HOME"/current/projects/audio-cdr-video/audio/pa-mic-off -+ I FireFox + I GotoDeskAndPage 1 0 1 + I TERM_KOI8 + I Wait TERM ++ I GotoDeskAndPage 1 1 0 ++ I TERM_UTF8 -iconic -name term-im-remote ++ I Wait term-im-remote ++ I TERM_KOI8 -geometry 60x25-5-5 -iconic -name term-im-local ++ I Wait term-im-local + I GotoDeskAndPage 2 0 1 + I TERM_KOI8 -geometry TERM_GEOM_BIG + I Wait TERM -+ I Gajim -+ I Wait Gajim -+ I TERM_UTF8 -iconic -name term-im-remote -+ I Wait URxvt -+ I TERM_KOI8 -geometry 60x25-5-5 -iconic -name term-im-local -+ I Wait URxvt -+ I GotoDeskAndPage 1 1 0 -+ I Schedule 1000 GotoDeskAndPage 0 1 0 ++ I FireFox ++ I Schedule 4500 GotoDeskAndPage 0 1 0 DestroyFunc ResumeFunction AddToFunc ResumeFunction @@ -510,7 +508,7 @@ AddToFunc ResumeFunction + I Any ("*Mozilla Firefox") GotoDeskAndPage 0 1 0 + I TestRc (Match) Break + I None ("*Mozilla Firefox") FireFox -+ I Schedule 4000 GotoDeskAndPage 0 1 0 ++ I Schedule 4500 GotoDeskAndPage 0 1 0 ############################################################################ # COMPLEX FUNCTIONS @@ -572,7 +570,7 @@ AddToFunc PrintFunction I Raise + I Exec exec xdpr -id $w DestroyFunc Raise-All -AddToFunc Raise-All I All (!"FvwmButtons|System|*clock") Raise +AddToFunc Raise-All I All Raise ############################################################################## # User-defined functions @@ -660,7 +658,9 @@ AddToMenu Window-Ops2 "Center" Center AddToMenu Terminals "Terminals" Title + "Grey term (koi8)" TERM_KOI8 + "Grey term (utf8)" TERM_UTF8 ++ "Grey term (koi8,btlt)" TERM_KOI8_BOTLT + "Grey term (koi8,btrt)" TERM_KOI8_BOTRT ++ "Grey term (utf8,btlt)" TERM_UTF8_BOTLT + "Grey term (utf8,btrt)" TERM_UTF8_BOTRT + "Big grey term (koi8)" TERM_KOI8 -geometry TERM_GEOM_BIG + "" Nop @@ -769,17 +769,22 @@ AddToMenu RootMenu "Root Menu" Title # This menu will fire up some often used programs DestroyMenu Utilities AddToMenu Utilities "Choose one:" Title ++ "qPDFview" Exec exec qpdfview + "FBReader" Exec exec fbreader ++ "" Nop + "GVim (koi8)" Exec LC_CTYPE=ru_RU.KOI8-R exec gvim + "GVim (utf8)" Exec LC_CTYPE=ru_RU.UTF-8 exec gvim ++ "" Nop + "MyRuLb (koi8)" Exec LC_CTYPE=ru_RU.KOI8-R exec "$HOME"/admin/prog/myrulib/myrulib + "MyRuLb (utf8)" Exec LC_CTYPE=ru_RU.UTF-8 exec "$HOME"/admin/prog/myrulib/myrulib ++ "" Nop #+ "XFortune" Exec /usr/games/fortune | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file - #+ "xbuffy" Exec exec xbuffy -fn 'XBUFFY_FONT' -geometry +0+125 -boxfile mail/misc/.xbuffyrc + "" Nop + "pavucontrol" PaVuControl + "DeadBeef" DeadBeef + "Id3Info" Id3Info ++ "" Nop + "Gajim" Gajim + "Pidgin" Pidgin + "" Nop @@ -789,7 +794,7 @@ AddToMenu Utilities "Choose one:" Title + "Refresh Screen" Refresh + "xrefresh" Exec exec xrefresh + "" Nop -+ "xcalc" Exec exec xcalc +#+ "xcalc" Exec exec xcalc + "xclipboard" Exec exec xclipboard + "xcutsel" Exec exec xcutsel #+ "xman" Exec exec xman -notopbox -geometry +150+102