Urxvt tip
| Languages: |
English • 中文(简体) |
Contents |
Preparations
You can edit ~/.Xdefaults or ~/.Xresources or other places to configure urxvt. If you never did this read the basic Urxvt page. Confirm that the following configuration items are defined:
URxvt.urgentOnBell: True
After adding the above configuration items, update the running database with either:
xrdb ~/.Xdefaults or xrdb ~/.Xresources
You can confirm it with
listres
If you do not want to hear the beep sound, you can run:
/usr/bin/xset b off
Consider adding it to your .xsession or .xinitrc to run on login
The new e-mail reminder Mutt
You can ~ /. Muttrc or ~ / .mutt / muttrc configure mutt, to confirm beep_new be defined; check_new and the default timeout has been defined, confirming that they are not undefined.
set beep_new = yes set check_new = yes set timeout = 600
In a tag label (assumed to be tag4) where open urxvt and runmutt, switch to the other tag label to do something you're interested. Before you leave tag4 more than 10 minutes later, when there are new messages, labels tag4 will be highlighted.
Weechat private / highlight message reminding
In the Weechat official website Download beep plug-in, save it to ~ / .weechat / perl / directory.
cd ~ / .weechat / perl wget http://www.weechat.org/files/scripts/beep.pl cd autoload ln-sf .. / beep.pl.
In a tag label (assumed to be tag2) where open urxvt and runweechat-curses, switch to the other tag label to do something you're interested. When you are in the irc channel when you receive private or highlight the message, the label tag2 will be highlighted.
Shell Job completed to remind
Bash, zsh, and tcsh support displaying the PS1 prompt before commands. Test with:
echo -ne '\a'
- Bash through the environment variable 'PROMPT_COMMAND'
export PROMPT_COMMAND = "echo -ne '\a'"
- Zsh through a function 'precmd ()'
precmd () (
# Your commands
# ...
echo -ne '\a'
)
- Tcsh through a special alias
precmd:
alias precmd 'echo -n \\a'
In a tag label (assumed to be tag1) inside urxvt and to open a more time-consuming to run a command (for example, a configure or make), to switch to the other tag label to do something you're interested. When you are finished running that last command, the label tag1 will be highlighted.
End
The default shortcut keys Mod u can jump to the current focus on highlighting the incident happened the last time the window.