… | |
… | |
657 | required for your particular machine. |
657 | required for your particular machine. |
658 | |
658 | |
659 | |
659 | |
660 | |
660 | |
661 | =head2 Terminal Configuration |
661 | =head2 Terminal Configuration |
|
|
662 | |
|
|
663 | =head3 Can I see a typical configuration? |
|
|
664 | |
|
|
665 | The default configuration tries to be xterm-like, which I don't like that |
|
|
666 | much, but it's least surprise to regular users. |
|
|
667 | |
|
|
668 | As a rxvt or rxvt-unicode user, you are practically supposed to invest |
|
|
669 | time into customising your terminal. To get you started, here is the |
|
|
670 | author's .Xdefaults entries, with comments on what they do: |
|
|
671 | |
|
|
672 | URxvt.cutchars: "()*,<>[]{}|' |
|
|
673 | URxvt.print-pipe: cat >/tmp/xxx |
|
|
674 | |
|
|
675 | These are just for testing stuff. |
|
|
676 | |
|
|
677 | URxvt.imLocale: ja_JP.UTF-8 |
|
|
678 | URxvt.preeditType: OnTheSpot,None |
|
|
679 | |
|
|
680 | This tells rxvt-unicode to use a special locale when communicating with |
|
|
681 | the X Input Method, and also tells it to only use the OnTheSpot pre-edit |
|
|
682 | type, which requires the C<xim-onthespot> perl extension but rewards me |
|
|
683 | with correct-looking fonts. |
|
|
684 | |
|
|
685 | URxvt.perl-lib: /root/lib/urxvt |
|
|
686 | URxvt.perl-ext-common: default,selection-autotransform,selection-pastebin,xim-onthespot,remote-clipboard |
|
|
687 | URxvt.selection.pattern-0: ( at .*? line \\d+) |
|
|
688 | URxvt.selection.pattern-1: ^(/[^:]+):\ |
|
|
689 | URxvt.selection-autotransform.0: s/^([^:[:space:]]+):(\\d+):?$/:e \\Q$1\\E\\x0d:$2\\x0d/ |
|
|
690 | URxvt.selection-autotransform.1: s/^ at (.*?) line (\\d+)$/:e \\Q$1\\E\\x0d:$2\\x0d/ |
|
|
691 | |
|
|
692 | This is my perl configuration. The first two set the perl library |
|
|
693 | directory and also tells urxvt to use a large number of extensions. I |
|
|
694 | develop for myself mostly, so I actually use most of the extensions I |
|
|
695 | write. |
|
|
696 | |
|
|
697 | The selection stuff mainly makes the selection perl-error-message aware |
|
|
698 | and tells it to convert pelr error mssages into vi-commands to load the |
|
|
699 | relevant file and go tot he error line number. |
|
|
700 | |
|
|
701 | URxvt.scrollstyle: plain |
|
|
702 | URxvt.secondaryScroll: true |
|
|
703 | |
|
|
704 | As the documentation says: plain is the preferred scrollbar for the |
|
|
705 | author. The C<secondaryScroll> confgiures urxvt to scroll in full-screen |
|
|
706 | apps, like screen, so lines scorlled out of screen end up in urxvt's |
|
|
707 | scrollback buffer. |
|
|
708 | |
|
|
709 | URxvt.background: #000000 |
|
|
710 | URxvt.foreground: gray90 |
|
|
711 | URxvt.color7: gray90 |
|
|
712 | URxvt.colorBD: #ffffff |
|
|
713 | URxvt.cursorColor: #e0e080 |
|
|
714 | URxvt.throughColor: #8080f0 |
|
|
715 | URxvt.highlightColor: #f0f0f0 |
|
|
716 | |
|
|
717 | Some colours. Not sure which ones are being used or even non-defaults, but |
|
|
718 | these are in my .Xdefaults. Most notably, they set foreground/background |
|
|
719 | to light gray/black, and also make sure that the colour 7 matches the |
|
|
720 | default foreground colour. |
|
|
721 | |
|
|
722 | URxvt.underlineColor: yellow |
|
|
723 | |
|
|
724 | Another colour, makes underline lines look different. Sometimes hurts, but |
|
|
725 | is mostly a nice effect. |
|
|
726 | |
|
|
727 | URxvt.geometry: 154x36 |
|
|
728 | URxvt.loginShell: false |
|
|
729 | URxvt.meta: ignore |
|
|
730 | URxvt.utmpInhibit: true |
|
|
731 | |
|
|
732 | Uh, well, should be mostly self-explanatory. By specifying some defaults |
|
|
733 | manually, I can quickly switch them for testing. |
|
|
734 | |
|
|
735 | URxvt.saveLines: 8192 |
|
|
736 | |
|
|
737 | A large scrollback buffer is essential. Really. |
|
|
738 | |
|
|
739 | URxvt.mapAlert: true |
|
|
740 | |
|
|
741 | The only case I use it is for my IRC window, which I like to keep |
|
|
742 | iconified till people msg me (which beeps). |
|
|
743 | |
|
|
744 | URxvt.visualBell: true |
|
|
745 | |
|
|
746 | The audible bell is often annoying, especially when in a crowd. |
|
|
747 | |
|
|
748 | URxvt.insecure: true |
|
|
749 | |
|
|
750 | Please don't hack my mutt! Ooops... |
|
|
751 | |
|
|
752 | URxvt.pastableTabs: false |
|
|
753 | |
|
|
754 | I once thought this is a great idea. |
|
|
755 | |
|
|
756 | urxvt.font: 9x15bold,\ |
|
|
757 | -misc-fixed-bold-r-normal--15-140-75-75-c-90-iso10646-1,\ |
|
|
758 | -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso10646-1, \ |
|
|
759 | [codeset=JISX0208]xft:Kochi Gothic, \ |
|
|
760 | xft:Bitstream Vera Sans Mono:autohint=true, \ |
|
|
761 | xft:Code2000:antialias=false |
|
|
762 | urxvt.boldFont: -xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso8859-15 |
|
|
763 | urxvt.italicFont: xft:Bitstream Vera Sans Mono:italic:autohint=true |
|
|
764 | urxvt.boldItalicFont: xft:Bitstream Vera Sans Mono:bold:italic:autohint=true |
|
|
765 | |
|
|
766 | I wrote rxvt-unicode to be able to specify fonts exactly. So don't be |
|
|
767 | overwhelmed. A special note: the C<9x15bold> mentioend above is actually |
|
|
768 | the version from XFree-3.3, as XFree-4 replaced it by a totally different |
|
|
769 | font (different glyphs for C<;> and many other harmless characters), |
|
|
770 | while the second font is actually the C<9x15bold> from XFree4/XOrg. The |
|
|
771 | bold version has less chars than the medium version, so I use it for rare |
|
|
772 | characters, too. Whene ditign sources with vim, I use italic for comments |
|
|
773 | and other stuff, which looks quite good with Bitstream Vera anti-aliased. |
|
|
774 | |
|
|
775 | Terminus is a quite bad font (many very wrong glyphs), but for most of my |
|
|
776 | purposes, it works, and gives a different look, as my normal (Non-bold) |
|
|
777 | font is already bold, and I want to see a difference between bold and |
|
|
778 | normal fonts. |
|
|
779 | |
|
|
780 | Please note that I used the C<urxvt> instance name and not the C<URxvt> |
|
|
781 | class name. Thats because I use different configs for different purposes, |
|
|
782 | for example, my IRC window is started with C<-name IRC>, and uses these |
|
|
783 | defaults: |
|
|
784 | |
|
|
785 | IRC*title: IRC |
|
|
786 | IRC*geometry: 87x12+535+542 |
|
|
787 | IRC*saveLines: 0 |
|
|
788 | IRC*mapAlert: true |
|
|
789 | IRC*font: suxuseuro |
|
|
790 | IRC*boldFont: suxuseuro |
|
|
791 | IRC*colorBD: white |
|
|
792 | IRC*keysym.M-C-1: command:\033]710;suxuseuro\007\033]711;suxuseuro\007 |
|
|
793 | IRC*keysym.M-C-2: command:\033]710;9x15bold\007\033]711;9x15bold\007 |
|
|
794 | |
|
|
795 | C<Alt-Shift-1> and C<Alt-Shift-2> switch between two different font |
|
|
796 | sizes. C<suxuseuro> allows me to keep an eye (and actually read) |
|
|
797 | stuff while keeping a very small window. If somebody pastes something |
|
|
798 | complicated (e.g. japanese), I temporarily switch to a larger font. |
|
|
799 | |
|
|
800 | The above is all in my C<.Xdefaults> (I don't use C<.Xresources> nor |
|
|
801 | C<xrdb>). I also have some resources in a separate C<.Xdefaults-hostname> |
|
|
802 | file for different hosts, for example, on ym main desktop, I use: |
|
|
803 | |
|
|
804 | URxvt.keysym.C-M-q: command:\033[3;5;5t |
|
|
805 | URxvt.keysym.C-M-y: command:\033[3;5;606t |
|
|
806 | URxvt.keysym.C-M-e: command:\033[3;1605;5t |
|
|
807 | URxvt.keysym.C-M-c: command:\033[3;1605;606t |
|
|
808 | URxvt.keysym.C-M-p: perl:test |
|
|
809 | |
|
|
810 | The first for keysym definitions allow me to quickly bring some windows |
|
|
811 | in the layout I like most. Ion users might start laughing but will stop |
|
|
812 | immediately when I tell them that I use my own Fvwm2 module for much the |
|
|
813 | same effect as Ion provides, and I only very rarely use the above key |
|
|
814 | combinations :-> |
662 | |
815 | |
663 | =head3 Why doesn't rxvt-unicode read my resources? |
816 | =head3 Why doesn't rxvt-unicode read my resources? |
664 | |
817 | |
665 | Well, why, indeed? It does, in a way very similar to other X |
818 | Well, why, indeed? It does, in a way very similar to other X |
666 | applications. Most importantly, this means that if you or your OS loads |
819 | applications. Most importantly, this means that if you or your OS loads |