# ---------------------------------------------------------------------------- # # # For an example configuration file, you probably want to look at mrxvtrc.sample # (provided with the source archive), and not this file. # # This is the system wide configuration file for mrxvt (versions 0.5.0 or # higher). Only resources with application name 'Mrxvt' are read from this file. # The only resources defined in this file are default macro (formerly hotkey) # definitions for mrxvt. # # Preferably avoid making modifications to this file directly, but make # modifications to your user config file (~/.mrxvtrc) instead. Remember that # macros can be deleted by assigning "Dummy" to the keystroke. # # Starting mrxvt with --noSysConfig will disable reading this file completely. # # ---------------------------------------------------------------------------- # # NOTE: Macros defined with class Mrxvt or XTerm will NOT replace existing # macros. So user macros will not be replaced. # ---------------------------------------------------------------------------- # # # XTERM STYLE MACROS # # ---------------------------------------------------------------------------- # # # These were previously hardcoded into the source in command.c. # Mrxvt.macro.Primary+Shift+Prior: Scroll -1p Mrxvt.macro.Primary+Shift+Next: Scroll +1p Mrxvt.macro.Shift+Insert: Paste Mrxvt.macro.Shift+KP_Add: ResizeFont +1 Mrxvt.macro.Shift+KP_Subtract: ResizeFont -1 # Shift F1 -- F10 used to produce F11 -- F20. (This was also hardcoded into the # source). If desired those can be added here using the Str macro. # ---------------------------------------------------------------------------- # # # GNOME TERMINAL STYLE DEFAULT MACROS # # ---------------------------------------------------------------------------- # Mrxvt.macro.Ctrl+Shift+t: NewTab Mrxvt.macro.Ctrl+Shift+w: Close 0 Mrxvt.macro.Add+Ctrl+Shift+w: ToggleHold -6 Mrxvt.macro.Ctrl+Shift+q: Close Mrxvt.macro.Ctrl+Prior: GotoTab -1 Mrxvt.macro.Ctrl+Next: GotoTab +1 Mrxvt.macro.Alt+1: GotoTab 1 Mrxvt.macro.Alt+2: GotoTab 2 Mrxvt.macro.Alt+3: GotoTab 3 Mrxvt.macro.Alt+4: GotoTab 4 Mrxvt.macro.Alt+5: GotoTab 5 Mrxvt.macro.Alt+6: GotoTab 6 Mrxvt.macro.Alt+7: GotoTab 7 Mrxvt.macro.Alt+8: GotoTab 8 Mrxvt.macro.Alt+9: GotoTab 9 Mrxvt.macro.Alt+0: GotoTab 10 Mrxvt.macro.Ctrl+equal: ResizeFont +1 Mrxvt.macro.Ctrl+minus: ResizeFont -1 # Instead of having some 1500 macros do the same thing, resize the font in # increments of 2 for Ctrl+Shift. Mrxvt.macro.Ctrl+Shift+plus: ResizeFont +2 Mrxvt.macro.Ctrl+Shift+underscore: ResizeFont -2 # ---------------------------------------------------------------------------- # # # KONSOLE STYLE MACROS # # ---------------------------------------------------------------------------- # Mrxvt.macro.Ctrl+Shift+Left: MoveTab -1 Mrxvt.macro.Ctrl+Shift+Right: MoveTab +1 # # Vim uses Shift+Left / Shift+right, so enable these only in the primary screen # Mrxvt.macro.Primary+Shift+Left: GotoTab -1 Mrxvt.macro.Primary+Shift+Right: GotoTab +1 # We already have a shortcut to open a new tab. Rather make this a shortcut that # duplicates the current profile. Mrxvt.macro.Ctrl+Shift+n: NewTab - # # By default we should only have Ctrl+Shift modifier keys defined. Other # modifier combinations are sometimes used by the window manager, or # applications (e.g. emacs). # # Mrxvt.macro.Ctrl+Alt+n: NewTab # Mrxvt.macro.Ctrl+Alt+s: SetTitle # ---------------------------------------------------------------------------- # # # VIM STYLE MACROS # # ---------------------------------------------------------------------------- # Mrxvt.macro.Ctrl+Shift+h: GotoTab -1 Mrxvt.macro.Ctrl+Shift+l: GotoTab +1 # ---------------------------------------------------------------------------- # # # SCREEN STYLE MACROS # # ---------------------------------------------------------------------------- # Mrxvt.macro.Ctrl+Shift+p: GotoTab 0 # ---------------------------------------------------------------------------- # # # MRXVT STYLE MACROS # # ---------------------------------------------------------------------------- # # Move tab to position Alt+Shift+<digit> # # 2006-02-26 gi1242: While Alt+Shift+<digit> would be more intuitive to move # tabs, some terminal applications (e.g. mutt) use it. Terminal apps however # don't use (or recognize Ctrl+Shift+<digit>, so we can safely use them here. # Mrxvt.macro.Ctrl+Shift+exclam: MoveTab 1 Mrxvt.macro.Ctrl+Shift+at: MoveTab 2 Mrxvt.macro.Ctrl+Shift+numbersign: MoveTab 3 Mrxvt.macro.Ctrl+Shift+dollar: MoveTab 4 Mrxvt.macro.Ctrl+Shift+percent: MoveTab 5 Mrxvt.macro.Ctrl+Shift+asciicircum: MoveTab 6 Mrxvt.macro.Ctrl+Shift+ampersand: MoveTab 7 Mrxvt.macro.Ctrl+Shift+asterisk: MoveTab 8 Mrxvt.macro.Ctrl+Shift+parenleft: MoveTab 9 Mrxvt.macro.Ctrl+Shift+parenright: MoveTab 10 # Previous active tab Mrxvt.macro.Ctrl+Tab: GotoTab 0 # Alternately we can use Ctrl+Tab to switch to the left / right tab # Mrxvt.macro.Ctrl+Shift+ISO_Left_Tab: GotoTab -1 # Mrxvt.macro.Ctrl+Tab: GotoTab +1 Mrxvt.macro.Ctrl+Shift+less: MoveTab -1 Mrxvt.macro.Ctrl+Shift+greater: MoveTab +1 # Disable by default. When any arg is passed to PrintScreen, the entire # scrollback buffer is also printed. # Mrxvt.macro.Ctrl+Shift+z: PrintScreen Full # Mrxvt.macro.Print: PrintScreen # Mrxvt.macro.Shift+Print: PrintScreen Full # More / less opaque Mrxvt.macro.Ctrl+Shift+u: Esc \e]70;+5\a Mrxvt.macro.Ctrl+Shift+o: Esc \e]70;-5\a # More / less transparent Mrxvt.macro.Ctrl+Shift+j: Esc \e]67;+5\a Mrxvt.macro.Ctrl+Shift+k: Esc \e]67;-5\a # Toggle transparency Mrxvt.macro.Ctrl+Shift+r: ToggleTransparency # Hide / show subwindows Mrxvt.macro.Ctrl+Shift+m: ToggleSubwin m Mrxvt.macro.Ctrl+Shift+i: ToggleSubwin t Mrxvt.macro.Ctrl+Shift+s: ToggleSubwin s Mrxvt.macro.Ctrl+Shift+a: ToggleSubwin b Mrxvt.macro.Ctrl+Shift+b: ToggleVeryBold # Mrxvt.macro.Ctrl+Shift+d: ToggleBroadcast Mrxvt.macro.Ctrl+Shift+f: ToggleFullscreen Mrxvt.macro.Ctrl+Shift+e: ToggleHold Mrxvt.macro.Ctrl+Shift+x: SaveConfig # Toggle macros Mrxvt.macro.Ctrl+Shift+F12: ToggleMacros # Scrolling Mrxvt.macro.Primary+Shift+Up: Scroll -1 Mrxvt.macro.Primary+Shift+Down: Scroll +1 Mrxvt.macro.Primary+Shift+Home: Scroll -1000000 Mrxvt.macro.Primary+Shift+End: Scroll +1000000 Mrxvt.macro.Ctrl+Shift+v: Paste Mrxvt.macro.Shift+Delete: SetTitle # # Mrxvt Console: Enable the useFifo option, and then open a console in a new # tab. Anything typed there is executed as a macro. When done (on clean exit), # disable the useFifo option. # Mrxvt.macro.Ctrl+Shift+c: UseFifo 1 Mrxvt.macro.Add+Ctrl+Shift+c: NewTab "mrxvt Console" \!cat >> /tmp/.mrxvt-%P && echo "UseFifo 0" >> /tmp/.mrxvt-%P Mrxvt.macro.Add+Ctrl+Shift+c: ToggleHold -7 # External programs. In keeping with the Unix "minimalist" philosophy, we don't # define these shortcuts by default. # # Remember commands start in the current directory of the active tab by # default. Also prefixing commands with '!' will start them in a shell (so when # you're done, the tab won't close, and you'll have a shell prompt). # # As of mrxvt-0.5.0, new tabs will be opened in the current directory. So the # shortcut for Vim below is extremely useful :). Mrxvt.macro.Ctrl+Shift+F1: NewTab "man mrxvt" man mrxvt # Mrxvt.macro.Ctrl+Shift+F2: NewTab !vim # Mrxvt.macro.Ctrl+Shift+F3: NewTab !mutt # These are the keyboard combinations compatible with mrxvt 0.4x, and # they may be useful for some applications like mc. Thanks to Dimitri # AT sun.com for the information: # Mrxvt.macro.Ctrl+Home: Str \e\133\067\136 # Mrxvt.macro.Ctrl+End: Str \e\133\070\136 # Mrxvt.macro.Shift+Home: Str \e\133\067\044 # Mrxvt.macro.Shift+End: Str \e\133\070\044 # Mrxvt.macro.Shift+F1: Str \e\133\062\063\176 # Mrxvt.macro.Shift+F2: Str \e\133\062\064\176 # Mrxvt.macro.Shift+F3: Str \e\133\062\065\176 # Mrxvt.macro.Shift+F4: Str \e\133\062\066\176 # Mrxvt.macro.Shift+F5: Str \e\133\062\070\176 # Mrxvt.macro.Shift+F6: Str \e\133\062\071\176 # Mrxvt.macro.Shift+F7: Str \e\133\063\061\176 # Mrxvt.macro.Shift+F8: Str \e\133\063\062\176 # Mrxvt.macro.Shift+F9: Str \e\133\063\063\176 # Mrxvt.macro.Shift+F10: Str \e\133\063\064\176 # Mrxvt.macro.Alt+Return: Str \e\012 # vim: set ts=8 sts=4: