Skip to content

Instantly share code, notes, and snippets.

@hello-party
Last active June 25, 2019 16:47
Show Gist options
  • Save hello-party/5f737f9173ce9d23c913120dfe7dce2b to your computer and use it in GitHub Desktop.
Save hello-party/5f737f9173ce9d23c913120dfe7dce2b to your computer and use it in GitHub Desktop.

ALIASES

use /alias add /aliasname

Rename Buffers

/script install buffer_autoset.py
/buffer_autoset add irc.$server.$channel short_name $1

Detach and Close (ZNC)

/detach $channel; /wait 1 /buffer close

AUTOSORT

For me, I want my channels to be sorted alphabetically, but I also have a bunch of channels that are more important than others, and some that are less important (e.g. games.) Same goes for servers.

To maintain the alphabetical order, while forcing custom positions, use the following:

/script install autosort.py

Custom Ordering for Channels / Buffers

${info:autosort_order,${channel},#prioritychannel1,#prioritychannel2,#prioritychannel3,*,##lowpriority1,##lowpriority2,##lowpriority3,*,*}

Custom Ordering for Servers

/autosort rules insert 3 ${info:autosort_order,${server},freenode,*,efnet}

Move weechat (${core_first}) to the bottom

/autosort rules move 1 12


FREENODE
 #PriorityChannel1
 #PriorityChannel2
 #PriorityChannel3
 #OtherChannel1
 #OtherChannel2
 #LowPriority1
 #LowPriority2
 #LowPriority3
OtherServer1
OtherServer2
EFNet
weechat (system buffer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment