commit d4a341307ca851ffe692351d95438180adf19c61 parent 49bae94de75c26b931f377f2638c89089262620d Author: Xiaodong Xu <[email protected]> Date: Tue May 31 21:14:00 +0800 Add more config Diffstat:
.Xdefaults | | | 8 | ++++---- |
.Xdefaults.d/colors/lich | | | 22 | +++++++++++++++------- |
.Xdefaults.d/colors/smokey | | | 36 | ++++++++++++++++++++++++++++++++++++ |
.Xdefaults.d/fonts/sourcecodepro_noto | | | 11 | +++++++++++ |
.gtkrc.mine | | | 8 | ++++---- |
.irssi/mono.theme | | | 287 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
.irssi/neongold.theme | | | 206 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
.irssi/z3bra.theme | | | 133 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
.pentadactylrc | | | 7 | +++---- |
.xinitrc | | | 19 | ++++++++++--------- |
rofi.conf | | | 210 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
settings.ini | | | 29 | +++++++++++++++++++++++++++++ |
yabar.conf | | | 42 | ++++++++++++++++++++++++++++++++++++++++++ |
diff --git a/.Xdefaults b/.Xdefaults @@ -1,11 +1,11 @@ ! ! author : Xu Xiaodong <[email protected]> -! modified : 2016 May 07 +! modified : 2016 May 13 ! !-- colorscheme & font --! -#include ".Xdefaults.d/colors/lich" -#include ".Xdefaults.d/fonts/input_droid" +#include ".Xdefaults.d/colors/smokey" +#include ".Xdefaults.d/fonts/sourcecodepro_noto" !-- xft --! ! hintstyle : hintnone | hintslight | hintmedium | hintfull @@ -24,7 +24,7 @@ Xcursor.size : 10 !-- urxvt base --! URxvt.title : URxvt -URxvt.geometry : 65x20 +URxvt.geometry : 64x16 URxvt.loginShell : true URxvt.preeditType : Root URxvt.saveLines : 65535 diff --git a/.Xdefaults.d/colors/lich b/.Xdefaults.d/colors/lich @@ -5,19 +5,27 @@ *.background : #222222 *.foreground : #eeeeee *.cursorColor: #b89f63 +! black *color0 : #222222 -*color1 : #8e5c4e -*color2 : #6c7e55 -*color3 : #b89f63 -*color4 : #7fb8d8 -*color5 : #956d9d -*color6 : #4c8ea1 -*color7 : #808080 *color8 : #454545 +! red +*color1 : #8e5c4e *color9 : #cc896d +! green +*color2 : #6c7e55 *color10 : #c4df90 +! yellow +*color3 : #b89f63 *color11 : #ffe080 +! blue +*color4 : #7fb8d8 *color12 : #b8ddea +! magenta +*color5 : #956d9d *color13 : #c18fcb +! cyan +*color6 : #4c8ea1 *color14 : #6bc1d0 +! white +*color7 : #808080 *color15 : #eeeeee diff --git a/.Xdefaults.d/colors/smokey b/.Xdefaults.d/colors/smokey @@ -0,0 +1,36 @@ +! special +*.foreground: #b9b9b9 +*.background: #101010 +*.cursorColor: #b9b9b9 + +! black +*color0: #101010 +*color8: #525252 + +! red +*color1: #7c7c7c +*color9: #7c7c7c + +! green +*color2: #8e8e8e +*color10: #8e8e8e + +! yellow +*color3: #a0a0a0 +*color11: #a0a0a0 + +! blue +*color4: #686868 +*color12: #686868 + +! magenta +*color5: #747474 +*color13: #747474 + +! cyan +*color6: #868686 +*color14: #868686 + +! white +*color7: #b9b9b9 +*color15: #f7f7f7 diff --git a/.Xdefaults.d/fonts/sourcecodepro_noto b/.Xdefaults.d/fonts/sourcecodepro_noto @@ -0,0 +1,11 @@ +! +! author : Xu Xiaodong <[email protected]> +! modified : 2016 May 14 +! + +URxvt.font : xft:source code pro:size=12,xft:noto sans cjk sc:size=13 +URxvt.boldFont : xft:source code pro:size=12:bold,xft:noto sans cjk sc:size=13:bold +URxvt.italicFont : xft:source code pro:size=12:italic,xft:noto sans cjk sc:size=13:italic +URxvt.bolditalicFont : xft:source code pro:size=12:bolditalic,xft:noto sans cjk sc:size=13:bolditalic + +! vim: ai:et:ts=2:sw=2:tw=78:ft=xdefaults diff --git a/.gtkrc.mine b/.gtkrc.mine @@ -1,6 +1,6 @@ - +# # author: Xu Xiaodong <[email protected]> -# modified: 2016 May 07 +# modified: 2016 May 12 # #-- xft --# @@ -16,9 +16,9 @@ include "/home/xiaodong/.themes/BlackWhite/gtk-2.0/gtkrc" gtk-icon-theme-name = "gnome-dust" #-- font --# -gtk-font-name = "Noto Sans 12" +gtk-font-name = "Aller 12" style "user-font" { - font_name = "Noto Sans 12" + font_name = "Aller 12" } widget_class "*" style "user-font" diff --git a/.irssi/mono.theme b/.irssi/mono.theme @@ -0,0 +1,287 @@ +# {{{ +# +# When testing changes, the easiest way to reload the theme is with /RELOAD. +# This reloads the configuration file too, so if you did any changes remember +# to /SAVE it first. Remember also that /SAVE overwrites the theme file with +# old data so keep backups :) + +# TEMPLATES: + +# The real text formats that irssi uses are the ones you can find with +# /FORMAT command. Back in the old days all the colors and texts were mixed +# up in those formats, and it was really hard to change the colors since you +# might have had to change them in tens of different places. So, then came +# this templating system. + +# Now the /FORMATs don't have any colors in them, and they also have very +# little other styling. Most of the stuff you need to change is in this +# theme file. If you can't change something here, you can always go back +# to change the /FORMATs directly, they're also saved in these .theme files. + +# So .. the templates. They're those {blahblah} parts you see all over the +# /FORMATs and here. Their usage is simply {name parameter1 parameter2}. +# When irssi sees this kind of text, it goes to find "name" from abstracts +# block below and sets "parameter1" into $0 and "parameter2" into $1 (you +# can have more parameters of course). Templates can have subtemplates. +# Here's a small example: +# /FORMAT format hello {colorify {underline world}} +# abstracts = { colorify = "%W$0-%n"; underline = "%U$0-%U"; } +# When irssi expands the templates in "format", the final string would be: +# hello %W%Uworld%U%n +# ie. underlined bright green "world" text. +# and why "$0-", why not "$0"? $0 would only mean the first parameter, +# $0- means all the parameters. With {underline hello world} you'd really +# want to underline both of the words, not just the hello (and world would +# actually be removed entirely). + +# COLORS: + +# You can find definitions for the color format codes in docs/formats.txt. + +# There's one difference here though. %n format. Normally it means the +# default color of the terminal (white mostly), but here it means the +# "reset color back to the one it was in higher template". For example +# if there was /FORMAT test %w{foo}bar, and foo = "%W$0%n", irssi would +# print yellow "foo" (as set with %W) but "bar" would be green, which was +# set at the beginning before the {foo} template. If there wasn't the %w +# at start, the normal behaviour of %n would occur. If you _really_ want +# to use the terminal's default color, use %N. +# }}} + +############################################################################# + +# +# +# default foreground color (%N) - -1 is the "default terminal color" +default_color = "-1"; + +# print timestamp/servertag at the end of line, not at beginning +info_eol = "true"; + +# these characters are automatically replaced with specified color +# (dark grey by default) +replaces = { "[]" = "%w$*%n"; }; + +abstracts = { + # {{{ + + ############# generic ############################### + + indent_default = "0"; + + # text to insert at the beginning of each non-message line + # line_start = "%w//%n "; + line_start = ""; + + # timestamp styling, nothing by default + timestamp = "%K -- $0%n"; + + # any kind of text that needs hilighting, default is to bold + hilight = "%_$*%_"; + + # any kind of error message, default is bright red + error = "%K$*%n"; + + # channel name is printed + channel = "%N$*%n"; + + # nick is printed + nick = "%_$*%_"; + + # nick host is printed + nickhost = "$*"; + + # server name is printed + server = "%K$*%N"; + + # some kind of comment is printed + comment = "%n(%K$*%n)"; + + # reason for something is printed (part, quit, kick, ..) + reason = "{comment $*}"; + + # mode change is printed ([+o nick]) + mode = "{comment $*}"; + + ## channel specific messages + + # highlighted nick/host is printed (joins) + channick_hilight = "%K$*%N"; + chanhost_hilight = "{nickhost $*}"; + + # nick/host is printed (parts, quits, etc.) + channick = "$*"; + chanhost = "{nickhost $*}"; + + # highlighted channel name is printed + channelhilight = "%K$*%n"; + + # ban/ban exception/invite list mask is printed + ban = "$*"; + + ########### messages ################################# + + # the basic styling of how to print message, $0 = nick mode, $1 = nick + msgnick = "%W$0 %n%|"; + + # $0 = nick mode, $1 = nick + ownnick = "%W$*%n"; + + # public message in channel, $0 = nick mode, $1 = nick + pubnick = "%K$*%n"; + + # public highlighted message in channel + menick = "%K$*%n"; + + # channel name is printed with message + msgchannel = "%K $*%n"; + + # private message, $0 = nick, $1 = host + privmsg = "$0=%w\"$1-\"%n "; + + # private message from you, $0 = "msg", $1 = target nick + ownprivmsg = "$0=%K\"$1-\"%n "; + + ########## Actions (/ME stuff) ######################### + + # generic one that's used by most actions + action = " $* %|"; + + # own action, both private/public + ownaction = "{action $*}"; + + # own action with target, both private/public + ownaction_target = "{action $*}"; + + # private action sent by others + pvtaction = "{action $*}"; + pvtaction_query = "{action $*}"; + + # public action sent by others + pubaction = "{action $*}"; + + + ########## other IRC events ############################# + + # whois + whois = "%K whois $[-8]0 %n- $1"; + + # notices + ownnotice = "%NNote n =%K new%n $0 ($1-) "; + notice = "%K$*%n "; + pubnotice_channel = " %N($*)"; + pvtnotice_host = " %N($*)"; + servernotice = " %N($*)"; + + # CTCPs + ownctcp = "%NCTCP c =%K new%n $0 ($1-) "; + ctcp = "%N$*%n"; + + # wallops + wallop = "%K$*%n "; + wallop_nick = "%n$*"; + wallop_action = "%K * $*%n "; + + # netsplits + netsplit = "%K split - \"$*\"%n"; + netjoin = "%K split + \"$*\"%n"; + + # /names list + names_users = "%K nicknames list ────"; + names_nick = "%_$2$0%_%n$1- "; + names_nick_op = "{names_nick $*%K }"; + names_nick_halfop = "{names_nick $* %W}"; + names_nick_voice = "{names_nick $*%K }"; + names_prefix = "%K names %n$1"; + names_channel = "\"%w$*\"%n"; + + # /whois command + + # DCC + dcc = "%w$*%n"; + dccfile = "%_$*%_"; + + # DCC chat, own msg/action + dccownmsg = "%K /* $0 ($1-) */"; + dccownnick = "$*%n"; + dccownquerynick = "$*%n"; + dccownaction = "{a┌tion $*}"; + dccownaction_target = "{action $*}"; + + # DCC chat, others + dccmsg = "%K/* $1- ($0) */"; + dccquerynick = "%K$*%n"; + dccaction = "{action $*}"; + + ######## statusbar/topicbar ############################ + + # default background for all statusbars. You can also give + # the default foreground color for statusbar items. + sb_background = "%n"; + + # default background for "default" statusbar group + sb_prompt_bg = "%n"; + + #prompt = "%K$Z %W> "; + #prompt = "%K └─ "; + prompt = "%W> %n"; + prompt_empty = "%W] %n"; + + sb = "$*"; + sbaway = "%K(%WzzZz%K) %n"; + sb_act_sep = " "; + sb_act_text = "%n$*"; + sb_act_msg = "%w/%K$*%n"; + sb_act_hilight = "%W+%K$*%n"; + sb_act_hilight_color = "%W+%K$1-%n"; +}; +# }}} + +######################################################## + +formats = { + # {{{ + "fe-common/core" = { + # {{{ + line_start = "{line_start}"; + line_start_irssi = "{line_start}"; + join = "%K + {channick $0}: {nickhost $1}"; + part = "%K - {channick $0}: {reason $3}"; + quit = "%K - {channick $0}: {reason $2}"; + kick = "%K < {channick $0}: {reason $3}"; + nick_changed = "%K : {channick $0} > {channick $1}"; + your_nick_changed = "%K : {channick $0} > {channick $1}"; + pubmsg = "{msgnick $[-8]0}$1"; + own_msg = "{msgnick $[-8]0}$1"; + own_msg_channel = "{msgnick $[-8]0}{msgchannel $1}}$2"; + own_msg_private_query = " $1"; + + pubmsg_me = "{msgnick $[-8]0}%W$1"; + pubmsg_me_channel = "{msgnick $[-8]0}{msgchannel $1}}$2"; + + pubmsg_hilight = "{msgnick $[-8]1}%W$2"; + pubmsg_hilight_channel = "{msgnick $[-8]1}%W$4{msgchannel $2}$3"; + + pubmsg_channel = "{msgnick $[-8]0}$1"; + msg_private_query = "%W> $2"; + new_topic = "{msgnick $[-8]1}%Ktopic '$2' -- $0"; + endofnames = "%K end of nick list ──"; + }; + # }}} + "fe-common/irc" = { + # {{{ + chanmode_change = "%K : {channick $1}"; + server_chanmode_change = "%K : {channick $1}"; + whois = "%K who is $0 ? ─────"; + end_of_whois = "%K end of whois ─────"; + own_action = "{action %W$0}$1"; + action_private = "{action %W$0}$1"; + action_private_query = "{action %W$0}$2"; + action_public = "{action %W$0}$1"; + topic = "{msgnick%K $[-8]0}topic '$*'"; + topic_info = "{msgnick%K $[-8]C}set by $0 ($1)"; + }; + # }}} +}; +# }}} + diff --git a/.irssi/neongold.theme b/.irssi/neongold.theme @@ -0,0 +1,206 @@ +# +# ███████ █████ ██████ ███████ +# ░░██░░░██ ██░░░██ ██░░░░██░░██░░░██ +# ░██ ░██░███████░██ ░██ ░██ ░██ +# ░██ ░██░██░░░░ ░██ ░██ ░██ ░██ +# ███ ░██░░██████░░██████ ███ ░██ +# ░░░ ░░ ░░░░░░ ░░░░░░ ░░░ ░░ +# +# ██ ██ +# ░██ ░██ +# █████ ██████ ░██ ░██ +# ██░░░██ ██░░░░██ ░██ ██████ +# ░██ ░██░██ ░██ ░██ ██░░░██ +# ░░██████░██ ░██ ░██░██ ░██ +# ░░░░░██░░██████ ███░░██████ +# █████ ░░░░░░ ░░░ ░░░░░░ +# ░░░░░ +# +# ▓▓▓▓▓▓▓▓▓▓ +# ░▓ author ▓ xero <[email protected]> +# ░▓ code ▓ http://code.xero.nu/dotfiles +# ░▓ mirror ▓ http://git.io/.files +# ░▓▓▓▓▓▓▓▓▓▓ +# ░░░░░░░░░░ +# +default_color = "-1"; + +info_eol = "false"; + +replaces = { "[]" = "%w$*%n"; }; + +abstracts = { + + indent_default = " + %Y│%n "; + line_start = ""; + timestamp = ""; + hilight = "%_$*%_"; + error = "%r$*%n"; + channel = "%w$*%n"; + nick = "%_$*%_"; + nickhost = "%g$*"; + server = "%_$*%_"; + comment = "%n(%w$*%n)"; + reason = "{comment $*}"; + mode = "{comment $*}"; + + channick_hilight = "%g$*%N"; + chanhost_hilight = "{nickhost $*}"; + + channick = "$*"; + chanhost = "{nickhost $*}"; + + channelhilight = "%g$*%n"; + + ban = "$*"; + + msgnick = "%Y$0%w$1 %Y│ %N"; + ownmsgnick = "%Y$0%w$1 %Y│ "; + ownnick = "%W$*%n"; + pubnick = "%N$*%n"; + menick = "%y$*%y"; + + # generic one that's used by most actions + action = "%b$* %Y│%b"; + + # own action, both private/public + ownaction = "%b$* %Y│%b"; + + # own action with target, both private/public + ownaction_target = "{action $*}"; + + # private action sent by others + pvtaction = "{action $*}"; + pvtaction_query = "{action $*}"; + + # public action sent by others + pubaction = "{action $*}"; + + whois = "%w │ %n$1-"; + + ownnotice = "%NNote n = %Mnew%n $0 ($1-) "; + notice = "%M$*%n "; + pubnotice_channel = " %N($*)"; + pvtnotice_host = " %N($*)"; + servernotice = " %N($*)"; + + ownctcp = "%N$0 (%w$1-%N) "; + ctcp = "%N$*%n"; + + wallop = "%w$*%n: "; + wallop_nick = "%n$*"; + wallop_action = "%w * $*%n "; + + #netsplit = "%w$*%n"; + #netjoin = "%w$*%n"; + + names_users = "%Y┌─┄┄─┄┄──┘ %nusers in %b$1"; + names_nick = "$2$0%n$1 "; + names_nick_op = "{names_nick $* %w}"; + names_nick_halfop = "{names_nick $* %w}"; + names_nick_voice = "{names_nick $* %w}"; + names_prefix = "%Y│ %n$1"; + names_channel = "%W$*%n"; + + dcc = "%g$*%n"; + dccfile = "%_$*%_"; + + dccownmsg = "%g /* $0 ($1-) */"; + dccownnick = "$*%n"; + dccownquerynick = "$*%n"; + dccownaction = "{action $*}"; + dccownaction_target = "{action $*}"; + + dccmsg = "%g/* $1- ($0) */"; + dccquerynick = "%g$*%n"; + dccaction = "{action $*}"; + + sb_background = "%N%N"; + + sb_prompt_bg = "%n"; + + sbstart = " %Y┌─┄┄─────┘ %w"; + sbend = ""; + + topicsbstart = "%w$C %Y┄─┄$*"; + topicsbend = "$*"; + + prompt = " %Y└──┄┄%n "; + + sb = "%N$*%N "; + #sb = ""; + sbmode = "%b(%w+%N$*%b)%n"; + sbaway = "%b(%Naway%b)%N"; + sbservertag = "%b:%N$0%b(%N^X%b)"; + #sbservertag = ""; + sbnickmode = "%w$0%N$1"; + + #sb_usercount = "{sb %_$0%_ nicks ($1-)}"; + #sb_uc_ircops = "%_*%_$*"; + #sb_uc_ops = "%_@%r$*%n"; + #sb_uc_halfops = "%_%%%g$*%n"; + #sb_uc_voices = "%_+%y$*%n"; + #sb_uc_normal = "%w$*%n"; + #sb_uc_space = " "; + + #sb_act_sep = "%b$*"; + #sb_act_text = "%N$*"; + #sb_act_msg = "%b$*"; + #sb_act_hilight = "%R%9$*%n"; + #sb_act_hilight_color = "%R%9$1-%n"; +}; + +formats = { + "fe-common/core" = { + #line_start = "{line_start}"; + line_start_irssi = "{line_start}"; + join = "%n join %Y┄┄─┤ %n{channick $0} %w(%n{nickhost %w$1}%w)%n joined %w$2"; + part = "%n part %Y┄┄─┤ %n{channick $0} %w(%n{nickhost %w$1}%w)%n left %w$2 {reason %b$3}"; + quit = "%n quit %Y┄┄─┤ %nsignoff%w: %n{channick $0}%w {reason %b$2}"; + kick = "%r kick %Y┄┄─┤ %n{channick $0} was kicked by $2 %w{reason %b$3}"; + nick_changed = " %Y┄┼┄%w %n{channick $0} %Y>> %W{channick $1}"; + your_nick_changed = " %Y┄┼┄%w %n{channick $0} %Y>> %W{channick $1}"; + new_topic = "%Y┌─┄┄─────┘%n\n%Y│ %wtopic %b'$2' %Nset by%b $0\n%Y└─┄┄─┄┄──┐ "; + endofnames = "%Y└─┄┄─┄┄──┐ %btotal: {hilight $2} ops, {hilight $3} halfops, {hilight $4} voices, {hilight $5} normies%n"; + #nick padding + pubmsg = "{pubmsgnick $2 {pubnick \00312$[-7]0}}$1"; + own_msg = "{ownmsgnick $2 {ownnick $[-7]0}}$1"; + own_msg_channel = "{ownmsgnick $3 {ownnick $[-7]0}{msgchannel $1}}$2"; + own_msg_private_query = "{ownprivmsgnick {ownprivnick $[-7]2}}$1"; + pubmsg_me = "{pubmsghinick $[-7]0 {menick $2}}%y$1"; + pubmsg_me_channel = "{pubmsghinick $3 {menick $[-7]0}{msgchannel $1}}$2"; + pubmsg_hilight_channel = "{pubmsghinick $0 $[-7]1$4{msgchannel $2}}$3"; + pubmsg_hilight = "{pubmsghinick $3 {menick $[-7]1}}$2"; + pubmsg_channel = "{pubmsgnick {pubnick %G$[-7]0}$2}$1"; + msg_private_query = "{privmsgnick $[-7]0}$2"; + }; + "fe-common/irc" = { + chanmode_change = "%n mode %Y┄┄─┤ %w(%B{channick $1}%w) %nby %B$2"; + server_chanmode_change = "%n mode %Y┄┄─┤ %w{channick $1} %n(%w$2%n)"; + whois = "%Y┌─┄┄ %n\012%Y│ %wuser %b$0 %w(%n$1%b@%n$2%w) %n\012%Y│ %wname %n$3%n"; + whois_idle = "%Y│ %widle%b %|$1d $2h $3m $4s"; + whois_idle_signon = "%Y│ %widle%b %|$1d $2h $3m $4s {comment signon: $5}"; + whois_server = "%Y│ %wserv%b %|$1 {comment $2}"; + whois_oper = "%Y│ %woper%b {hilight $1}"; + whois_registered = "%Y│ %wrgis%n yes"; + whois_help = "%Y│ %whelp%b available for help"; + whois_modes = "%Y│ %wmode%b $1"; + whois_realhost = "%Y│ %wreal%b $1-"; + whois_usermode = "%Y│ %wumod%b $1"; + whois_channels = "%Y│ %wchan%b %|$1"; + whois_away = "%Y│ %waway%b %|$1"; + whois_special = "%Y│ %winfo%b {comment %|$1}"; + whois_extra = "%Y│ %wextr%b %|$1"; + end_of_whois = "%Y└─┄┄ "; + whois_not_found = "%Y──┄┄ %wthere is no such nick %b$0"; + topic = "%ntopic %Y┄┄─┤ %B$0 %b$1"; + topic_info = " %Y┄┄─┤ %wset by %b$0 %B(%w$1%B)"; + channel_synced = "%n sync %Y┄┄─┤ %nin {hilight $1} secs"; + channel_created = "%n %Y┄┄─┤ %ncreated $1"; + action_core = "%b$[-8]0 %Y│ %b$1"; + own_action = "{ownaction $[-8]0} $1"; + action_private = "{pvtaction $[-8]0}$1"; + action_private_query = "{pvtaction_query $[-8} $2"; + action_public = "{pubaction $[-8]0}$1"; + }; +}; diff --git a/.irssi/z3bra.theme b/.irssi/z3bra.theme @@ -0,0 +1,133 @@ +#{{{ +# +# When testing changes, the easiest way to reload the theme is with /RELOAD. +# This reloads the configuration file too, so if you did any changes remember +# to /SAVE it first. Remember also that /SAVE overwrites the theme file with +# old data so keep backups :) + +# TEMPLATES: + +# The real text formats that irssi uses are the ones you can find with +# /FORMAT command. Back in the old days all the colors and texts were mixed +# up in those formats, and it was really hard to change the colors since you +# might have had to change them in tens of different places. So, then came +# this templating system. + +# Now the /FORMATs don't have any colors in them, and they also have very +# little other styling. Most of the stuff you need to change is in this +# theme file. If you can't change something here, you can always go back +# to change the /FORMATs directly, they're also saved in these .theme files. + +# So .. the templates. They're those {blahblah} parts you see all over the +# /FORMATs and here. Their usage is simply {name parameter1 parameter2}. +# When irssi sees this kind of text, it goes to find "name" from abstracts +# block below and sets "parameter1" into $0 and "parameter2" into $1 (you +# can have more parameters of course). Templates can have subtemplates. +# Here's a small example: +# /FORMAT format hello {colorify {underline world}} +# abstracts = { colorify = "%G$0-%n"; underline = "%U$0-%U"; } +# When irssi expands the templates in "format", the final string would be: +# hello %G%Uworld%U%n +# ie. underlined bright green "world" text. +# and why "$0-", why not "$0"? $0 would only mean the first parameter, +# $0- means all the parameters. With {underline hello world} you'd really +# want to underline both of the words, not just the hello (and world would +# actually be removed entirely). + +# COLORS: + +# You can find definitions for the color format codes in docs/formats.txt. + +# There's one difference here though. %n format. Normally it means the +# default color of the terminal (white mostly), but here it means the +# "reset color back to the one it was in higher template". For example +# if there was /FORMAT test %g{foo}bar, and foo = "%Y$0%n", irssi would +# print yellow "foo" (as set with %Y) but "bar" would be green, which was +# set at the beginning before the {foo} template. If there wasn't the %g +# at start, the normal behaviour of %n would occur. If you _really_ want +# to use the terminal's default color, use %N. +# }}} + +############################################################################# + +# +# +# default foreground color (%N) - -1 is the "default terminal color" +default_color = "-1"; + +# print timestamp/servertag at the end of line, not at beginning +info_eol = "true"; + +# these characters are automatically replaced with specified color +# (dark grey by default) +replaces = { "[]" = "%y$*%n"; }; + +abstracts = { + # timestamp styling, nothing by default + timestamp = " %K-- $0%n"; + + # /names list + names_users = ""; + names_nick = "%_$2$0%_%n$1- "; + names_nick_op = "%W$2$0%n$1"; + names_nick_halfop = "{names_nick $* %C}"; + names_nick_voice = "{names_nick $* %K}"; + names_channel = "\"%b$*\"%n"; + + # default background for all statusbars. You can also give + # the default foreground color for statusbar items. + sb_background = "%n"; + + # default background for "default" statusbar group + sb_prompt_bg = "%n"; + + prompt = "%W> %n"; + prompt_empty = "%W] %n"; + + sb = "%K$*"; + sb_act_sep = "\\ "; + sb_act_text = "$*"; + sb_act_msg = "%w$*%n"; + sb_act_hilight = "%C$*%n"; + sb_act_hilight_color = "%C$1-%n"; +}; + +formats = { + "fe-common/core" = { + line_start = ""; + line_start_irssi = ""; + join = "+ $0 - $1"; + part = "- PART: $0 ($3)"; + quit = "- QUIT: $0 ($2)"; + kick = "! KICK: $0 ($3)"; + nick_changed = ">$0 > $1"; + your_nick_changed = ">$0 > $1"; + pubmsg = "<$0> $1"; + own_msg = "<$0> $1"; + own_msg_channel = "<$0> $1 $2"; + + own_msg_private_query = "you> $1"; + msg_private_query = "%W$0%n> $2"; + + pubmsg_me = "%B<$0> $1"; + pubmsg_me_channel = "%B<$0> $1 %K($2)"; + + pubmsg_hilight = "%B<$1> $2"; + pubmsg_channel = "%B<$0> $1"; + + new_topic = "topic: $2"; + endofnames = ""; + }; + "fe-common/irc" = { + chanmode_change = "%K$0 : $1"; + server_chanmode_change = "%K$0 : $1"; + whois = "WHOIS $0"; + end_of_whois = "end of WHOIS"; + own_action = "%R$0 $1"; + action_private = "%R$0 $1"; + action_private_query = "%R$0 $2"; + action_public = "%R$0 $1"; + topic = "$*"; + topic_info = "by $0 ($1)"; + }; +}; diff --git a/.pentadactylrc b/.pentadactylrc @@ -1,17 +1,16 @@ " " author: Xu Xiaodong <[email protected]> -" modified: 2016 May 05 +" modified: 2016 May 13 " "-- look --" set guioptions=Cns -"set showtabline=never set showstatuslinks=command set hintkeys=asdfg;lkjh colorscheme solarized-dark -highlight Hint font-family: input; font-size: 16px; background-color: white; padding: 2px; +highlight Hint font-family: 'source code pro'; font-size: 14px; background-color: white; padding: 2px; "-- search --" @@ -23,4 +22,4 @@ set editor='urxvtc -e vim' "-- passthrough --" -autocmd LocationChange mail.google.com :normal! <C-z> +autocmd LocationChange mail.google.com|feedly.com :normal! <C-z> diff --git a/.xinitrc b/.xinitrc @@ -1,11 +1,11 @@ #!/bin/sh # # author : Xu Xiaodong <[email protected]> -# modified : 2016 May 08 +# modified : 2016 May 25 # #-- font --# -xset +fp /usr/share/fonts/ohsnap +xset +fp /usr/share/fonts/local xset fp rehash #-- powersave --# @@ -19,13 +19,14 @@ export QT_IM_MODULE=xim fcitx & #-- app --# -xmodmap ~/.xmodmaprc & # swap Caps_Lock and Control_L -compton -cGb # add fancy shadows -unclutter -idle 5 & # hide mouse cursor -syndaemon -t -k -i 2 -d & # disable trackpad while typing -urxvtd -q -f -o # urxvt daemon -hsetroot -fill ~/picture/black.jpg & # set wallpaper -urxvtc -geometry 134x40 -e sh -c "tmuxen" & # start tmux +xmodmap ~/.xmodmaprc & # swap Caps_Lock and Control_L +compton -cGb # add fancy shadows +unclutter -idle 5 & # hide mouse cursor +syndaemon -t -k -i 2 -d & # disable trackpad while typing +urxvtd -q -f -o # urxvt daemon +hsetroot -fill ~/picture/soft-and-clean.png & # set wallpaper +urxvtc -geometry 134x36 -e sh -c "tmuxen" & # start tmux +yabar & # start bar #-- wm --# exec 2bwm diff --git a/rofi.conf b/rofi.conf @@ -0,0 +1,210 @@ +! Enabled modi +rofi.modi: window,run,ssh +! Window opacity +rofi.opacity: 100 +! Window width +rofi.width: 30 +! Number of lines +rofi.lines: 10 +! Number of columns +rofi.columns: 1 +! Font to use +rofi.font: source code pro 12 +! Color scheme for normal row +rofi.color-normal: #101010,#686868,#101010,#747474,#101010 +! Color scheme for urgent row +rofi.color-urgent: #101010,#a0a0a0,#101010,#a0a0a0,#101010 +! Color scheme for active row +rofi.color-active: #101010,#686868,#101010,#686868,#101010 +! Color scheme window +rofi.color-window: #101010,#101010 +! Border width +rofi.bw: 3 +! Location on screen +rofi.location: 0 +! Padding +rofi.padding: 5 +! Y-offset relative to location +rofi.yoffset: 0 +! X-offset relative to location +rofi.xoffset: 0 +! Always show number of lines +rofi.fixed-num-lines: false +! Terminal to use +rofi.terminal: rofi-sensible-terminal +! Ssh client to use +rofi.ssh-client: ssh +! Ssh command to execute +rofi.ssh-command: {terminal} -e {ssh-client} {host} +! Run command to execute +rofi.run-command: {cmd} +! Command to get extra run targets +rofi.run-list-command: +! Run command to execute that runs in shell +rofi.run-shell-command: {terminal} -e {cmd} +! Disable history in run/ssh +rofi.disable-history: false +! Use levenshtein sorting +rofi.levenshtein-sort: false +! Set case-sensitivity +rofi.case-sensitive: false +! Enable sidebar-mode +rofi.sidebar-mode: false +! Row height (in chars) +rofi.eh: 1 +! Enable auto select mode +rofi.auto-select: false +! Parse hosts file for ssh mode +rofi.parse-hosts: false +! Parse known_hosts file for ssh mode +rofi.parse-known-hosts: true +! Set the modi to combine in combi mode +rofi.combi-modi: window,run +! Do a more fuzzy matching +rofi.fuzzy: false +! Use glob matching +rofi.glob: false +! Use regex matching +rofi.regex: false +! Tokenize input string +rofi.tokenize: true +! Monitor id to show on +rofi.m: -1 +! Margin between rows +rofi.line-margin: 2 +! Pre-set filter +rofi.filter: +! Separator style (none, dash, solid) +rofi.separator-style: none +! Hide scroll-bar +rofi.hide-scrollbar: true +! Fullscreen +rofi.fullscreen: false +! Fake transparency +rofi.fake-transparency: false +! DPI +rofi.dpi: -1 +! Threads to use for string matching +rofi.threads: 1 +! Scrollbar width +rofi.scrollbar-width: 8 +! Scrolling method. (0: Page, 1: Centered) +rofi.scroll-method: 0 +! Background to use for fake transparency. (background or screenshot) +rofi.fake-background: screenshot +! Pidfile location +rofi.pid: /run/user/1000/rofi.pid +! Keybinding +rofi.kb-primary-paste: Control+Shift+v,Shift+Insert +! Keybinding +rofi.kb-secondary-paste: Control+v,Insert +! Keybinding +rofi.kb-clear-line: Control+u +! Keybinding +rofi.kb-move-front: Control+a +! Keybinding +rofi.kb-move-end: Control+e +! Keybinding +rofi.kb-move-word-back: Alt+b +! Keybinding +rofi.kb-move-word-forward: Alt+f +! Keybinding +rofi.kb-move-char-back: Left,Control+b +! Keybinding +rofi.kb-move-char-forward: Right,Control+f +! Keybinding +rofi.kb-remove-word-back: Control+Alt+h +! Keybinding +rofi.kb-remove-word-forward: Control+Alt+d +! Keybinding +rofi.kb-remove-char-forward: Delete,Control+d +! Keybinding +rofi.kb-remove-char-back: BackSpace,Control+h +! Keybinding +rofi.kb-accept-entry: Control+j,Control+m,Return,KP_Enter +! Keybinding +rofi.kb-accept-custom: Control+Return,Shift+Return +! Keybinding +rofi.kb-mode-next: Shift+Right,Control+Tab +! Keybinding +rofi.kb-mode-previous: Shift+Left,Control+Shift+Tab +! Keybinding +rofi.kb-toggle-case-sensitivity: grave,dead_grave +! Keybinding +rofi.kb-delete-entry: Shift+Delete +! Keybinding +rofi.kb-row-left: Control+Page_Up +! Keybinding +rofi.kb-row-right: Control+Page_Down +! Keybinding +rofi.kb-row-up: Up,Control+p,Shift+Tab,Shift+ISO_Left_Tab +! Keybinding +rofi.kb-row-down: Down,Control+n +! Keybinding +rofi.kb-row-tab: Tab +! Keybinding +rofi.kb-page-prev: Page_Up +! Keybinding +rofi.kb-page-next: Page_Down +! Keybinding +rofi.kb-row-first: Home,KP_Home +! Keybinding +rofi.kb-row-last: End,KP_End +! Keybinding +rofi.kb-row-select: Control+space +! Keybinding +rofi.kb-cancel: Escape,Control+bracketleft +! Keybinding +rofi.kb-custom-1: Alt+1 +! Keybinding +rofi.kb-custom-2: Alt+2 +! Keybinding +rofi.kb-custom-3: Alt+3 +! Keybinding +rofi.kb-custom-4: Alt+4 +! Keybinding +rofi.kb-custom-5: Alt+5 +! Keybinding +rofi.kb-custom-6: Alt+6 +! Keybinding +rofi.kb-custom-7: Alt+7 +! Keybinding +rofi.kb-custom-8: Alt+8 +! Keybinding +rofi.kb-custom-9: Alt+9 +! Keybinding +rofi.kb-custom-10: Alt+0 +! Keybinding +rofi.kb-custom-11: Alt+Shift+1 +! Keybinding +rofi.kb-custom-12: Alt+Shift+2 +! Keybinding +rofi.kb-custom-13: Alt+Shift+3 +! Keybinding +rofi.kb-custom-14: Alt+Shift+4 +! Keybinding +rofi.kb-custom-15: Alt+Shift+5 +! Keybinding +rofi.kb-custom-16: Alt+Shift+6 +! Keybinding +rofi.kb-custom-18: Alt+Shift+8 +! Keybinding +rofi.kb-custom-17: Alt+Shift+7 +! Keybinding +rofi.kb-custom-19: Alt+Shift+9 +! Keybinding +rofi.kb-screenshot: Alt+Shift+S +! Keybinding +rofi.kb-toggle-sort: Alt+grave +! The display name of this browser +rofi.display-ssh: (ssh) +! The display name of this browser +rofi.display-run: (run) +! The display name of this browser +rofi.display-drun: (drun) +! The display name of this browser +rofi.display-window: (window) +! The display name of this browser +rofi.display-windowcd: (windowcd) +! The display name of this browser +rofi.display-combi: (combi) diff --git a/settings.ini b/settings.ini @@ -0,0 +1,29 @@ +# +# author: Xu Xiaodong <[email protected]> +# modified: 2016 May 12 +# + +[Settings] +#-- xft --# +gtk-xft-antialias = 1 +gtk-xft-hinting = 1 +gtk-xft-hintstyle = hintslight +gtk-xft-rgba = rgb + +#-- theme --# +gtk-icon-theme-name = Adwaita +gtk-theme-name = Arc-Dark + +#-- font --# +gtk-font-name = Aller 12 + +#-- toolbar --# +gtk-toolbar-style = GTK_TOOLBAR_ICONS +gtk-toolbar-icon-size = GTK_ICON_SIZE_SMALL_TOOLBAR + +#-- misc --# +gtk-button-images = 0 +gtk-menu-images = 0 +gtk-menu-popup-delay = 0 +gtk-primary-button-warps-slider = false +gtk-application-prefer-dark-theme = true diff --git a/yabar.conf b/yabar.conf @@ -0,0 +1,42 @@ +bar-list = ["topbar"]; +topbar:{ + font: "Source Code Pro, FontAwesome Bold 12"; + block-list: ["workspace", "battery", "ya_date"]; + position: "top"; + gap-horizontal: 1560; + gap-vertical: 20; + width: 320; + height: 40; + background-color-argb: 0x0; + underline-size: 2; + overline-size: 0; + slack-size: 2; + workspace:{ + exec: "2bwm-ws.sh"; + align: "center"; + fixed-size: 40; + type: "periodic"; + interval: 2; + foreground-color-rgb:0x747474; + underline-color-rgb:0x747474; + } + battery:{ + exec: "2bwm-batter.sh"; + align: "center"; + fixed-size: 80; + type: "periodic"; + interval: 60; + foreground-color-rgb:0xa0a0a0; + underline-color-rgb:0xa0a0a0; + } + ya_date:{ + exec: "YABAR_DATE"; + align: "center"; + fixed-size: 200; + interval: 1; + foreground-color-rgb:0x8e8e8e; + underline-color-rgb:0x8e8e8e; + internal-prefix: " "; + internal-option1: "%a %d %b %I:%M"; + } +}