From cfbbe38285bb8905510628fb85dfcd01be72446f Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 12 May 2015 06:23:46 +0300 Subject: [PATCH] .fvwmrc: redefine TERM_* functions to use FvwmButtons "hangons" --- .fvwm/phd.m4 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.fvwm/phd.m4 b/.fvwm/phd.m4 index 69bf6da..22125a4 100644 --- a/.fvwm/phd.m4 +++ b/.fvwm/phd.m4 @@ -92,7 +92,7 @@ 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") +`TERM_KOI8 -title "$2" -n "$2" -e ssh -4 "$1"') define(`REMOTE_HOST_KOI8_MENU', "$2 (koi8)" REMOTE_HOST_KOI8($1, $2)) @@ -884,9 +884,12 @@ changequote([`], [']) #*FvwmButtons: (Swallow XClock 'Exec exec xclock -update 1 -geometry -3000-3000') # Buttons +pushdef(`TERM_KOI8', `Exec "TERM" LC_CTYPE=ru_RU.KOI8-R exec TERM') +pushdef(`TERM_UTF8', `Exec "URxvt" exec "$HOME"/lib/X11/utf8rxvt') *FvwmButtons: (Title Term, Icon rterm2.xpm, Action TERM_KOI8) *FvwmButtons: (Title UTF-8, Icon rterm2.xpm, Action TERM_UTF8) -*FvwmButtons: (Title phdru, Icon xterm-sgi.xpm, Action Term-Phdru) +*FvwmButtons: (Title phdru, Icon xterm-sgi.xpm, Action REMOTE_HOST_KOI8(phdru.name, phdru.name)) +popdef(`TERM_KOI8', `TERM_UTF8') *FvwmButtons: (Title Wallpaper, Icon find1.xpm, Action Exec "gxmessage" "$HOME"/current/projects/xsetbg/print-filename.py | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -) *FvwmButtons: (Title "-1", Icon find1.xpm, Action Exec "gxmessage" "$HOME"/current/projects/xsetbg/print-filename.py -o | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -) -- 2.39.5