📄 mrxvtrc
字号:
# ---------------------------------------------------------------------------- ### 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.## ---------------------------------------------------------------------------- ## ---------------------------------------------------------------------------- ### GENERAL SETTINGS## ---------------------------------------------------------------------------- #Mrxvt.showMenu: true# Tab bar colorsMrxvt.itabBackground: #101010Mrxvt.tabBackground: #900000Mrxvt.itabForeground: #909090Mrxvt.tabForeground: #9a9a9a# Scroll bar colorsMrxvt.scrollColor: #808080Mrxvt.troughColor: #202020# CursorMrxvt.cursorBlink: trueMrxvt.cursorColor: #00ff00Mrxvt.cursorColor2: #000000# Setup colors for a black background.Mrxvt.background: #000000Mrxvt.foreground: #ffffffMrxvt.color0: #000000Mrxvt.color1: #af0000Mrxvt.color2: #00af00Mrxvt.color3: #afaf00Mrxvt.color4: #0000afMrxvt.color5: #af00afMrxvt.color6: #00afafMrxvt.color7: #9a9a9aMrxvt.color8: #5f5f5fMrxvt.color9: #d70000Mrxvt.color10: #00d700Mrxvt.color11: #d7d700Mrxvt.color12: #0000d7Mrxvt.color13: #d700d7Mrxvt.color14: #00d7d7Mrxvt.color15: #d7d7d7# Display bold and underlined text in color, rather than using the terminal# attributes. This makes reading man pages a little easier.Mrxvt.colorBD: #00afafMrxvt.colorUL: #00af00# Display the X selection as highlighted instead of using reverse video.Mrxvt.highlightColor: #303060Mrxvt.bottomTabbar: TrueMrxvt.scrollbarRight: True# Default shading to use when run with -trMrxvt.shading: 80# 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 -1pMrxvt.macro.Primary+Shift+Next: Scroll +1pMrxvt.macro.Shift+Insert: PasteMrxvt.macro.Shift+KP_Add: ResizeFont +1Mrxvt.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: NewTabMrxvt.macro.Ctrl+Shift+w: Close 0Mrxvt.macro.Add+Ctrl+Shift+w: ToggleHold -6Mrxvt.macro.Ctrl+Shift+q: CloseMrxvt.macro.Ctrl+Prior: GotoTab -1Mrxvt.macro.Ctrl+Next: GotoTab +1Mrxvt.macro.Alt+1: GotoTab 1Mrxvt.macro.Alt+2: GotoTab 2Mrxvt.macro.Alt+3: GotoTab 3Mrxvt.macro.Alt+4: GotoTab 4Mrxvt.macro.Alt+5: GotoTab 5Mrxvt.macro.Alt+6: GotoTab 6Mrxvt.macro.Alt+7: GotoTab 7Mrxvt.macro.Alt+8: GotoTab 8Mrxvt.macro.Alt+9: GotoTab 9Mrxvt.macro.Alt+0: GotoTab 10Mrxvt.macro.Ctrl+equal: ResizeFont +1Mrxvt.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 +2Mrxvt.macro.Ctrl+Shift+underscore: ResizeFont -2# ---------------------------------------------------------------------------- ### KONSOLE STYLE MACROS## ---------------------------------------------------------------------------- #Mrxvt.macro.Ctrl+Shift+Left: MoveTab -1Mrxvt.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 -1Mrxvt.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 -1Mrxvt.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 1Mrxvt.macro.Ctrl+Shift+at: MoveTab 2Mrxvt.macro.Ctrl+Shift+numbersign: MoveTab 3Mrxvt.macro.Ctrl+Shift+dollar: MoveTab 4Mrxvt.macro.Ctrl+Shift+percent: MoveTab 5Mrxvt.macro.Ctrl+Shift+asciicircum: MoveTab 6Mrxvt.macro.Ctrl+Shift+ampersand: MoveTab 7Mrxvt.macro.Ctrl+Shift+asterisk: MoveTab 8Mrxvt.macro.Ctrl+Shift+parenleft: MoveTab 9Mrxvt.macro.Ctrl+Shift+parenright: MoveTab 10# Previous active tabMrxvt.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 +1Mrxvt.macro.Ctrl+Shift+less: MoveTab -1Mrxvt.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 opaqueMrxvt.macro.Ctrl+Shift+u: Esc \e]70;+5\aMrxvt.macro.Ctrl+Shift+o: Esc \e]70;-5\a# More / less transparentMrxvt.macro.Ctrl+Shift+j: Esc \e]67;+5\aMrxvt.macro.Ctrl+Shift+k: Esc \e]67;-5\a# Toggle transparencyMrxvt.macro.Ctrl+Shift+r: ToggleTransparency# Hide / show subwindowsMrxvt.macro.Ctrl+Shift+m: ToggleSubwin mMrxvt.macro.Ctrl+Shift+i: ToggleSubwin tMrxvt.macro.Ctrl+Shift+s: ToggleSubwin sMrxvt.macro.Ctrl+Shift+a: ToggleSubwin bMrxvt.macro.Ctrl+Shift+b: ToggleVeryBold# Mrxvt.macro.Ctrl+Shift+d: ToggleBroadcastMrxvt.macro.Ctrl+Shift+f: ToggleFullscreenMrxvt.macro.Ctrl+Shift+e: ToggleHoldMrxvt.macro.Ctrl+Shift+x: SaveConfig# Toggle macrosMrxvt.macro.Ctrl+Shift+F12: ToggleMacros# ScrollingMrxvt.macro.Primary+Shift+Up: Scroll -1Mrxvt.macro.Primary+Shift+Down: Scroll +1Mrxvt.macro.Primary+Shift+Home: Scroll -1000000Mrxvt.macro.Primary+Shift+End: Scroll +1000000# PastingMrxvt.macro.Ctrl+Shift+v: Paste# Paste contents of a file to active tab (e.g. a collection of shell settings# like aliases, environment variables, ...). The file name can also be got from# the selection if you use %s.#Mrxvt.macro.Ctrl+Shift+w: PasteFile ~/my-favourite-bash-settings#Mrxvt.macro.Ctrl+Shift+w: PasteFile %s# A selection buffer can be added as an argument (PRIMARY,SECONDARY, CLIPBOARD)Mrxvt.macro.Ctrl+Shift+c: Paste CLIPBOARDMrxvt.macro.Shift+Delete: SetTitle# Monitor tabs for activity or inactivity# (valid arguments for MonitorTab macro : "INACTIVITY", "ACTIVITY" and "AUTO")Mrxvt.macro.Ctrl+Shift+g: MonitorTab AUTO#Mrxvt.monitorTimeout: 2000#Mrxvt.monitorCommand: play ~/.ding_sound.wav#Mrxvt.monitorCommand: aosd_cat --fontdesc="Trebuchet 20" --ypos=50 --delay=4000 Alert on tab %n :: %t#Mrxvt.monitorCommand: xmessage Alert on tab %n ## 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+z: UseFifo 1Mrxvt.macro.Add+Ctrl+Shift+z: NewTab "mrxvt Console" \!cat >> /tmp/.mrxvt-%P && echo "UseFifo 0" >> /tmp/.mrxvt-%PMrxvt.macro.Add+Ctrl+Shift+z: 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:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -