]> git.phdru.name Git - dotfiles.git/commitdiff
.fvwmrc: Improve terminal/ssh menus
authorOleg Broytman <phd@phdru.name>
Sun, 27 Feb 2022 01:43:41 +0000 (04:43 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 27 Feb 2022 01:43:41 +0000 (04:43 +0300)
Use `-xrm "*Page:"` to start terminals
at the designated virtual screens.

.fvwm/main.m4

index 107b1ad2a39d59dff055e4d3f28b3cc296f47441..8cb59d24e3092dd52eb7edc218024e011d397a45 100644 (file)
@@ -747,6 +747,8 @@ AddToMenu TermColors    "Term Colors" Title
 AddToMenu Systems       "Systems" Title
 +                       "Iskra+Oper+Phdru" Term3Hosts
 +                       ""        Nop
+pushdef(`TERM_KOI8', `Exec LC_CTYPE=ru_RU.KOI8-R exec TERM -xrm "*Page: 1 1 1"')dnl
+pushdef(`TERM_RU_UTF8', `Exec LC_CTYPE=ru_RU.UTF-8 exec TERM -name URxvt -xrm "*Page: 1 1 1"')dnl
 +                       MENU_TERM_KOI8_SSH_SCREEN(iskra-aviel.phdru.name, iskra)
 +                       MENU_TERM_UTF8_BOTLT_SSH(iskra-aviel.phdru.name, iskra)
 +                       MENU_TERM_KOI8_BIG_SSH(iskra-aviel.phdru.name, ISKRA)
@@ -754,11 +756,15 @@ AddToMenu Systems       "Systems" Title
 +                       MENU_TERM_KOI8_BOTRT_SSH_SCREEN(oper.med.ru, oper)
 +                       MENU_TERM_UTF8_BOTRT_SSH(oper.med.ru, oper)
 +                       MENU_TERM_KOI8_BIG_SSH(oper.med.ru, OPER)
+popdef(`TERM_KOI8', `TERM_RU_UTF8')dnl
 +                       ""        Nop
+pushdef(`TERM_KOI8', `Exec LC_CTYPE=ru_RU.KOI8-R exec TERM -xrm "*Page: 1 0 1"')dnl
+pushdef(`TERM_RU_UTF8', `Exec LC_CTYPE=ru_RU.UTF-8 exec TERM -name URxvt -xrm "*Page: 1 0 1"')dnl
 +                       MENU_TERM_KOI8_SSH_SCREEN(phdru.name, phdru)
 +                       MENU_TERM_KOI8_SSH_SCREEN(-D 1080 phdru.name, phdru SOCKS5)
 +                       MENU_TERM_UTF8_BOTLT_SSH(phdru.name, phdru)
 +                       MENU_TERM_KOI8_BIG_SSH(phdru.name, PHDRU)
+popdef(`TERM_KOI8', `TERM_RU_UTF8')dnl
 
 AddToMenu FvwmCommands  "Fvwm Commands" Title
 +                       "Restart" Restart