-
-
Notifications
You must be signed in to change notification settings - Fork 321
Alias examples
lacygoill edited this page Aug 28, 2023
·
23 revisions
/alias add /detach /away -all away; /exec -bg tmux detach
/alias add /ff /repeat -interval 500 $1 /window scroll +1
With WeeChat < 3.4:
/alias add /on /set $1 on
/alias add /off /set $1 off
/alias add /toggle /set $1 toggle
With WeeChat ≥ 3.4: use /toggle
command.
/alias add append /eval /set $1 ${$1}$2-
With WeeChat < 3.5:
/alias add addautojoin /eval /set irc.server.$server.autojoin ${irc.server.$server.autojoin},$channel
With WeeChat ≥ 3.5: use /autojoin
command.
/alias add MJOIN /eval /join ${irc.server.${server}.autojoin}
/alias add /runpendingscript /exec -norc wget -P /tmp/ 'http://weechat.org/files/scripts/pending/$1' ; /wait 1 /script load /tmp/$1
/alias add weather /exec -noflush curl -s http://wttr\.in/$1?lang=de
/alias add calc /exec -norc awk -vstring="$* = " "BEGIN{ print string, $* }"
/alias add calc /exec -sh -o echo '$*' | bc
/alias add shorten /exec -o -norc curl -s http://tinyurl.com/api-create.php?url=$1
/alias add filternick /filter add $1 * nick_$1,irc_nick2_$1 *
/alias add nf /mute filter add $1 * nick_$1,irc_nick2_$1 * ; /mute /filter add $1_2 * * $1 ;/wait 2h /mute filter del $1 ;/wait 2h /mute filter del $1_2
/alias add /LOCALVAR_SET /buffer set localvar_set_$1 $2
/alias add /LOCALVAR_DEL /buffer set localvar_del_$1
/alias add collapse /allchan -current /buffer hide; /allpv -current /buffer hide
/alias add uncollapse /allchan -current /buffer unhide; /allpv -current /buffer unhide
Focuses other window instead of the current line like /window merge
.
/alias add window_close /window swap; /window merge
/alias add unread /eval /eval -s /buffer weechat\;/command -buffer ${window.buffer.full_name} * /buffer set hotlist 3
/alias add log /eval /exec -bg tmux new-window sh -c "less +G $(echo ~/.weechat/logs/${buffer.full_name}.weechatlog | tr '[:upper:]' '[:lower:]')"
/alias add statusclose /allpv -include=*status /buffer close