From b163aac6037d19ed8a2b5d5b0d3aded6483dcbc1 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 8 Mar 2015 21:16:16 +0300 Subject: [PATCH] .fvwmrc: remove dnl, join lines --- .fvwm/phd.m4 | 84 ++++++++++++++++++---------------------------------- 1 file changed, 29 insertions(+), 55 deletions(-) diff --git a/.fvwm/phd.m4 b/.fvwm/phd.m4 index 92bb46d..898bc04 100644 --- a/.fvwm/phd.m4 +++ b/.fvwm/phd.m4 @@ -44,22 +44,16 @@ dnl Font and geometry aliases that depend on whether the screen resolution is dnl 800x600, 1024x768 or 1920x1200 define(`PAGER_GEOM', -ifelse(eval(WIDTH < 1024), 1, `365x100+0+0',dnl -ifelse(eval(WIDTH < 1920), 1, `365x100+0+0', `600x160+0+0'dnl -))dnl -) - -define(`PAGER_FONT', -ifelse(eval(WIDTH < 1920), 1, `SMALL_FONT', `BIG_FONT'dnl -)) +ifelse(eval(WIDTH < 1024), 1, `365x100+0+0', + eval(WIDTH < 1920), 1, `365x100+0+0', `600x160+0+0')) + +define(`PAGER_FONT', ifelse(eval(WIDTH < 1920), 1, SMALL_FONT, BIG_FONT)) define(`BUTTONS_FONT', PAGER_FONT) define(`MENU_FONT', -ifelse(eval(WIDTH < 1024), 1, `xft:Helvetica:size=16',dnl -ifelse(eval(WIDTH < 1920), 1, `xft:Helvetica:size=18', `xft:Helvetica:size=22'dnl -))dnl -) +ifelse(eval(WIDTH < 1024), 1, `xft:Helvetica:size=16', + eval(WIDTH < 1920), 1, `xft:Helvetica:size=18', `xft:Helvetica:size=22')) define(`IDENT_FONT', MENU_FONT) define(`WIN_LIST_FONT', MENU_FONT) define(`ICON_BOX_FONT', MENU_FONT) @@ -67,29 +61,23 @@ define(`ICON_BOX_FONT', MENU_FONT) dnl XSetBg message width and font define(`TEXT_WIDTH', -ifelse(eval(WIDTH < 1024), 1, 70,dnl -ifelse(eval(WIDTH < 1920), 1, 75, `80'dnl -))dnl -) +ifelse(eval(WIDTH < 1024), 1, 70, + eval(WIDTH < 1920), 1, 75, 80)) -define(`MESSAGE_FONT', `Nimbus Sans L 18')dnl +define(`MESSAGE_FONT', `Nimbus Sans L 18') dnl Terminal emulator define(`TERM_GEOM', -ifelse(eval(WIDTH < 1024), 1, `80x25',dnl -ifelse(eval(WIDTH < 1920), 1, `80x30', `80x32'dnl -))dnl -) +ifelse(eval(WIDTH < 1024), 1, `80x25', + eval(WIDTH < 1920), 1, `80x30', `80x32')) -define(`TERM_GEOM_BOTLT', `TERM_GEOM+0-0')dnl -define(`TERM_GEOM_BOTRT', `TERM_GEOM-0-0')dnl +define(`TERM_GEOM_BOTLT', TERM_GEOM`+0-0') +define(`TERM_GEOM_BOTRT', TERM_GEOM`-0-0') define(`TERM_GEOM_BIG', -ifelse(eval(WIDTH < 1024), 1, `96x30',dnl -ifelse(eval(WIDTH < 1920), 1, `112x32', `126x35'dnl -))dnl -) +ifelse(eval(WIDTH < 1024), 1, `96x30', + eval(WIDTH < 1920), 1, `112x32', `126x35')) define(`TERM', `urxvt') @@ -102,60 +90,46 @@ define(`TERM_UTF8_BOTRT', `Exec exec "$HOME"/lib/X11/utf8rxvt -geometry TERM_GEO define(`REMOTE_HOST_KOI8', -TERM_KOI8 -title "$2" -n "$2" -e ssh -4 "$1"dnl -) +TERM_KOI8 -title "$2" -n "$2" -e ssh -4 "$1") define(`REMOTE_HOST_KOI8_MENU', -"$2 (koi8)" REMOTE_HOST_KOI8($1, $2)dnl -) +"$2 (koi8)" REMOTE_HOST_KOI8($1, $2)) define(`REMOTE_HOST_KOI8_BOTLT', -TERM_KOI8_BOTLT -title "$2" -n "$2" -e ssh -4 "$1"dnl -) +TERM_KOI8_BOTLT -title "$2" -n "$2" -e ssh -4 "$1") define(`REMOTE_HOST_KOI8_BOTRT', -TERM_KOI8_BOTRT -title "$2" -n "$2" -e ssh -4 "$1"dnl -) +TERM_KOI8_BOTRT -title "$2" -n "$2" -e ssh -4 "$1") define(`REMOTE_HOST_KOI8_BOTLT_MENU', -"$2 (koi8,btlt)" REMOTE_HOST_KOI8_BOTLT($1, $2)dnl -) +"$2 (koi8,btlt)" REMOTE_HOST_KOI8_BOTLT($1, $2)) define(`REMOTE_HOST_KOI8_BOTRT_MENU', -"$2 (koi8,btrt)" REMOTE_HOST_KOI8_BOTRT($1, $2)dnl -) +"$2 (koi8,btrt)" REMOTE_HOST_KOI8_BOTRT($1, $2)) define(`REMOTE_HOST_UTF8', -TERM_UTF8 -e ssh -4 "$1"dnl -) +TERM_UTF8 -e ssh -4 "$1") define(`REMOTE_HOST_UTF8_MENU', -"$2 (utf8)" REMOTE_HOST_UTF8($1, $2)dnl -) +"$2 (utf8)" REMOTE_HOST_UTF8($1, $2)) define(`REMOTE_HOST_UTF8_BOTLT', -TERM_UTF8_BOTLT -e ssh -4 "$1"dnl -) +TERM_UTF8_BOTLT -e ssh -4 "$1") define(`REMOTE_HOST_UTF8_BOTRT', -TERM_UTF8_BOTRT -e ssh -4 "$1"dnl -) +TERM_UTF8_BOTRT -e ssh -4 "$1") define(`REMOTE_HOST_UTF8_BOTLT_MENU', -"$2 (utf8,btlt)" REMOTE_HOST_UTF8_BOTLT($1, $2)dnl -) +"$2 (utf8,btlt)" REMOTE_HOST_UTF8_BOTLT($1, $2)) define(`REMOTE_HOST_UTF8_BOTRT_MENU', -"$2 (utf8,btrt)" REMOTE_HOST_UTF8_BOTRT($1, $2)dnl -) +"$2 (utf8,btrt)" REMOTE_HOST_UTF8_BOTRT($1, $2)) define(`REMOTE_HOST_KOI8_BIG', -TERM_KOI8 -geometry TERM_GEOM_BIG -title "$2" -n "$2" -e ssh -4 "$1"dnl -) +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)dnl -) +"$2 (koi8)" REMOTE_HOST_KOI8_BIG($1, $2)) divert -- 2.39.5