X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.fvwm%2Fmain.m4;h=efe088fdf540b8170f1951c297bb20bf91cf6617;hb=4360b702164e1e49fb72a637f3007799d6ed05ac;hp=839333dd805e671c4546596eb58d86b34de849c6;hpb=f43172c5b3008165867b08b6815712b1c9c1f26a;p=dotfiles.git diff --git a/.fvwm/main.m4 b/.fvwm/main.m4 index 839333d..efe088f 100644 --- a/.fvwm/main.m4 +++ b/.fvwm/main.m4 @@ -32,6 +32,7 @@ define(`MEDIUM_FONT', `xft:Sans:size=14') define(`BIG_FONT', `xft:Sans:size=16') define(`LARGE_FONT', `xft:Sans:size=18') define(`HUGE_FONT', `xft:Sans:size=20') +define(`GIGANTIC_FONT', `xft:Sans:size=22') dnl Bold TT fonts define(`SMALL_BOLD_FONT', SMALL_FONT`:Bold') @@ -54,8 +55,8 @@ define(`BUTTONS_FONT', PAGER_FONT) define(`MENU_FONT', -ifelse(eval(WIDTH < 1024), 1, `xft:Sans:size=16', - eval(WIDTH < 1920), 1, `xft:Sans:size=18', `xft:Sans:size=22')) +ifelse(eval(WIDTH < 1024), 1, BIG_FONT, + eval(WIDTH < 1920), 1, LARGE_FONT, GIGANTIC_FONT)) define(`IDENT_FONT', MENU_FONT) define(`WIN_LIST_FONT', MENU_FONT) define(`ICON_BOX_FONT', MENU_FONT) @@ -91,17 +92,23 @@ define(`TERM_KOI8_BOTRT', `TERM_KOI8 -geometry TERM_GEOM_BOTRT') define(`TERM_UTF8_BOTRT', `TERM_UTF8 -geometry TERM_GEOM_BOTRT') +define(`REMOTE_HOST_TERM', +`$1 -e ssh -4 $2') + +define(`REMOTE_HOST_TERM_TITLE', +`$1 -title $3 -n $3 -e ssh -4 $2') + define(`REMOTE_HOST_KOI8', -`TERM_KOI8 -title "$2" -n "$2" -e ssh -4 "$1"') +REMOTE_HOST_TERM_TITLE(TERM_KOI8, $1, $2)) define(`REMOTE_HOST_KOI8_MENU', "$2 (koi8)" REMOTE_HOST_KOI8($1, $2)) define(`REMOTE_HOST_KOI8_BOTLT', -TERM_KOI8_BOTLT -title "$2" -n "$2" -e ssh -4 "$1") +REMOTE_HOST_TERM_TITLE(TERM_KOI8_BOTLT, $1, $2)) define(`REMOTE_HOST_KOI8_BOTRT', -`TERM_KOI8_BOTRT -title "$2" -n "$2" -e ssh -4 "$1"') +REMOTE_HOST_TERM_TITLE(TERM_KOI8_BOTRT, $1, $2)) define(`REMOTE_HOST_KOI8_BOTLT_MENU', "$2 (koi8,btlt)" REMOTE_HOST_KOI8_BOTLT($1, $2)) @@ -110,16 +117,16 @@ define(`REMOTE_HOST_KOI8_BOTRT_MENU', "$2 (koi8,btrt)" REMOTE_HOST_KOI8_BOTRT($1, $2)) define(`REMOTE_HOST_UTF8', -TERM_UTF8 -e ssh -4 "$1") +REMOTE_HOST_TERM(TERM_UTF8, $1)) define(`REMOTE_HOST_UTF8_MENU', "$2 (utf8)" REMOTE_HOST_UTF8($1, $2)) define(`REMOTE_HOST_UTF8_BOTLT', -TERM_UTF8_BOTLT -e ssh -4 "$1") +REMOTE_HOST_TERM(TERM_UTF8_BOTLT, $1)) define(`REMOTE_HOST_UTF8_BOTRT', -TERM_UTF8_BOTRT -e ssh -4 "$1") +REMOTE_HOST_TERM(TERM_UTF8_BOTRT, $1)) define(`REMOTE_HOST_UTF8_BOTLT_MENU', "$2 (utf8,btlt)" REMOTE_HOST_UTF8_BOTLT($1, $2)) @@ -132,6 +139,7 @@ TERM_KOI8 -geometry TERM_GEOM_BIG -title "$2" -n "$2" -e ssh -4 "$1") define(`REMOTE_HOST_KOI8_BIG_MENU', "$2 (koi8)" REMOTE_HOST_KOI8_BIG($1, $2)) + divert ########################################################################## @@ -139,7 +147,7 @@ divert # # Colon seperated unix directory paths for Modules, xpm files, and bitmaps #ModulePath /usr/lib/fvwm -ImagePath /usr/share/pixmaps/fvwm:/usr/share/pixmaps:/usr/include/X11/bitmaps #:/usr/local/firefox/chrome/icons/default:/usr/local/firefox/icons +ImagePath /usr/share/pixmaps/fvwm:/usr/share/pixmaps:/usr/include/X11/bitmaps #:/usr/local/firefox/browser/chrome/icons/default:/usr/local/firefox/browser/icons ############################################################################ # COLORS and FONTS @@ -606,7 +614,7 @@ AddToFunc FireFox I Any ("*Mozilla Firefox") Break + I Exec exec start-browser firefox + I Wait "*Mozilla Firefox" + I All ("*Mozilla Firefox") Lower -+ I Exec webbrowserX -n file:///home/phd/Internet/WWW/misc/index.html; exec webbrowserX -t file:///home/phd/Internet/WWW/misc/internet.html ++ I Exec webbrowserX -n file:///home/phd/Internet/WWW/dashboard/index.html + I Wait "*Mozilla Firefox" DestroyFunc Gajim