dotfiles

dot files in ~
git clone git://git.unixkoans.com/dotfiles.git
Log | Files | Refs

commit c16d1ca560fd0011982ea449e77b5d9f5816d20c
parent cebde7a1f983d5f60528096fb0d27a857f64beee
Author: Xiaodong Xu <xxdlhy@gmail.com>
Date:   Mon Jul 11 21:38:41 +0800

Add new configs

Diffstat:
.Xdefaults | 8+++++---
.Xdefaults.d/colors/gruvbox_dark | 39+++++++++++++++++++++++++++++++++++++++
.Xdefaults.d/colors/gruvbox_urxvt256 | 38++++++++++++++++++++++++++++++++++++++
.bashrc | 7+++----
.gtkrc.mine | 8++++----
.irssi/crshd.theme | 292+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.irssi/scripts/autorun/splitlong.pl | 60++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.pentadactyl/colors/gruvbox-dark.penta | 198+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.pentadactyl/colors/gruvbox-light.penta | 198+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.pentadactylrc | 6++++--
.xinitrc | 26++++++++++++++++----------
.zathurarc | 3+--
rofi.conf | 8++++----
settings.ini | 4++--
sxhkdrc | 32++++++++++++++++++++++++++++----
yabar.conf | 31+++++++++++++++++--------------
16 files changed, 909 insertions(+), 49 deletions(-)
diff --git a/.Xdefaults b/.Xdefaults @@ -1,10 +1,11 @@ ! ! author : Xu Xiaodong <xxdlhy@gmail.com> -! modified : 2016 May 13 +! modified : 2016 Jul 05 ! !-- colorscheme & font --! -#include ".Xdefaults.d/colors/smokey" +#include ".Xdefaults.d/colors/gruvbox_urxvt256" +#include ".Xdefaults.d/colors/gruvbox_dark" #include ".Xdefaults.d/fonts/sourcecodepro_noto" !-- xft --! @@ -37,10 +38,11 @@ URxvt.intensityStyles: false URxvt.fading : 20 URxvt.externalBorder : 0 URxvt.internalBorder : 0 +!URxvt.letterSpace : -1 !-- urxvt extension --! URxvt.perl-lib : /usr/lib/urxvt/perl/ URxvt.perl-ext-common : default,matcher URxvt.matcher.button : 1 URxvt.matcher.pattern.1 : \\bwww\\.[\\w-]+\\.[\\w./?&@#-]*[\\w/-] -URxvt.urlLauncher : dwb +URxvt.url-launcher : firefox diff --git a/.Xdefaults.d/colors/gruvbox_dark b/.Xdefaults.d/colors/gruvbox_dark @@ -0,0 +1,39 @@ +! gruvbox dark +! see also: https://github.com/morhetz/gruvbox + +! special +*.foreground: #ebdbb2 +*.background: #282828 +*.cursorColor: #ebdbb2 + +! black +*color0: #282828 +*color8: #928374 + +! red +*color1: #cc241d +*color9: #fb4934 + +! green +*color2: #98971a +*color10: #b8bb26 + +! yellow +*color3: #d79921 +*color11: #fabd2f + +! blue +*color4: #458588 +*color12: #83a598 + +! magenta +*color5: #b16286 +*color13: #d3869b + +! cyan +*color6: #689d6a +*color14: #8ec07c + +! white +*color7: #a89984 +*color15: #ebdbb2 diff --git a/.Xdefaults.d/colors/gruvbox_urxvt256 b/.Xdefaults.d/colors/gruvbox_urxvt256 @@ -0,0 +1,38 @@ +! ----------------------------------------------------------------------------- +! File: gruvbox-urxvt256.xresources +! Description: Retro groove colorscheme generalized +! Author: morhetz <morhetz@gmail.com> +! Source: https://github.com/morhetz/gruvbox-generalized +! Last Modified: 13 Dec 2013 +! ----------------------------------------------------------------------------- + +URxvt.color24: #076678 +URxvt.color66: #427b58 +URxvt.color88: #9d0006 +URxvt.color96: #8f3f71 +URxvt.color100: #79740e +URxvt.color108: #8ec07c +URxvt.color109: #83a598 +URxvt.color130: #af3a03 +URxvt.color136: #b57614 +URxvt.color142: #b8bb26 +URxvt.color167: #fb4934 +URxvt.color175: #d3869b +URxvt.color208: #fe8019 +URxvt.color214: #fabd2f +URxvt.color223: #ebdbb2 +URxvt.color228: #f2e5bc +URxvt.color229: #fbf1c7 +URxvt.color230: #f9f5d7 +URxvt.color234: #1d2021 +URxvt.color235: #282828 +URxvt.color236: #32302f +URxvt.color237: #3c3836 +URxvt.color239: #504945 +URxvt.color241: #665c54 +URxvt.color243: #7c6f64 +URxvt.color244: #928374 +URxvt.color245: #928374 +URxvt.color246: #a89984 +URxvt.color248: #bdae93 +URxvt.color250: #d5c4a1 diff --git a/.bashrc b/.bashrc @@ -1,6 +1,6 @@ # -# author: Xu Xiaodong <xxdlhy@gmail.com> -# modified: 2015 May 09 +# author : Xu Xiaodong <xxdlhy@gmail.com> +# modified : 2016 Jul 09 # # prompt @@ -23,8 +23,7 @@ boCyan="\[\033[1;36m\]" liWhite="\[\033[0;37m\]" boWhite="\[\033[1;37m\]" -#PS1="\n$boGreen┌─ \u$liWhite at $boBlue\h$liWhite in $boRed\w $liYellow{\[\`let exitstatus=\$? ; if [[ \${exitstatus} != 0 ]] ; then echo \"\${exitstatus}\" ; else echo "0" ; fi\`\]} \n$boGreen└╼ $liWhite" -PS1="\n$boYellow──── $liWhite" +PS1=" $liGreen\w $liYellow─╼ $liWhite" # alias if [ "$TERM" != "dumb" ]; then diff --git a/.gtkrc.mine b/.gtkrc.mine @@ -1,6 +1,6 @@ # # author: Xu Xiaodong <xxdlhy@gmail.com> -# modified: 2016 Jun 18 +# modified: 2016 Jul 02 # #-- xft --# @@ -10,15 +10,15 @@ gtk-xft-hintstyle = hintslight gtk-xft-rgba = rgb #-- gtk --# -include "/home/xiaodong/.themes/BlackWhite/gtk-2.0/gtkrc" +include "/home/xiaodong/.themes/Fawn/gtk-2.0/gtkrc" #-- icon --# gtk-icon-theme-name = "Arc" #-- font --# -gtk-font-name = "Aller 12" +gtk-font-name = "Roboto Condensed 12" style "user-font" { - font_name = "Aller 12" + font_name = "Roboto Condensed 12" } widget_class "*" style "user-font" diff --git a/.irssi/crshd.theme b/.irssi/crshd.theme @@ -0,0 +1,292 @@ +# +# twily mod of http://dotshare.it/dots/279/ by crshd +# + +# 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 = { "[]" = "%g$*%n"; }; + +abstracts = { + + ############# generic ############################### + + indent_default = " + "; + + # text to insert at the beginning of each non-message line + # line_start = "%g//%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 = "%R$*%n"; + + # channel name is printed + channel = "%g$*%n"; + + # nick is printed + nick = "%_$*%_"; + + # nick host is printed + nickhost = "%g$*"; + + # server name is printed + server = "%_$*%_"; + + # some kind of comment is printed + comment = "%n(%b\"$*\"%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 = "%g$*%N"; + chanhost_hilight = "{nickhost $*}"; + + # nick/host is printed (parts, quits, etc.) + channick = "$*"; + chanhost = "{nickhost $*}"; + + # highlighted channel name is printed + channelhilight = "%g$*%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 = "$1-$0%K·%N %|"; + #msgnick = "%b$0%N $1 %K %|%N"; + msgnick = "%N$1 %K %|%N"; + + # $0 = nick mode, $1 = nick + ownmsgnick = "{msgnick $0 $1}"; + ownnick = "%Y$*%n"; + + # public message in channel, $0 = nick mode, $1 = nick + pubmsgnick = "{msgnick $0 $1}"; + pubnick = "%N$*%n"; + + # public highlighted message in channel + pubmsghinick = "{msgnick $0 $1}%r"; + menick = "%R$*%n"; + + # channel name is printed with message + msgchannel = "%K:%m$*%n"; + + # private message, $0 = nick, $1 = host + privmsg = "$0=%b\"$1-\"%n "; + + # private message from you, $0 = "msg", $1 = target nick + ownprivmsg = "$0=%b\"$1-\"%n "; + + # private message in query + # privmsgnick = "{msgnick $*}"; + privmsgnick = "%g<%N %|"; + + # own private message in query + #ownprivmsgnick = "{privmsgnick $*}"; + ownprivmsgnick = "%r>%N %|"; + #ownprivnick = "$*"; + + + ########## Actions (/ME stuff) ######################### + + # generic one that's used by most actions + action = "%m$* %M* %m%|"; + + # own action, both private/public + # ownaction = "{action $*}"; + ownaction = "%m$* %M*%N%m"; + + # 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 = "%# $[8]0 = $1-;"; + + # notices + ownnotice = "%NNote n = %Mnew%n $0 ($1-) "; + notice = "%M$*%n "; + pubnotice_channel = " %N($*)"; + pvtnotice_host = " %N($*)"; + servernotice = " %N($*)"; + + # CTCPs + ownctcp = "%NCTCP c = %Mnew%n $0 ($1-) "; + ctcp = "%N$*%n"; + + # wallops + wallop = "%K$*%n: "; + wallop_nick = "%n$*"; + wallop_action = "%K * $*%n "; + + # netsplits + netsplit = "%R <%K%n %b\"$*\"%n"; + netjoin = "%G >%K%n %b\"$*\"%n"; + + # /names list + names_prefix = "%K !%n "; + names_nick = "%_$2$0%_%n$1- "; + names_nick_op = "{names_nick $* %b}"; + names_nick_halfop = "{names_nick $* %b}"; + names_nick_voice = "{names_nick $* %b}"; + names_users = "%K !%n $1"; + names_channel = "\"%b$*%n\""; + + # DCC + dcc = "%g$*%n"; + dccfile = "%_$*%_"; + + # DCC chat, own msg/action + dccownmsg = "%g /* $0 ($1-) */"; + dccownnick = "$*%n"; + dccownquerynick = "$*%n"; + dccownaction = "{action $*}"; + dccownaction_target = "{action $*}"; + + # DCC chat, others + dccmsg = "%g/* $1- ($0) */"; + dccquerynick = "%g$*%n"; + dccaction = "{action $*}"; + + ######## statusbar/topicbar ############################ + + # default background for all statusbars. You can also give + # the default foreground color for statusbar items. + sb_background = "%K%0"; + + # default backround for "default" statusbar group + #sb_default_bg = "%4"; + # background for prompt / input line + sb_prompt_bg = "%n"; + # background for info statusbar + #sb_info_bg = "%8"; + # background for topicbar (same default) + #sb_topic_bg = "%4"; + + # text at the beginning of statusbars. sb-item already puts + # space there,so we don't use anything by default. + sbstart = ""; + # text at the end of statusbars. Use space so that it's never + # used for anything. + sbend = ""; + + topicsbstart = "%BChannel: %b\"$*"; + topicsbend = "$*%b\""; + + #prompt = " %r$* »%n "; + prompt = ">%n "; + # prompt = " %K└╼ "; + + sb = "$* "; + #sbmode = " %K[%g%g+%n$*%K]"; + #sbmode = " %g%g+%n$*"; + sbmode = "%g"; + sbaway = " %g/* zZzZ */%n"; + sbservertag = ":%g$0%n"; + sbnickmode = "$0"; + + # Usercount + 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 = " "; + # activity in statusbar + + # ',' separator + sb_act_sep = " "; + # normal text + sb_act_text = "%K%9$*%n"; + # public message + sb_act_msg = "%Y%9$*%n"; + # hilight + sb_act_hilight = "%R%9$*%n"; + # hilight with specified color, $0 = color, $1 = text + sb_act_hilight_color = "%R%9$1-%n"; +}; + +######################################################## + +formats = { + "fe-common/core" = { + line_start = "{line_start}"; + line_start_irssi = "{line_start}"; + + #join = "%G > {channick $0}%K has joined."; + #part = "%R < {channick $0}%K has parted."; + #kick = "%R < {channick $0}%K was kicked."; + #quit = "%R < {channick $0}%K has quit."; + join = "{channick \00311$[-11]0} %G>%K has joined."; + part = "{channick \00311$[-11]0} %R<%K has parted."; + kick = "{channick \00311$[-11]0} %R<%K was kicked."; + quit = "{channick \00311$[-11]0} %R<%K has quit."; + quit_once = "{channel $3} {channick $0} {chanhost $1} %kquit {reason %C$2}"; + + nick_changed = "%Y ! {channick $0}%K is now known as %G{channick $1}%K."; + your_nick_changed = "%Y ! %Kyou are now known as %G{channick $1}%K."; + + pubmsg = "{pubmsgnick $2 {pubnick \00311$[-11]0}}$1"; + + own_msg = "{ownmsgnick $2 {ownnick $[-11]0}}$1"; + own_msg_channel = "{ownmsgnick $3 {ownnick $[-11]0}{msgchannel $1}}$2"; + own_msg_private_query = "{ownprivmsgnick {ownprivnick $[-11]2}}$1"; + + pubmsg_me = "{pubmsghinick $2 {menick $[-11]0}}$1"; + pubmsg_me_channel = "{pubmsghinick $3 {menick $[-11]0}{msgchannel $1}}$2"; + + pubmsg_hilight = "{pubmsghinick $3 {menick $[-11]1}}$2"; + pubmsg_hilight_channel = "{pubmsghinick $0 $[-11]1$4{msgchannel $2}}$3"; + + pubmsg_channel = "{pubmsgnick {pubnick %G$[-11]0}$2}$1"; + msg_private_query = "{privmsgnick $[-11]0}$2"; + new_topic = " %ctopic %Y= %|%B'$2' %non %b$1%n%K[set by {nick %y$0}]"; + + endofnames = "%K !%m Total: {hilight $2} ops, {hilight $3} halfops, {hilight $4} voices, {hilight $5} normal%n"; + }; + "fe-common/irc" = { + chanmode_change = "%Y ! {channick $1}"; + server_chanmode_change = "%Y ! {channick $1}"; + + own_action = "{ownaction $[-11]0} $1"; + action_private = "{pvtaction $[-11]0}$1"; + action_private_query = "{pvtaction_query $[-11]0} $2"; + action_public = "{pubaction $[-11]0}$1"; + #own_action = "%P {ownaction} $0 $1"; + #action_private = "%P {pvtaction} $0 $1"; + #action_private_query = "%P {pvtaction_query} $0 $1"; + #action_public = "%P {pubaction}$0 $1"; + }; + "Irssi::Script::ichat" = { ichat_timestamp = "%K $1 %Y>%n"; }; +}; + + diff --git a/.irssi/scripts/autorun/splitlong.pl b/.irssi/scripts/autorun/splitlong.pl @@ -0,0 +1,60 @@ +# /set splitlong_max_length +# specifies the maximum length of a msg, automatically chosen when set to "0" +# default: 0 +# +# /set splitlong_line_start +# /set splitlong_line_end +# self-explanatory +# defaults: "... ", " ..." +### +use strict; +use vars qw($VERSION %IRSSI); + +use Irssi 20011001; + +$VERSION = "0.20"; +%IRSSI = ( + authors => "Bjoern \'fuchs\' Krombholz", + contact => "bjkro\@gmx.de", + name => "splitlong", + license => "Public Domain", + description => "Split overlong PRIVMSGs to msgs with length allowed by ircd", + changed => "Wed Jun 25 00:17:00 CET 2003", + changes => "Actually the real 0.19 (now 0.20), but upload didn't work some month ago, target problem fixed..." +); + +sub sig_command_msg { + my ($cmd, $server, $winitem) = @_; + my ( $param, $target,$data) = $cmd =~ /^(-\S*\s)?(\S*)\s(.*)/; + + my $maxlength = Irssi::settings_get_int('splitlong_max_length'); + my $lstart = Irssi::settings_get_str('splitlong_line_start'); + my $lend = Irssi::settings_get_str('splitlong_line_end'); + + if ($maxlength == 0) { + # 497 = 510 - length(":" . "!" . " PRIVMSG " . " :"); + $maxlength = 497 - length($server->{nick} . $server->{userhost} . $target); + } + my $maxlength2 = $maxlength - length($lend); + + if (length($data) > ($maxlength)) { + my @spltarr; + + while (length($data) > ($maxlength2)) { + my $pos = rindex($data, " ", $maxlength2); + push @spltarr, substr($data, 0, ($pos < ($maxlength/10 + 4)) ? $maxlength2 : $pos) . $lend; + $data = $lstart . substr($data, ($pos < ($maxlength/10 + 4)) ? $maxlength2 : $pos+1); + } + + push @spltarr, $data; + foreach (@spltarr) { + Irssi::signal_emit("command msg", "$target $_", $server, $winitem); + } + Irssi::signal_stop(); + } +} + +Irssi::settings_add_int('misc', 'splitlong_max_length', 0); +Irssi::settings_add_str('misc', 'splitlong_line_start', "... "); +Irssi::settings_add_str('misc', 'splitlong_line_end', " ..."); +Irssi::command_bind('msg', 'sig_command_msg'); diff --git a/.pentadactyl/colors/gruvbox-dark.penta b/.pentadactyl/colors/gruvbox-dark.penta @@ -0,0 +1,198 @@ +" Gruvbox dark color scheme for Pentadactyl {{{1 +" ---------------------------------------------------------------------- +" +" Mantainer: rominf <infroma@gmail.com> +" Name: gruvbox-dark +" +" Reset the styles {{{1 +" ---------------------------------------------------------------------- +" This ensures they don't bleed over from other themes +hi clear + +" Gruvbox color mappings {{{1 +" ---------------------------------------------------------------------- +" This allows us to easily map the colors by name + +" Foreground colors {{{2 +" ---------------------------------------------------------------------- +hi s_base03 color: #282828 !important; +hi s_base02 color: #3c3836 !important; +hi s_base01 color: #504945 !important; +hi s_base00 color: #665c54 !important; +hi s_base0 color: #bdae93 !important; +hi s_base1 color: #d5c4a1 !important; +hi s_base2 color: #ebdbb2 !important; +hi s_base3 color: #fdf4c1 !important; +hi s_yellow color: #fabd2f !important; +hi s_orange color: #fe8019 !important; +hi s_red color: #fb4934 !important; +hi s_magenta color: #d33682 !important; +hi s_violet color: #6c71c4 !important; +hi s_blue color: #83a598 !important; +hi s_cyan color: #2aa198 !important; +hi s_green color: #b8bb26 !important; +hi s_black color: #000000 !important; + +" I didn't find where to put it :) +"let s:gb.dark4 = ['7c6f64', 243] " 124-111-100 +"let s:gb.light4 = ['a89984', 246] " 168-153-132 +"let s:gb.purple = ['d3869b', 175] " 211-134-155 +"let s:gb.aqua = ['8ec07c', 108] " 142-192-124 +"let s:gb.medium = ['928374', 245] " 146-131-116 + +" Background colors {{{2 +" ---------------------------------------------------------------------- +hi s_base03_back background-color: #282828 !important; +hi s_base02_back background-color: #3c3836 !important; +hi s_base01_back background-color: #504945 !important; +hi s_base00_back background-color: #665c54 !important; +hi s_base0_back background-color: #bdae93 !important; +hi s_base1_back background-color: #d5c4a1 !important; +hi s_base2_back background-color: #ebdbb2 !important; +hi s_base3_back background-color: #fdf4c1 !important; +hi s_yellow_back background-color: #fabd2f !important; +hi s_orange_back background-color: #fe8019 !important; +hi s_red_back background-color: #fb4934 !important; +hi s_magenta_back background-color: #d33682 !important; +hi s_violet_back background-color: #6c71c4 !important; +hi s_blue_back background-color: #83a598 !important; +hi s_cyan_back background-color: #2aa198 !important; +hi s_green_back background-color: #b8bb26 !important; +hi s_green_back background-color: #b8bb26 !important; + +" Gradient backgrounds {{{2 +" ---------------------------------------------------------------------- +" base02 to base02 (silly, I know; how to fix it?) +hi s_comp_title background: -moz-linear-gradient(60deg, #3c3836, #3c3836) !important; +" hi s_comp_title background: -moz-linear-gradient(60deg, #839496, #002b36) !important; +" cyan to base03 +hi s_comp_sep background: #000000 !important; + +" Status Line {{{1 +" ---------------------------------------------------------------------- +hi -l=s_base0,s_base02_back StatusLineNormal +hi -l=s_base03,s_orange_back StatusLineBroken +hi -l=s_base03,s_blue_back StatusLineSecure +hi -l=s_base03,s_violet_back StatusLineExtended +hi -l=s_base03,s_magenta_back StatusWarningMsg +" Make sure the question output looks nice between each status color +hi StatusQuestion -a color: inherit !important; background-color: inherit !important; + +" Command Line {{{1 +" ---------------------------------------------------------------------- +hi -l=s_base0,s_base03_back Normal +hi -l=s_base02_back,s_base3 CompItem[selected] +" background is s_base03 +hi CompItem:nth-child(2n+1) -a background: rgba(0, 43, 54, .04); +hi -l=s_base3,s_comp_title CompTitle +hi -l=s_base1 CompDesc -a +hi -l=s_base0 Preview -a +hi -l=s_comp_sep CompTitleSep height: 0px; +hi -l=s_base0,s_base03_back Message +hi -l=s_base03,s_yellow_back WarningMsg +hi -l=s_base03,s_magenta_back ErrorMsg +hi -l=s_base2 URL +hi -l=s_base2 URLExtra +hi MoreMsg -a color: inherit !important; background-color: inherit !important; +hi -l=s_green Filter -a +hi -l=s_base0 InfoMsg +hi -l=s_base01 ModeMsg +hi -l=s_base2 CmdInput +hi -l=s_base0,s_base03_back CmdCmdLine +hi -l=s_base03,s_magenta_back CmdErrorMsg + +" Hints {{{1 +" ---------------------------------------------------------------------- +" The hint background is s_base3, the outline is s_base03 +hi -l=s_black Hint -a outline: 1px solid rgba(0, 43, 54, .5); background: rgba(253, 246, 227, .8); +hi -l=s_base03,s_blue_back HintElem +hi -l=s_base03,s_magenta_back HintActive + +" Other {{{1 +" ---------------------------------------------------------------------- +hi -l=s_red_back Bell +hi -l=s_blue,s_base03_back NonText -a min-height: 16px; padding-left: 2px; +hi -l=s_magenta_back Search -a +hi -l=s_red Title -a +hi -l=s_blue Indicator -a +hi -l=s_cyan Question +hi -l=s_blue Enabled -a +hi -l=s_blue_back FrameIndicator -a +hi -l=s_base0,s_base3_back LinkInfo -a +hi -l=s_base03,s_base2_back LineNr +hi -l=s_blue Tag -a +hi -l=s_base03,s_orange_back EditorBlink1 +hi -l=s_base01 EditorBlink2 +hi -l=s_base2,s_base03_back EditorEditing>* +hi -l=s_base2,s_base03_back EditorEditing +hi -l=s_base03,s_red_back EditorError +hi -l=s_base01 Disabled -a +hi -l=s_base01 Addon:not([active]) -a +" background is s_base03 +hi Addon:nth-child(2n+1) -a background: rgba(0, 43, 54, .04); +" background is s_base03 +hi UsageItem:nth-of-type(2n) -a background: rgba(0, 43, 54, .04); +hi -l=s_base01 Download:not([active]) -a +" background is s_base03 +hi Download:nth-child(2n+1) -a background: rgba(0, 43, 54, .04); +" Text shadow is s_base03 +hi -l=s_base3 TabIconNumber -a text-shadow: #002b36 -1px 0 1px, #002b36 0 1px 1px, #002b36 1px 0 1px, #002b36 0 -1px 1px; +" buttons +hi -l=s_blue Button -a +hi -l=s_blue Button::after -a +hi -l=s_blue Button::before -a + + +" Help {{{1 +" ---------------------------------------------------------------------- +hi -l=s_base0,s_base03_back HelpBody -a +" Border is s_base3, and there to fake padding on the background image, +" since the logo is black and I'm putting it on a white bg +hi -l=s_base3_back Logo -a border: 5px solid #fdf6e3 !important; +" This can't be !important, or else it overrides all links (e.g. ex, +" key, opt). The color used here is s_blue +hi HelpLink[href] -a color: #268bd2; +hi -l=s_blue HelpTopic -a +hi -l=s_blue HelpType margin-right: 2ex; +hi -l=s_magenta HelpInfoLabel -a +hi -l=s_magenta HelpWarning -a +hi -l=s_magenta HelpNote -a +hi -l=s_orange HelpEx -a +hi -l=s_green HelpKey -a +hi -l=s_red HelpKeyword -a +hi -l=s_red HelpTag -a +hi -l=s_green HelpNewsTag -a +hi -l=s_yellow HelpHead -a +" Using s_base1 here for the border +hi HelpBorder -a border-color: #93a1a1 !important; +hi -l=s_cyan HelpSpec -a +hi -l=s_cyan HelpArg -a +hi -l=s_cyan HelpOptionalArg -a +hi -l=s_violet HelpString -a +hi -l=s_cyan HelpOpt -a +" Help code blocks +hi -l=s_base0 HelpXMLText -a +hi -l=s_base00,s_base3_back HelpXMLBase -a padding: 7px; +hi -l=s_blue HelpXMLTagStart -a +hi -l=s_blue HelpXMLTagEnd -a +hi -l=s_orange HelpXMLAttribute -a +hi -l=s_cyan HelpXMLString -a +hi -l=s_base01 HelpXMLComment -a +hi -l=s_base00 HelpXMLAttribute::after -a +hi -l=s_orange HelpXMLNamespace -a +hi -l=s_cyan HelpXMLNamespace::after -a +hi -l=s_cyan HelpXMLProcessing -a +hi -l=s_base00 HelpXMLProcessing::before -a +hi -l=s_base00 HelpXMLProcessing::after -a +hi HelpXML -a border: none; +hi HelpXMLBlock -a border: none; +hi -l=s_cyan Boolean -a +hi -l=s_yellow Keyword -a +hi -l=s_blue Function -a +hi -l=s_blue Null -a +hi -l=s_blue Number -a +hi -l=s_green Object -a +hi -l=s_base1 Comment -a +hi -l=s_base0 Comment -a + +" vim: fdm=marker diff --git a/.pentadactyl/colors/gruvbox-light.penta b/.pentadactyl/colors/gruvbox-light.penta @@ -0,0 +1,198 @@ +" Gruvbox light color scheme for Pentadactyl {{{1 +" ---------------------------------------------------------------------- +" +" Author: gregbartell <https://github.com/gregbartell> +" Mantainer: rominf <infroma@gmail.com> +" Name: gruvbox-light +" +" Reset the styles {{{1 +" ---------------------------------------------------------------------- +" This ensures they don't bleed over from other themes +hi clear + +" Gruvbox color mappings {{{1 +" ---------------------------------------------------------------------- +" This allows us to easily map the colors by name + +" Foreground colors {{{2 +" ---------------------------------------------------------------------- +hi s_base03 color: #fbf1c7 !important; +hi s_base02 color: #ebdbb2 !important; +hi s_base01 color: #d5c4a1 !important; +hi s_base00 color: #bdae93 !important; +hi s_base0 color: #665c54 !important; +hi s_base1 color: #504945 !important; +hi s_base2 color: #3c3836 !important; +hi s_base3 color: #282828 !important; +hi s_yellow color: #b57614 !important; +hi s_orange color: #af3a03 !important; +hi s_red color: #9d0006 !important; +hi s_magenta color: #8f3f71 !important; +hi s_violet color: #6c71c4 !important; +hi s_blue color: #076678 !important; +hi s_cyan color: #2aa198 !important; +hi s_green color: #79740e !important; + +" I didn't find where to put it :) +"let s:gb.dark4 = ['7c6f64', 243] " 124-111-100 +"let s:gb.light4 = ['a89984', 246] " 168-153-132 +"let s:gb.purple = ['d3869b', 175] " 211-134-155 +"let s:gb.aqua = ['8ec07c', 108] " 142-192-124 +"let s:gb.medium = ['928374', 245] " 146-131-116 + + + +" Background colors {{{2 +" ---------------------------------------------------------------------- +hi s_base03_back background-color: #fbf1c7 !important; +hi s_base02_back background-color: #ebdbb2 !important; +hi s_base01_back background-color: #d5c4a1 !important; +hi s_base00_back background-color: #bdae93 !important; +hi s_base0_back background-color: #665c54 !important; +hi s_base1_back background-color: #504945 !important; +hi s_base2_back background-color: #3c3836 !important; +hi s_base3_back background-color: #282828 !important; +hi s_yellow_back background-color: #b57614 !important; +hi s_orange_back background-color: #af3a03 !important; +hi s_red_back background-color: #9d0006 !important; +hi s_magenta_back background-color: #d33682 !important; +hi s_violet_back background-color: #6c71c4 !important; +hi s_blue_back background-color: #076678 !important; +hi s_cyan_back background-color: #2aa198 !important; +hi s_green_back background-color: #79740e !important; +" Gradient backgrounds {{{2 +" ---------------------------------------------------------------------- +" base02 to base02 (silly, I know; how to fix it?) +hi s_comp_title background: -moz-linear-gradient(60deg, #ebdbb2, #ebdbb2) !important; +" hi s_comp_title background: -moz-linear-gradient(60deg, #839496, #002b36) !important; +" cyan to base03 +hi s_comp_sep background: #FFFFFF !important; + +" Status Line {{{1 +" ---------------------------------------------------------------------- +hi -l=s_base0,s_base02_back StatusLineNormal +hi -l=s_base03,s_orange_back StatusLineBroken +hi -l=s_base03,s_blue_back StatusLineSecure +hi -l=s_base03,s_violet_back StatusLineExtended +hi -l=s_base03,s_magenta_back StatusWarningMsg +" Make sure the question output looks nice between each status color +hi StatusQuestion -a color: inherit !important; background-color: inherit !important; + +" Command Line {{{1 +" ---------------------------------------------------------------------- +hi -l=s_base0,s_base03_back Normal +hi -l=s_base02_back,s_base3 CompItem[selected] +" background is s_base03 +hi CompItem:nth-child(2n+1) -a background: rgba(0, 43, 54, .04); +hi -l=s_base3,s_comp_title CompTitle +hi -l=s_base1 CompDesc -a +hi -l=s_base0 Preview -a +hi -l=s_comp_sep CompTitleSep height: 0px; +hi -l=s_base0,s_base03_back Message +hi -l=s_base03,s_yellow_back WarningMsg +hi -l=s_base03,s_magenta_back ErrorMsg +hi -l=s_base2 URL +hi -l=s_base2 URLExtra +hi MoreMsg -a color: inherit !important; background-color: inherit !important; +hi -l=s_green Filter -a +hi -l=s_base0 InfoMsg +hi -l=s_base01 ModeMsg +hi -l=s_base2 CmdInput +hi -l=s_base0,s_base03_back CmdCmdLine +hi -l=s_base03,s_magenta_back CmdErrorMsg + +" Hints {{{1 +" ---------------------------------------------------------------------- +" The hint background is s_base3, the outline is s_base03 +hi -l=#458588 Hint -a outline: 1px solid rgba(0, 43, 54, .5); background: rgba(253, 246, 227, .8); font-size: 16pt !important; +hi -l=s_base03,s_blue_back HintElem +hi -l=s_base03,s_magenta_back HintActive + +" Other {{{1 +" ---------------------------------------------------------------------- +hi -l=s_red_back Bell +hi -l=s_blue,s_base03_back NonText -a min-height: 16px; padding-left: 2px; +hi -l=s_magenta_back Search -a +hi -l=s_red Title -a +hi -l=s_blue Indicator -a +hi -l=s_cyan Question +hi -l=s_blue Enabled -a +hi -l=s_blue_back FrameIndicator -a +hi -l=s_base0,s_base3_back LinkInfo -a +hi -l=s_base03,s_base2_back LineNr +hi -l=s_blue Tag -a +hi -l=s_base03,s_orange_back EditorBlink1 +hi -l=s_base01 EditorBlink2 +hi -l=s_base2,s_base03_back EditorEditing>* +hi -l=s_base2,s_base03_back EditorEditing +hi -l=s_base03,s_red_back EditorError +hi -l=s_base01 Disabled -a +hi -l=s_base01 Addon:not([active]) -a +" background is s_base03 +hi Addon:nth-child(2n+1) -a background: rgba(0, 43, 54, .04); +" background is s_base03 +hi UsageItem:nth-of-type(2n) -a background: rgba(0, 43, 54, .04); +hi -l=s_base01 Download:not([active]) -a +" background is s_base03 +hi Download:nth-child(2n+1) -a background: rgba(0, 43, 54, .04); +" Text shadow is s_base03 +hi -l=s_base3 TabIconNumber -a text-shadow: #002b36 -1px 0 1px, #002b36 0 1px 1px, #002b36 1px 0 1px, #002b36 0 -1px 1px; +" buttons +hi -l=s_blue Button -a +hi -l=s_blue Button::after -a +hi -l=s_blue Button::before -a + + +" Help {{{1 +" ---------------------------------------------------------------------- +hi -l=s_base0,s_base03_back HelpBody -a +" Border is s_base3, and there to fake padding on the background image, +" since the logo is black and I'm putting it on a white bg +hi -l=s_base03 Logo -a border: 5px !important; +" This can't be !important, or else it overrides all links (e.g. ex, +" key, opt). The color used here is s_blue +hi HelpLink[href] -a color: #268bd2; +hi -l=s_blue HelpTopic -a +hi -l=s_blue HelpType margin-right: 2ex; +hi -l=s_magenta HelpInfoLabel -a +hi -l=s_magenta HelpWarning -a +hi -l=s_magenta HelpNote -a +hi -l=s_orange HelpEx -a +hi -l=s_green HelpKey -a +hi -l=s_red HelpKeyword -a +hi -l=s_red HelpTag -a +hi -l=s_green HelpNewsTag -a +hi -l=s_yellow HelpHead -a +" Using s_base1 here for the border +hi HelpBorder -a border-color: #93a1a1 !important; +hi -l=s_cyan HelpSpec -a +hi -l=s_cyan HelpArg -a +hi -l=s_cyan HelpOptionalArg -a +hi -l=s_violet HelpString -a +hi -l=s_cyan HelpOpt -a +" Help code blocks +hi -l=s_base0 HelpXMLText -a +hi -l=s_base00,s_base3_back HelpXMLBase -a padding: 7px; +hi -l=s_blue HelpXMLTagStart -a +hi -l=s_blue HelpXMLTagEnd -a +hi -l=s_orange HelpXMLAttribute -a +hi -l=s_cyan HelpXMLString -a +hi -l=s_base01 HelpXMLComment -a +hi -l=s_base00 HelpXMLAttribute::after -a +hi -l=s_orange HelpXMLNamespace -a +hi -l=s_cyan HelpXMLNamespace::after -a +hi -l=s_cyan HelpXMLProcessing -a +hi -l=s_base00 HelpXMLProcessing::before -a +hi -l=s_base00 HelpXMLProcessing::after -a +hi HelpXML -a border: none; +hi HelpXMLBlock -a border: none; +hi -l=s_cyan Boolean -a +hi -l=s_yellow Keyword -a +hi -l=s_blue Function -a +hi -l=s_blue Null -a +hi -l=s_blue Number -a +hi -l=s_green Object -a +hi -l=s_base1 Comment -a +hi -l=s_base0 Comment -a + +" vim: fdm=marker diff --git a/.pentadactylrc b/.pentadactylrc @@ -1,6 +1,6 @@ " " author: Xu Xiaodong <xxdlhy@gmail.com> -" modified: 2016 Jun 10 +" modified: 2016 Jun 26 " "-- look --" @@ -8,8 +8,10 @@ set guioptions=Cns set showstatuslinks=command set hintkeys=asdfg;lkjh +set maxitems=15 +set titlestring= -colorscheme solarized-dark +colorscheme gruvbox-dark highlight Hint font-family: 'source code pro'; font-size: 13px; background-color: white; padding: 2px; "-- search --" diff --git a/.xinitrc b/.xinitrc @@ -1,7 +1,7 @@ #!/bin/sh # # author : Xu Xiaodong <xxdlhy@gmail.com> -# modified : 2016 Jun 18 +# modified : 2016 Jul 09 # #-- font --# @@ -12,6 +12,12 @@ xset fp rehash xset +dpms xset dpms 0 0 300 +#-- qt --# +export QT_STYLE_OVERRIDE=gtk2 + +#-- browser --# +export BROWSER=dwb + #-- ime --# export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx @@ -19,15 +25,15 @@ export XMODIFIERS="@im=fcitx" 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/spacesurf.png & # set wallpaper -urxvtc -geometry 182x47 -e sh -c "tmuxen" & # start tmux -yabar & # start bar -sxhkd & # start hotkey daemon +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 -tile ~/picture/wild_oliva.png & # set wallpaper +urxvtc -geometry 86x48+0+0 -e sh -c "tmuxen" & # start tmux +yabar & # start bar +sxhkd & # start hotkey daemon #-- wm --# exec 2bwm diff --git a/.zathurarc b/.zathurarc @@ -1,10 +1,9 @@ # # author: Xu Xiaodong <xxdlhy@gmail.com> -# modified: 2012 Aug 04 +# modified: 2016 Jul 08 # # hide *bar -set show_inputbar 0 #set show_statusbar 0 # bindkey diff --git a/rofi.conf b/rofi.conf @@ -11,13 +11,13 @@ 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 +rofi.color-normal: #282828,#ebdbb2,#282828,#ebdbb2,#282828 ! Color scheme for urgent row -rofi.color-urgent: #101010,#a0a0a0,#101010,#a0a0a0,#101010 +rofi.color-urgent: #282828,#98971a,#282828,#ebdbb2,#282828 ! Color scheme for active row -rofi.color-active: #101010,#686868,#101010,#686868,#101010 +rofi.color-active: #282828,#d79921,#282828,#ebdbb2,#282828 ! Color scheme window -rofi.color-window: #101010,#101010 +rofi.color-window: #282828,#282828 ! Border width rofi.bw: 3 ! Location on screen diff --git a/settings.ini b/settings.ini @@ -1,6 +1,6 @@ # # author: Xu Xiaodong <xxdlhy@gmail.com> -# modified: 2016 Jun 18 +# modified: 2016 Jul 02 # [Settings] @@ -15,7 +15,7 @@ gtk-icon-theme-name = Arc gtk-theme-name = Arc-Dark #-- font --# -gtk-font-name = Aller 12 +gtk-font-name = Roboto Condensed 12 #-- toolbar --# gtk-toolbar-style = GTK_TOOLBAR_ICONS diff --git a/sxhkdrc b/sxhkdrc @@ -1,6 +1,30 @@ +# +# author : Xu Xiaodong <xxdlhy@gmail.com> +# modified : 2016 Jul 04 +# + +#-- move to corner --# + +# top left super + e - xdotool mousemove 400 250 -super + d - xdotool mousemove 1400 850 + xdotool mousemove 20 50 + +# top right +super + shift + r + xdotool mousemove 1895 55 + +# bottom left super + z - xdotool mousemove 400 850 + xdotool mousemove 25 1055 + +# bottom right +super + d + xdotool mousemove 1895 1055 + +# top center +super + shift + t + xdotool mousemove 955 55 + +# bottom center +super + shift + f + xdotool mousemove 955 1055 diff --git a/yabar.conf b/yabar.conf @@ -1,41 +1,44 @@ bar-list = ["topbar"]; topbar:{ - font: "Source Code Pro, FontAwesome Bold 12"; + font: "Source Code Pro, FontAwesome bold 12"; block-list: ["workspace", "battery", "ya_date"]; position: "top"; - gap-horizontal: 1560; - gap-vertical: 20; + gap-horizontal: 1580; + gap-vertical: 10; width: 320; height: 40; background-color-argb: 0x0; - underline-size: 2; + underline-size: 6; overline-size: 0; - slack-size: 2; + slack-size: 10; workspace:{ exec: "2bwm-ws.sh"; align: "center"; - fixed-size: 40; + justify: "center"; + fixed-size: 60; type: "periodic"; interval: 2; - foreground-color-rgb:0x747474; - underline-color-rgb:0x747474; + foreground-color-rgb:0xbdae93; + underline-color-rgb:0xb16286; } battery:{ exec: "2bwm-batter.sh"; align: "center"; - fixed-size: 80; + justify: "center"; + fixed-size: 70; type: "periodic"; interval: 60; - foreground-color-rgb:0xa0a0a0; - underline-color-rgb:0xa0a0a0; + foreground-color-rgb:0xd5c4a1; + underline-color-rgb:0x689d6a; } ya_date:{ exec: "YABAR_DATE"; align: "center"; - fixed-size: 200; + justify: "center"; + fixed-size: 190; interval: 1; - foreground-color-rgb:0x8e8e8e; - underline-color-rgb:0x8e8e8e; + foreground-color-rgb:0xfbf1c7; + underline-color-rgb:0x458588; internal-prefix: " "; internal-option1: "%a %d %b %I:%M"; }