-
-
Save Fastidious/8ade5ce1f47b3a5200493e0eb0c08aa6 to your computer and use it in GitHub Desktop.
Revisions
-
pascalpoitras revised this gist
Apr 5, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -569,7 +569,7 @@ the commands above delete the obsolete news_transform trigger and news filter /eval /trigger addreplace newsmon print "${if:${plugins.var.news_buffer_full_name}!=?${plugins.var.news_buffer_full_name}:irc.freenode.##news};irc_privmsg,matrix_message" /trigger set newsmon conditions "${info:version_number} >= 50397184 && ${tg_displayed} !=" /trigger set newsmon regex "/.*/${tg_message_nocolor}/my_site_and_sections /^\[([^]]+)\].*/${re:1}/my_site_and_sections /.*/${my_site_and_sections}/my_site / - /${color:-underline} /my_site_and_sections / - .*//my_site /.*/${tg_message_nocolor}/my_title /^\[[^]]+\] (.*)/${re:1}/my_title /.*/${my_title}/my_date /.* ([0-9]{4}-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])/${re:1}/my_date /(.*) [0-9]{4}-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]/${re:1}/my_title /.*/${my_title}/my_url ==.* (https?://[^ ]+)==${re:1}==my_url ==(.*) https?://[^ ]+==${re:1}==my_title /.*/${my_url}/my_url_encode /.*/${base_encode:64,${my_url_encode}}/my_url_encode /\+/#/my_url_encode /$/url_${my_url_encode}/tg_tags /.*/${tg_date}/my_date_only /(.*) .*/${re:1}/my_date_only /.*/${tg_date}/my_time_only /.* (.*)/${re:1}/my_time_only /.*/${channel}/my_channel_no_prefix /^.(.)(.*)/${if:${re:1}==#&&${info:irc_server_isupport_value,${server},NETWORK}==freenode?:${re:1}}${re:2}/my_channel_no_prefix /.*/plugins.var.${tg_trigger_name}.general/my_general_prefix /.*/${if:${length:${${my_general_prefix}.bg}}!=?${${my_general_prefix}.bg}:red}/my_default_bg /.*/default/my_end.bg /.*/${plugins.var.${tg_trigger_name}.list}/my_list /[^,]+/${if:${re:0}=~^[[:alnum:]_]+$?${re:0}}/my_list /[^,]+/plugins.var.${tg_trigger_name}.section.${re:0}/my_list /[^,]+/${if:${eval_cond:${if:${length:${${re:0}.condition}}!=?${${re:0}.condition}:${if:${length:${${my_general_prefix}.condition}}!=?${${my_general_prefix}.condition}:1}}}!=?${re:0}}/my_list /[^,]+/${re:0},${re:0}/my_list /^,*[^,]+(.*)/${re:1}/my_list /.*[^,].*/${re:0},my_end/my_list /[^,]+/${if:${length:${${re:0}.fg}}!=?${re:0}.fg:${my_general_prefix}.fg},${if:${length:${${re:0}.bg}}!=?${re:0}.bg:my_default_bg},${if:${length:${${re:0}.samesep}}!=?${re:0}.samesep:${my_general_prefix}.samesep},${if:${length:${${re:0}.len}}!=?${re:0}.len:${my_general_prefix}.len},${re:0}.content/my_list /,+/,/my_list /^,|,$//my_list /([^,]+),([^,]+),([^,]+),([^,]+),([^,]+)()()()()(),([^,]+),([^,]+),([^,]+),([^,]+),([^,]+)(,|$)/${color:${eval:${${re:1}},${eval:${${re:2}}}}} ${if:${eval:${${re:4}}}=~^[0-9]+$&&${eval:${${re:4}}}!=?${if:${lengthscr:${eval:${${re:5}}}}>=${eval:${${re:4}}}?${cutscr:+${eval:${${re:4}}},…,${eval:${${re:5}}}}:${eval:${${re:5}}}${repeat:${calc:${eval:${${re:4}}}-${lengthscr:${eval:${${re:5}}}}}, }}:${eval:${${re:5}}}}${color:${eval:${${re:1}},${eval:${${re:2}}}}} ${if:${color:${eval:${${re:2}}}}==${color:${eval:${${re:12}}}}?${color:${eval:${${re:3}}}}:${color:${eval:${${re:2}},${eval:${${re:12}}}}}}${color:reset}/my_list /.+/${re:0} /my_list" /trigger set newsmon command "/print -newbuffer ${tg_trigger_name} -tags ${tg_tags} \t${my_list}${my_title}${if:${eval_cond:${plugins.var.newsmon.general.keep_url}}!=? ${my_url}}${if:${eval_cond:${plugins.var.newsmon.general.keep_date}}!=? ${my_date}}" /newsmon_tools set keep_url ${info:relay_client_count,*,connected}!= /newsmon_tools section add -fg black -bg ${info:nick_color_name,${my_site};cyan,magenta,green,brown,lightblue,lightcyan,lightmagenta,lightgreen,blue} -len 0 site_name end ${color:underline}${my_site_and_sections} -
pascalpoitras revised this gist
Mar 22, 2021 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -771,9 +771,8 @@ this info is useful for the weechat.look.day_change_message_1_date and _2dates. /alias addcompletion %(irc_channel)|%(nick)|%* slap /me slaps $* around a bit with a large trout /alias addcompletion %(irc_channel)|%(nick)|%* fu /say (╹◡╹)凸 $* /alias addcompletion %(weechat_commands) multicomm /alias add temp $*;/temp The multicomm alias is an alternative to /eval -s, but more "secure". If you use eval -s for this purpose (execute more than one command) but you forget that thing like secure variables will be evaluate this can be very bad. ## Filters -
pascalpoitras revised this gist
Mar 19, 2021 . 1 changed file with 1 addition and 13 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -672,7 +672,7 @@ The devinfo trigger create the devinfo command which is used to retrieve info fr /trigger set translate conditions "${tg_tags} =~ ,exec_cmd_translated_(text|lang)," /trigger set translate regex "/.*/${color:*_31}${if:${tg_tags}=~,exec_cmd_translated_text,?Translation:Language}${color:reset}\t${tg_message_nocolor}/" /trigger addreplace translate_hsignal hsignal translate /trigger set translate_hsignal regex "/.*/${info:spell_dict,${_buffer}}/my_main_spell_dict /,.*//my_main_spell_dict /.*/${env:LANG}/my_env_lang /_.*//my_env_lang /.*/${_buffer_localvar_translate_lang},${if:${_buffer_localvar_type}=~^(channel|private)$?${buffer[${if:${_buffer_plugin}==irc?${info:irc_buffer,${_buffer_localvar_server}}:${info:slack_matrix_server_search,${_buffer}}}].local_variables.translate_lang}},${plugins.var.translate_lang},${my_main_spell_dict},${my_env_lang}/my_lang /.*/${my_lang}/my_debug /^,+//my_lang /([^,]+).*/${re:1}/my_lang /'/'\''/my_lang /.*/${_chat_line_message}/my_chat_line_message /'/'\''/my_chat_line_message /.*/${_chat_word}/my_chat_word /'/'\''/my_chat_word /.*/${if:${_key}==t?translated_text trans -brief -target '${my_lang}' -no-auto '${my_chat_line_message}':${if:${_key}==l?translated_lang trans -brief -no-auto -id '${my_chat_line_message}':translated_dict trans -dictionary -no-auto '${my_chat_word}'}}/my_cmd_suffix" /trigger set translate_hsignal command "/command -buffer ${_buffer_full_name} * /exec -norc -name ${my_cmd_suffix}" @@ -725,18 +725,6 @@ This trigger will give you hint about max nickname length and available characte Disable notify for duck hunt commands like _bef_, _bang_, _reload_ and so on. This way I know there is nothing worth reading on a channel so I don't switch to that buffer. ### holiday -
pascalpoitras revised this gist
Mar 19, 2021 . 1 changed file with 8 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -662,7 +662,8 @@ The devinfo trigger create the devinfo command which is used to retrieve info fr  /trigger del translate_target_lang /buffer_autoset add exec.exec.translated_dict short_name dictionary /set plugins.var.translate_lang fr /buffer_autoset add irc.*.*fr localvar_set_translate_lang en @@ -671,13 +672,13 @@ The devinfo trigger create the devinfo command which is used to retrieve info fr /trigger set translate conditions "${tg_tags} =~ ,exec_cmd_translated_(text|lang)," /trigger set translate regex "/.*/${color:*_31}${if:${tg_tags}=~,exec_cmd_translated_text,?Translation:Language}${color:reset}\t${tg_message_nocolor}/" /trigger add translate_hsignal hsignal translate /trigger set translate_hsignal regex "/.*/${info:spell_dict,${_buffer}}/my_main_spell_dict /,.*//my_main_spell_dict /.*/${env:LANG}/my_env_lang /_.*//my_env_lang /.*/${_buffer_localvar_translate_lang},${if:${_buffer_localvar_type}=~^(channel|private)$?${buffer[${if:${_buffer_plugin}==irc?${info:irc_buffer,${_buffer_localvar_server}}:${info:slack_matrix_server_search,${_buffer}}}].local_variables.translate_lang}},${plugins.var.translate_lang},${my_main_spell_dict},${my_env_lang}/my_lang /.*/${my_lang}/my_debug /^,+//my_lang /([^,]+).*/${re:1}/my_lang /'/'\''/my_lang /.*/${_chat_line_message}/my_chat_line_message /'/'\''/my_chat_line_message /.*/${_chat_word}/my_chat_word /'/'\''/my_chat_word /.*/${if:${_key}==t?translated_text trans -brief -target '${my_lang}' -no-auto '${my_chat_line_message}':${if:${_key}==l?translated_lang trans -brief -no-auto -id '${my_chat_line_message}':translated_dict trans -dictionary -no-auto '${my_chat_word}'}}/my_cmd_suffix" /trigger set translate_hsignal command "/command -buffer ${_buffer_full_name} * /exec -norc -name ${my_cmd_suffix}" /key bindctxt cursor @chat:t /window ${_window_number};hsignal:translate;/cursor stop /key bindctxt cursor @chat:l /window ${_window_number};hsignal:translate;/cursor stop /key bindctxt cursor @chat:d /window ${_window_number};hsignal:translate;/cursor stop This let you translate text with the translate-shell program (package has the same name, at least for Debian). If you want to translate something someone said, press the middle mouse button on the message then press 't'. If you want to know the language of the text, press 'l' instead. Finally, you can press 'd' this will open a buffer and call translate-shell in dictionary mode. For the key 't', the target language is choosed like this: if there is a translate_lang localvar for the buffer, use the langage specified by this localvar. If not, check if the buffer is a channel or private and if so, check if there is a translate_lang localvar for the corresponding server buffer. If not, check if the option plugins.var.translate_lang exist. Otherwhise, check if there is a main spell dict set and if not use the LANG env. So, 1) buffer localvar 2) server buffer localvar 3) option 4) main spell dict 5) LANG environment variable -
pascalpoitras revised this gist
Feb 13, 2021 . 1 changed file with 4 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -592,30 +592,26 @@ This trigger will be triggered when we press 'i' on a news in cursor mode (in ge ## Layouts ### Layout main-control /eval /window splith ${calc:9 / ${window[gui_current_window].win_height} * 100 // 1} /buffer highmon /window 1 /layout store main-control windows a layout with two windows, window 1 is the bigger one and the main one used to display anything. Window 2 is suited to display monitors buffers like chanmon, highmon and newsmon ### Layout main-control-conky /window 2 /eval /window splitv ${if:${info:version_number}>=50397184?15:85} /buffer exec.conky /window 1 /layout store main-control-conky windows a layout with three windows. Like the above one, the first window is the bigger one but window 2 is now smaller to make some room for window 3 which is use to display conky ## nullpointer (https://0x0.st) -
pascalpoitras revised this gist
Feb 13, 2021 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -155,8 +155,8 @@ sort french channels before other channels. A french channel, in my configuratio ≥ WeeChat 3.1 for ${raw:...} /exec -nosw -norc -noln -sh -buffer conky conky -C > ~/.conkyrc && conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${upspeedf eth0} KiB\nDown: ${downspeedf eth0} KiB' /eval /set weechat.startup.command_after_plugins ${weechat.startup.command_after_plugins}${if:${weechat.startup.command_after_plugins}!=?;}/exec -nosw -norc -noln -buffer conky conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${raw:${raw:${upspeedf eth0}}} KiB\nDown: ${raw:${raw:${downspeedf eth0}}} KiB' /buffer_autoset add exec.exec.conky short_name sys /set weechat.notify.exec.exec.conky none /buffer_autoset add exec.exec.conky title Conky - the light-weight system monitor @@ -595,7 +595,6 @@ This trigger will be triggered when we press 'i' on a news in cursor mode (in ge ### Layout highlight-or-news /eval /window splith ${calc:9 / ${window[gui_current_window].win_height} * 100 // 1} /buffer highmon /window 1 -
pascalpoitras revised this gist
Feb 13, 2021 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -595,6 +595,7 @@ This trigger will be triggered when we press 'i' on a news in cursor mode (in ge ### Layout highlight-or-news /buffer core.weechat /eval /window splith ${calc:9 / ${window[gui_current_window].win_height} * 100 // 1} /buffer highmon /window 1 -
pascalpoitras revised this gist
Feb 13, 2021 . 1 changed file with 30 additions and 42 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -168,7 +168,7 @@ sort french channels before other channels. A french channel, in my configuratio /trigger addreplace conky modifier weechat_print /trigger set conky conditions "${tg_buffer} == exec.exec.conky && ${tg_tags} =~ ,exec_stdout, && ${tg_message_nocolor} =~ ^[^:]+: *[^ ]" /trigger set conky regex "/^ \t([^:]+):(.*)/ ${color:_31}${re:1}\t${color:reset}${re:2}/ /.*/${tg_message_nocolor}/my_field /.*/${tg_message_nocolor}/my_value /^([^:]+):.*/${re:1}/my_field / /_/my_field /^[^:]+: */${re:1}/my_value" #/trigger set conky command "/mute /set plugins.var.python.text_item.conky_${my_field} all \${if:${buffer.num_displayed}==?${my_field} ${color:white}${my_value}}" This trigger does two things. First (the regex line), it change the look of the ouput to be easier to read and to match the look of the rest of the config. Second (the command line), it create a text_item option for all line and if the conky buffer is not displayed on screen, the items created by text_item will become visibile in the status bar (go to the [status bar section](https://gist.github.com/pascalpoitras/8406501#bar-status) to add it to the bar). If you have weechat < 3.0 you should not use the last line because if you open fset at the same time your cpu will reach 100% (see [this](https://github.com/weechat/weechat/issues/1553). If you have weechat ≥ 3.0 it is safe but you must set the option *fset.look.auto_refresh* value as mine (see the [fset section](https://gist.github.com/pascalpoitras/8406501#fset)) @@ -431,34 +431,6 @@ Uncomment the last line if you want to show system info using conky when the con Note: I changed the conditions to display the nicklist only on buffer of type channels _${nicklist}_ and on the window number 1, which is my chat window (2 being my highlight window and 3 my conky window). In my case, I could remove _${window.numer} == 1_ because the _highmon_ and _exec_ buffer (conky) are not of type channels so ${nicklist} is enough. ## Channel Monitor @@ -617,6 +589,34 @@ The first trigger create the newsmon_tools command. The second trigger send all This trigger will be triggered when we press 'i' on a news in cursor mode (in general we invoke this with the middle mouse button). 'i' insert the URL in the input bar. If the URL is too long to view it all, simply press return to send it to the channel, which anyway is +m so nobody will see it, and press alt+l to go in bare mode (so you can click on the URL). ## Layouts ### Layout highlight-or-news /eval /window splith ${calc:9 / ${window[gui_current_window].win_height} * 100 // 1} /buffer highmon /window 1 /layout store main-control windows Note: Instead of having only one window, we split it to create another one that we will use to show all highlights. ### Layout highlight-or-news-and-conky /window 2 /eval /window splitv ${if:${info:version_number}>=50397184?15:85} /buffer exec.conky /window 1 /layout store main-control-conky windows Note: split the highlight monitor window in 2 and show conky in the new one ## nullpointer (https://0x0.st) @@ -728,18 +728,6 @@ This trigger will give you hint about max nickname length and available characte Disable notify for duck hunt commands like _bef_, _bang_, _reload_ and so on. This way I know there is nothing worth reading on a channel so I don't switch to that buffer. ### escape shell single quote @@ -759,7 +747,7 @@ if you use /exec with -sh and the option _exec\_command\_shell_ is set to bash, /trigger set utils_holiday conditions "${tg_arguments} =~ ^(0[1-9]|[1-2][0-9]|3[0-1])-(0[1-9]|1[0-2])$" /trigger set utils_holiday regex "/.*/${tg_arguments}/ /01-01/HAPPY NEW YEAR!/ /25-12/MERRY CHRISTMAS!/ /[0-9][0-9]-[0-9][0-9]//" this info is useful for the weechat.look.day_change_message_1_date and _2dates. See these options at the bottom of my configuration. ## Keys -
pascalpoitras revised this gist
Feb 13, 2021 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -442,7 +442,7 @@ Note: I changed the conditions to display the nicklist only on buffer of type ch /eval /window splith ${calc:9 / ${window[gui_current_window].win_height} * 100 // 1} /buffer highmon /window 1 /layout store main-control windows Note: Instead of having only one window, we split it to create another one that we will use to show all highlights. @@ -455,7 +455,7 @@ Note: Instead of having only one window, we split it to create another one that /eval /window splitv ${if:${info:version_number}>=50397184?15:85} /buffer exec.conky /window 1 /layout store main-control-conky windows Note: split the highlight monitor window in 2 and show conky in the new one -
pascalpoitras revised this gist
Feb 13, 2021 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -442,7 +442,7 @@ Note: I changed the conditions to display the nicklist only on buffer of type ch /eval /window splith ${calc:9 / ${window[gui_current_window].win_height} * 100 // 1} /buffer highmon /window 1 /layout store highlight-or-news windows Note: Instead of having only one window, we split it to create another one that we will use to show all highlights. @@ -455,7 +455,7 @@ Note: Instead of having only one window, we split it to create another one that /eval /window splitv ${if:${info:version_number}>=50397184?15:85} /buffer exec.conky /window 1 /layout store highlight-or-news-and-conky windows Note: split the highlight monitor window in 2 and show conky in the new one -
pascalpoitras revised this gist
Feb 13, 2021 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -155,8 +155,7 @@ sort french channels before other channels. A french channel, in my configuratio ≥ WeeChat 3.1 for ${raw:...} /exec -norc -noln -sh -buffer conky conky -C > ~/.conkyrc && conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${upspeedf eth0} KiB\nDown: ${downspeedf eth0} KiB' /eval /set weechat.startup.command_after_plugins ${weechat.startup.command_after_plugins}${if:${weechat.startup.command_after_plugins}!=?;}/exec -norc -noln -buffer conky conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${raw:${raw:${upspeedf eth0}}} KiB\nDown: ${raw:${raw:${downspeedf eth0}}} KiB' /buffer_autoset add exec.exec.conky short_name sys /set weechat.notify.exec.exec.conky none -
pascalpoitras revised this gist
Feb 13, 2021 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -155,7 +155,8 @@ sort french channels before other channels. A french channel, in my configuratio ≥ WeeChat 3.1 for ${raw:...} /exec -norc -sh -buffer conky conky -C > ~/.conkyrc /exec -norc -noln -buffer conky conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${upspeedf eth0} KiB\nDown: ${downspeedf eth0} KiB' /eval /set weechat.startup.command_after_plugins ${weechat.startup.command_after_plugins}${if:${weechat.startup.command_after_plugins}!=?;}/exec -norc -noln -buffer conky conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${raw:${raw:${upspeedf eth0}}} KiB\nDown: ${raw:${raw:${downspeedf eth0}}} KiB' /buffer_autoset add exec.exec.conky short_name sys /set weechat.notify.exec.exec.conky none -
pascalpoitras revised this gist
Feb 13, 2021 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -153,6 +153,7 @@ sort french channels before other channels. A french channel, in my configuratio ## Conky ≥ WeeChat 3.1 for ${raw:...} /exec -norc -noln -sh -buffer conky conky -C > ~/.conkyrc && conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${upspeedf eth0} KiB\nDown: ${downspeedf eth0} KiB' /eval /set weechat.startup.command_after_plugins ${weechat.startup.command_after_plugins}${if:${weechat.startup.command_after_plugins}!=?;}/exec -norc -noln -buffer conky conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${raw:${raw:${upspeedf eth0}}} KiB\nDown: ${raw:${raw:${downspeedf eth0}}} KiB' -
pascalpoitras revised this gist
Feb 13, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -155,7 +155,7 @@ sort french channels before other channels. A french channel, in my configuratio /exec -norc -noln -sh -buffer conky conky -C > ~/.conkyrc && conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${upspeedf eth0} KiB\nDown: ${downspeedf eth0} KiB' /eval /set weechat.startup.command_after_plugins ${weechat.startup.command_after_plugins}${if:${weechat.startup.command_after_plugins}!=?;}/exec -norc -noln -buffer conky conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${raw:${raw:${upspeedf eth0}}} KiB\nDown: ${raw:${raw:${downspeedf eth0}}} KiB' /buffer_autoset add exec.exec.conky short_name sys /set weechat.notify.exec.exec.conky none /buffer_autoset add exec.exec.conky title Conky - the light-weight system monitor -
pascalpoitras revised this gist
Feb 13, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -155,7 +155,7 @@ sort french channels before other channels. A french channel, in my configuratio /exec -norc -noln -sh -buffer conky conky -C > ~/.conkyrc && conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${upspeedf eth0} KiB\nDown: ${downspeedf eth0} KiB' /eval /set weechat.startup.command_after_plugins ${weechat.startup.command_after_plugins}${if:${weechat.startup.command_after_plugins}!=?;}/exec -norc -noln -buffer conky conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${raw:${upspeedf eth0}} KiB\nDown: ${raw:${downspeedf eth0}} KiB' /buffer_autoset add exec.exec.conky short_name sys /set weechat.notify.exec.exec.conky none /buffer_autoset add exec.exec.conky title Conky - the light-weight system monitor -
pascalpoitras revised this gist
Feb 13, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -154,7 +154,7 @@ sort french channels before other channels. A french channel, in my configuratio ## Conky /exec -norc -noln -sh -buffer conky conky -C > ~/.conkyrc && conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${upspeedf eth0} KiB\nDown: ${downspeedf eth0} KiB' /eval /set weechat.startup.command_after_plugins ${weechat.startup.command_after_plugins}${if:${weechat.startup.command_after_plugins}!=?;}/exec -norc -noln -buffer conky conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${upspeedf eth0} KiB\nDown: ${downspeedf eth0} KiB' /buffer_autoset add exec.exec.conky short_name sys /set weechat.notify.exec.exec.conky none -
pascalpoitras revised this gist
Feb 13, 2021 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -154,8 +154,7 @@ sort french channels before other channels. A french channel, in my configuratio ## Conky /exec -norc -noln -sh -buffer conky conky -C > ~/.conkyrc && conky -p 2 -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${upspeedf eth0} KiB\nDown: ${downspeedf eth0} KiB' /eval /set weechat.startup.command_after_plugins ${weechat.startup.command_after_plugins}${if:${weechat.startup.command_after_plugins}!=?;}/exec -norc -noln -buffer conky conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${upspeedf eth0} KiB\nDown: ${downspeedf eth0} KiB' /buffer_autoset add exec.exec.conky short_name sys /set weechat.notify.exec.exec.conky none -
pascalpoitras revised this gist
Feb 13, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -155,7 +155,7 @@ sort french channels before other channels. A french channel, in my configuratio /exec -norc -sh conky -C > ~/.conkyrc /exec -norc -noln -buffer conky conky -p 2 -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${upspeedf eth0} KiB\nDown: ${downspeedf eth0} KiB' /eval /set weechat.startup.command_after_plugins ${weechat.startup.command_after_plugins}${if:${weechat.startup.command_after_plugins}!=?;}/exec -norc -noln -buffer conky conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${upspeedf eth0} KiB\nDown: ${downspeedf eth0} KiB' /buffer_autoset add exec.exec.conky short_name sys /set weechat.notify.exec.exec.conky none -
pascalpoitras revised this gist
Feb 13, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -155,7 +155,7 @@ sort french channels before other channels. A french channel, in my configuratio /exec -norc -sh conky -C > ~/.conkyrc /wait 1 /exec -norc -noln -buffer conky conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${upspeedf eth0} KiB\nDown: ${downspeedf eth0} KiB' /eval /set weechat.startup.command_after_plugins ${weechat.startup.command_after_plugins}${if:${weechat.startup.command_after_plugins}!=?;}/exec -norc -noln -buffer conky conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${upspeedf eth0} KiB\nDown: ${downspeedf eth0} KiB' /buffer_autoset add exec.exec.conky short_name sys /set weechat.notify.exec.exec.conky none -
pascalpoitras revised this gist
Feb 13, 2021 . 1 changed file with 10 additions and 43 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -122,13 +122,6 @@ If you want a trusted certificate, use [let's encrypt! with weechat relay](https /set fset.look.auto_refresh "*,!weechat.bar.buflist.size,!plugins.var.buflist_section_*,!plugins.var.python.text_item.conky_*" /set fset.format.option1 "${if:${selected_line}?${color:*white}>>: } ${marked} ${name} ${type} ${value2}" /set weechat.bar.fset.conditions "${buffer.full_name} == fset.fset && ${window.win_height} > 7" ## Scripts @@ -161,23 +154,13 @@ sort french channels before other channels. A french channel, in my configuratio ## Conky /exec -norc -sh conky -C > ~/.conkyrc /exec -norc -noln -buffer conky conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${upspeedf eth0} KiB\nDown: ${downspeedf eth0} KiB' /eval /set weechat.startup.command_after_plugins ${weechat.startup.command_after_plugins}${if:${weechat.startup.command_after_plugins}!=?;}/exec -norc -noln -buffer conky conky -t 'Uptime: $uptime_short\nCPU: $cpu%\nRAM: $memperc%\nSwap: $swapperc%\nUp: ${upspeedf eth0} KiB\nDown: ${downspeedf eth0} KiB' /buffer_autoset add exec.exec.conky short_name sys /set weechat.notify.exec.exec.conky none /buffer_autoset add exec.exec.conky title Conky - the light-weight system monitor ### beautify the output @@ -190,28 +173,6 @@ Change the title _Executed commands_ to _Conky - the light-weight system monitor This trigger does two things. First (the regex line), it change the look of the ouput to be easier to read and to match the look of the rest of the config. Second (the command line), it create a text_item option for all line and if the conky buffer is not displayed on screen, the items created by text_item will become visibile in the status bar (go to the [status bar section](https://gist.github.com/pascalpoitras/8406501#bar-status) to add it to the bar). If you have weechat < 3.0 you should not use the last line because if you open fset at the same time your cpu will reach 100% (see [this](https://github.com/weechat/weechat/issues/1553). If you have weechat ≥ 3.0 it is safe but you must set the option *fset.look.auto_refresh* value as mine (see the [fset section](https://gist.github.com/pascalpoitras/8406501#fset)) Note: you need the _conky-cli_ package on _Debian_ @@ -516,6 +477,8 @@ Note: split the highlight monitor window in 2 and show conky in the new one this is the command syntax /buffer add chanmon /eval /set weechat.startup.command_after_plugins ${weechat.startup.command_after_plugins}${if:${weechat.startup.command_after_plugins}!=?;}/buffer add chanmon /buffer_autoset add core.chanmon notify none /buffer_autoset add core.chanmon highlight_words - /buffer_autoset add core.chanmon title Channels Monitor @@ -567,6 +530,8 @@ The first trigger create the chanmon_tools command. The second trigger send all this is the command syntax /buffer add highmon /eval /set weechat.startup.command_after_plugins ${weechat.startup.command_after_plugins}${if:${weechat.startup.command_after_plugins}!=?;}/buffer add highmon /buffer_autoset add core.highmon notify none /buffer_autoset add core.highmon highlight_words - /buffer_autoset add core.highmon title Highlight Monitor @@ -614,6 +579,8 @@ this is the command syntax the commands above delete the obsolete news_transform trigger and news filter /buffer add newsmon /eval /set weechat.startup.command_after_plugins ${weechat.startup.command_after_plugins}${if:${weechat.startup.command_after_plugins}!=?;}/buffer add newsmon /buffer_autoset add core.newsmon notify none /buffer_autoset add core.newsmon highlight_words - /buffer_autoset add core.newsmon title News Monitor -
pascalpoitras revised this gist
Feb 9, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -323,7 +323,7 @@ Create the control_buffers bar with buflist2 for items and display this bar only This was the format options which changed the look of each buflist items /set buflist.look.use_items 2 Use two items (buflist and buflist2) -
pascalpoitras revised this gist
Feb 9, 2021 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -322,7 +322,11 @@ Create the control_buffers bar with buflist2 for items and display this bar only /set plugins.var.buflist_format_extra "${if:${plugins.var.buflist_subsection_extra}!=&&${buffer.local_variables.extra}!=? ${if:${type}==server?${color:black}:${color:31}}${buffer.local_variables.extra}}" This was the format options which changed the look of each buflist items /set buflist.look.items 2 Use two items (buflist and buflist2) /set buflist.look.signals_refresh "irc_server_connected,relay_client_connected,relay_client_disconnected" Add additionnals signals to refresh the buflist -
pascalpoitras revised this gist
Feb 8, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -487,7 +487,7 @@ Note: Instead of having only one window, we split it to create another one that /window 2 /eval /window splitv ${if:${info:version_number}>=50397184?15:85} /buffer exec.conky /window 1 /layout store highlight-or-news-and-conky -
pascalpoitras revised this gist
Feb 8, 2021 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -298,11 +298,11 @@ The buflist will be resized to 20. 15 columns for the 1st section and 5 columns I want to show all the old subsections (so the buflist looks like before) but also add fold (a triangle to expand/collapse channels/privates under their servers). I want to display real network name (not the one used in /server add). Instead of spaces for the indent subsection, I want tree symbols. /bar add control_buffers window top 1 1 buflist2 /bar set control_buffers priority 499 /bar set control_buffers conditions ${window.number} == ${if:${plugins.var.control_buffers_window}?${plugins.var.control_buffers_window}:2} Create the control_buffers bar with buflist2 for items and display this bar only on the window with the same number as the number in the option plugins.var.control_buffers_window (or 2 if this options doesn't exist) /set buflist.format.hotlist_highlight "${color:163}" /set buflist.format.hotlist_message "${color:229}" -
pascalpoitras revised this gist
Feb 8, 2021 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -308,7 +308,7 @@ Create the control_buffers bar with buflist3 for items and display this bar only /set buflist.format.hotlist_message "${color:229}" /set buflist.format.hotlist_private "${color:121}" /set buflist.format.buffer "${if:${bar_item.name}==buflist?${if:${type}==server?${color:,31}:${color:default}}${if:${lengthscr:${format_number}${eval:${plugins.var.buflist_format_fold}}${indent}${format_nick_prefix}${format_name}${format_lag}${eval:${plugins.var.buflist_format_filter}${plugins.var.buflist_format_relay_count}${plugins.var.buflist_format_extra}}} > ${plugins.var.buflist_section_1st}?${cutscr:+${plugins.var.buflist_section_1st},${if:${type}==server?${color:white}:${color:${weechat.color.chat_prefix_more}}}${weechat.look.prefix_align_more},${format_number}${eval:${plugins.var.buflist_format_fold}}${indent}${format_nick_prefix}${format_name}${format_lag}${eval:${plugins.var.buflist_format_filter}${plugins.var.buflist_format_relay_count}${plugins.var.buflist_format_extra}}}:${format_number}${eval:${plugins.var.buflist_format_fold}}${indent}${format_nick_prefix}${format_name}${format_lag}${eval:${plugins.var.buflist_format_filter}${plugins.var.buflist_format_relay_count}${plugins.var.buflist_format_extra}}${repeat:${calc:${plugins.var.buflist_section_1st} - ${lengthscr:${format_number}${eval:${plugins.var.buflist_format_fold}}${indent}${format_nick_prefix}${format_name}${format_lag}${eval:${plugins.var.buflist_format_filter}${plugins.var.buflist_format_relay_count}${plugins.var.buflist_format_extra}}}}, }}${if:${lengthscr:${format_hotlist}} > ${plugins.var.buflist_section_2nd}?${cutscr:+${plugins.var.buflist_section_2nd},${if:${type}==server?${color:white}:${color:${weechat.color.chat_prefix_more}}}${weechat.look.prefix_align_more},${format_hotlist}}:${repeat:${calc:${plugins.var.buflist_section_2nd} - ${lengthscr:${format_hotlist}}}, }${format_hotlist}}:${if:${bar_item.name}==buflist2?${if:${window.buffer}==${buffer}?${color:31}${\ue0be}${color:white,31} ${cutscr:7,${\u2026},${name}} ${color:reset}${color:31}${\ue0bc}:${color:24}${\ue0be}${color:darkgray,24} ${cutscr:7,${\u2026},${name}} ${color:reset}${color:24}${\ue0bc}}:${color_hotlist}${name}}}" /set buflist.format.buffer_current "${format_buffer}" /set buflist.format.number "${if:${plugins.var.buflist_subsection_buffer_number}!=?${if:${current_buffer}?${color:*white}${hide:>,${number}} :${if:${type}==server?${color:black}:${color:239}}${number}${if:${number_displayed}?.: }}}" /set buflist.format.indent "${if:${plugins.var.buflist_subsection_indent}!=?${if:${plugins.var.buflist_look_indent_tree}!=?${color:31}├─: }}" @@ -327,7 +327,7 @@ This was the format options which changed the look of each buflist items Add additionnals signals to refresh the buflist /set buflist.look.display_conditions "${bar_item.name} == buflist && (${buffer.hidden} == || ${plugins.var.buflist_look_show_hidden_buffers} !=) && (${type} !~ ^(channel|private)$ || ${type} =~ ^(channel|private)$ && ${buffer[${if:${plugin}==irc?${info:irc_buffer,${irc_server.name}}:${info:slack_matrix_server_search,${buffer}}}].local_variables.fold}==) || ${bar_item.name} == buflist2 && ${buffer.local_variables.control_buffer} !=" The conditions to display a buffer in the buflist items. @@ -351,7 +351,7 @@ This trigger is needed if you want to be able to expand/collapse slack and matri /key bindctxt mouse @chat(*)>bar(control_buffers):button1* hsignal:toggle_property /key bindctxt mouse @bar(control_buffers)>chat(*):button1* /mute /set plugins.var.control_buffers_window ${_window_number2} /key bindctxt mouse @bar(buflist):alt-wheel* hsignal:buflist_resize /key bindctxt mouse @item(buflist2):button1* /mute /set plugins.var.control_buffers_previous_active_window ${window.number};/window ${_window_number};hsignal:buflist_mouse;/window ${plugins.var.control_buffers_previous_active_window} /key bindctxt cursor @item(buflist*):c hsignal:toggle_property;/cursor stop /key bindctxt cursor @item(buflist*):f hsignal:toggle_property;/cursor stop /key bindctxt cursor @item(buflist*):r /server raw c:\${${if:${localvar_type}==private?nick:${localvar_type}}}==${localvar_channel};/cursor stop -
pascalpoitras revised this gist
Jan 31, 2021 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -821,13 +821,13 @@ this info is useful for the weechat.look.day_change_message_1_date and _2dates. /alias add ame allchan -current /me /alias add amsg allchan -current /msg * /alias add cq /allpv /buffer close /alias add znc /quote znc /alias add irc_stats /set plugins.var.total_irc_servers 0;/set plugins.var.total_irc_channels 0;/set plugins.var.total_irc_privates 0;/allserv /eval /set plugins.var.total_irc_servers ${calc:${plugins.var.total_irc_servers}+1};/allchan /eval /set plugins.var.total_irc_channels ${calc:${plugins.var.total_irc_channels}+1};/allpv /eval /set plugins.var.total_irc_privates ${calc:${plugins.var.total_irc_privates}+1};/eval I am currently on ${plugins.var.total_irc_servers} server${if:${plugins.var.total_irc_servers}>1?s}, ${plugins.var.total_irc_channels} channel${if:${plugins.var.total_irc_channels}>1?s} and I have ${plugins.var.total_irc_privates} quer${if:${plugins.var.total_irc_privates}>1?ies:y}.;/unset -mask plugins.var.total_irc_* /alias addcompletion -m close /eval ${if:-m==$*?/allpv }/buffer close /alias addcompletion %(irc_channel)|%(nick)|%* slap /me slaps $* around a bit with a large trout /alias addcompletion %(irc_channel)|%(nick)|%* fu /say (╹◡╹)凸 $* /alias addcompletion %(weechat_commands) multicomm /alias add temp $*;/temp /alias addcompletion %(colors)|%* change-color /fset c:${type_en} == color && ${value} == $1;/command -buffer fset.fset core /input send m:*;/fset -add -$1;/fset -add $2 The multicomm alias is an alternative to /eval -s, but more "secure". If you use eval -s for this purpose (execute more than one command) but you forget that thing like secure variables will be evaluate this can be very bad. The change-color alias allow you to change all colors options corresponding to a certain value with another one. -
pascalpoitras revised this gist
Jan 31, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -822,7 +822,7 @@ this info is useful for the weechat.look.day_change_message_1_date and _2dates. /alias add amsg allchan -current /msg * /alias add cq /allpv /buffer close /alias addcompletion -m close /eval ${if:-m==$*?/allpv }/buffer close /alias addcompletion %(irc_channel)|%(nick)|%* slap /me slaps $* around a bit with a large trout /alias add znc /quote znc /alias add fu /say (╹◡╹)凸 $* /alias addcompletion %(weechat_commands) multicomm /alias add temp $*;/temp -
pascalpoitras revised this gist
Jan 31, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -826,7 +826,7 @@ this info is useful for the weechat.look.day_change_message_1_date and _2dates. /alias add znc /quote znc /alias add fu /say (╹◡╹)凸 $* /alias addcompletion %(weechat_commands) multicomm /alias add temp $*;/temp /alias addcompletion %(colors)|%* change-color /fset c:${type_en} == color && ${value} == $1;/command -buffer fset.fset core /input send m:*;/fset -add -$1;/fset -add $2 /alias add irc_stats /set plugins.var.total_irc_servers 0;/set plugins.var.total_irc_channels 0;/set plugins.var.total_irc_privates 0;/allserv /eval /set plugins.var.total_irc_servers ${calc:${plugins.var.total_irc_servers}+1};/allchan /eval /set plugins.var.total_irc_channels ${calc:${plugins.var.total_irc_channels}+1};/allpv /eval /set plugins.var.total_irc_privates ${calc:${plugins.var.total_irc_privates}+1};/eval I am currently on ${plugins.var.total_irc_servers} server${if:${plugins.var.total_irc_servers}>1?s}, ${plugins.var.total_irc_channels} channel${if:${plugins.var.total_irc_channels}>1?s} and I have ${plugins.var.total_irc_privates} quer${if:${plugins.var.total_irc_privates}>1?ies:y}.;/unset -mask plugins.var.total_irc_* The multicomm alias is an alternative to /eval -s, but more "secure". If you use eval -s for this purpose (execute more than one command) but you forget that thing like secure variables will be evaluate this can be very bad. The change-color alias allow you to change all colors options corresponding to a certain value with another one. -
pascalpoitras revised this gist
Jan 31, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -826,7 +826,7 @@ this info is useful for the weechat.look.day_change_message_1_date and _2dates. /alias add znc /quote znc /alias add fu /say (╹◡╹)凸 $* /alias addcompletion %(weechat_commands) multicomm /alias add temp $*;/temp /alias addcompletion %(nick)|%(colors)|%* change-color /fset c:${type_en} == color && ${value} == $1;/command -buffer fset.fset core /input send m:*;/fset -add -$1;/fset -add $2 /alias add irc_stats /set plugins.var.total_irc_servers 0;/set plugins.var.total_irc_channels 0;/set plugins.var.total_irc_privates 0;/allserv /eval /set plugins.var.total_irc_servers ${calc:${plugins.var.total_irc_servers}+1};/allchan /eval /set plugins.var.total_irc_channels ${calc:${plugins.var.total_irc_channels}+1};/allpv /eval /set plugins.var.total_irc_privates ${calc:${plugins.var.total_irc_privates}+1};/eval I am currently on ${plugins.var.total_irc_servers} server${if:${plugins.var.total_irc_servers}>1?s}, ${plugins.var.total_irc_channels} channel${if:${plugins.var.total_irc_channels}>1?s} and I have ${plugins.var.total_irc_privates} quer${if:${plugins.var.total_irc_privates}>1?ies:y}.;/unset -mask plugins.var.total_irc_* The multicomm alias is an alternative to /eval -s, but more "secure". If you use eval -s for this purpose (execute more than one command) but you forget that thing like secure variables will be evaluate this can be very bad. The change-color alias allow you to change all colors options corresponding to a certain value with another one. -
pascalpoitras revised this gist
Jan 31, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -822,7 +822,7 @@ this info is useful for the weechat.look.day_change_message_1_date and _2dates. /alias add amsg allchan -current /msg * /alias add cq /allpv /buffer close /alias addcompletion -m close /eval ${if:-m==$*?/allpv }/buffer close /alias addcompletion %(nick) slap /me slaps $1- around a bit with a large trout /alias add znc /quote znc /alias add fu /say (╹◡╹)凸 $* /alias addcompletion %(weechat_commands) multicomm /alias add temp $*;/temp
NewerOlder