dotfiles

configuration files for different softwares
git clone git://z3bra.org/dotfiles
Log | Files | Refs

commit 6b09c0192a0c7c2646c9193781ee94358e7a6b1c
parent 7fc301872679e98e3a23c3ebb990a8ebdd66d1c1
Author: z3bra <willy@mailoo.org>
Date:   Mon May 12 20:11:55 2014

Merge branch 'master' of git:dotfiles

Diffstat:
 sxhkdrc     |  1 +-
 xbindkeysrc | 81 +++++++++++++++-----------------------------------------------
 xinitrc     | 10 ++++----
 3 files changed, 27 insertions(+), 65 deletions(-)

diff --git a/sxhkdrc b/sxhkdrc @@ -0,0 +1 @@ +/home/z3bra/etc/xbindkeysrc+ \ No newline at end of file diff --git a/xbindkeysrc b/xbindkeysrc @@ -1,71 +1,30 @@ -# -- Application launchers ---------------------------------- {{{ -- -"urxvt" - Mod4 + Return -# -"dwb" - Mod4 + w -# -"~/bin/menu.sh" - Menu -# ----------------------------------------------------------- }}} -- +mod4 + Return + urxvt -# -- Volume management -------------------------------------- {{{ -- -"amixer set Master 5%+ unmute" - XF86AudioRaiseVolume +mod4 + w + dwb -"amixer set Master 5%- unmute" - XF86AudioLowerVolume +Menu + ~/bin/menu -"amixer set Master toggle" - XF86AudioMute +XF86Audio{Raise,Lower}Volume + amixer set Master 5%{+,-} unmute; \ + ~/bin/popup volumebar -"~/bin/popup volumebar" - XF86AudioRaiseVolume +XF86AudioMute + amixer set Master toggle; \ + ~/bin/popup volumebar -"~/bin/popup volumebar" - XF86AudioLowerVolume +control + {Prior,Next,Home} + ~/bin/gamma.sh {up 0.25,down 0.25, reset} -"~/bin/popup volumebar" - XF86AudioMute -# ----------------------------------------------------------- }}} -- +XF86Audio{Play,Stop,Prev,Next,Mute} + mpc -h gavroche {toggle,stop,prev,next,pause} -# -- Gamma management --------------------------------------- {{{ -- -"~/bin/gamma.sh up 0.25" - Control + Prior +control + XF86Audio{Raise,Lower}Volume + mpc -h gavroche volume {+,-}10 -"~/bin/gamma.sh down 0.25" - Control + Next - -"~/bin/gamma.sh reset" - Control + Home -# ----------------------------------------------------------- }}} -- - -# -- mpc -h gavroche remote control ------------------------------------- {{{ -- -"mpc -h gavroche toggle" - XF86AudioPlay - -"mpc -h gavroche stop" - XF86AudioStop - -"mpc -h gavroche prev" - XF86AudioPrev - -"mpc -h gavroche next" - XF86AudioNext - -"mpc -h gavroche volume +10" - control + XF86AudioRaiseVolume - -"mpc -h gavroche volume -10" - control + XF86AudioLowerVolume - -"mpc -h gavroche pause" - XF86AudioMute -# ----------------------------------------------------------- }}} -- - -# -- Desktop control ---------------------------------------- {{{ -- -"xtrlock" - control + mod1 + l -# ----------------------------------------------------------- }}} -- +control + mod1 + l + xtrlock # vim: set foldmethod=marker syntax=conf: diff --git a/xinitrc b/xinitrc @@ -11,12 +11,13 @@ hsetroot -tile ~/usr/img/bg/default.jpg -brightness -0.2 #xantfarm -num 4 -air '#2c2c2c' -ant '#cdf318' -sand '#665847' & # Set bindings -xbindkeys +#xbindkeys +sxhkd -c ~/.sxhkdrc >/dev/null 2> ~/var/log/sxhkd.log & # default cursor xsetroot -cursor_name left_ptr -function wm() { +wm() { # Load X resources xrdb -load ~/etc/Xresources @@ -32,13 +33,14 @@ function wm() { # enable RGBA module for GTK # export GTK_MODULES=rgba - #$1 & + # get screen size + IFS='x' read w h <<< "$(xrandr | awk '/\*/ {print $1}')" font='-*-stlarch-medium-*-*--10-*-*-*-*-*-*-*' font="${font},-*-gohufont-medium-*-*--11-*-*-*-*-*-iso10646-1" while :; do ~/bin/mkbar - done | bar -f "$font" -B\#00000000 -b -g 800x20+320+2 & + done | bar -f "$font" -B\#00000000 -b -g $((w - 20))x20+10+2 & exec $1