From: Oleg Broytman Date: Sun, 8 Mar 2015 16:28:18 +0000 (+0300) Subject: .fvwmrc: define variables by running `ifelse' in-place X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=6ed70b3b6063459249c81f2d8a2ee99ce6e59ff0;p=dotfiles.git .fvwmrc: define variables by running `ifelse' in-place --- diff --git a/.fvwm/phd.m4 b/.fvwm/phd.m4 index 29ac66e..4b76f82 100644 --- a/.fvwm/phd.m4 +++ b/.fvwm/phd.m4 @@ -51,21 +51,21 @@ define(`ICON_FONT', `LARGE_FONT') 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 +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 < 1920), 1, `SMALL_FONT', `BIG_FONT'dnl +)) 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',dnl +ifelse(eval(WIDTH < 1920), 1, `xft:Helvetica:size=18', `xft:Helvetica:size=22'dnl +))dnl ) define(`IDENT_FONT', MENU_FONT) define(`WIN_LIST_FONT', MENU_FONT) @@ -74,9 +74,9 @@ 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,dnl +ifelse(eval(WIDTH < 1920), 1, 75, `80'dnl +))dnl ) define(`MESSAGE_FONT', `Nimbus Sans L 18')dnl @@ -84,18 +84,18 @@ define(`MESSAGE_FONT', `Nimbus Sans L 18')dnl 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',dnl +ifelse(eval(WIDTH < 1920), 1, `80x30', `80x32'dnl +))dnl ) define(`TERM_GEOM_BOTLT', `TERM_GEOM+0-0')dnl define(`TERM_GEOM_BOTRT', `TERM_GEOM-0-0')dnl 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',dnl +ifelse(eval(WIDTH < 1920), 1, `112x32', `126x35'dnl +))dnl )