From: Amin Bandali Date: Sat, 25 Oct 2014 13:18:55 +0000 (-0400) Subject: add bspwm, sxhkd, conky, git, gtk and x configs X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/commitdiff_plain/3aeeb20d5babf5d6698677d469f44b805058803e?ds=sidebyside;hp=686c6d84bdc8407e2655dcdf708882e712dbd37d add bspwm, sxhkd, conky, git, gtk and x configs --- diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc new file mode 100755 index 0000000..1f07d0f --- /dev/null +++ b/bspwm/.config/bspwm/bspwmrc @@ -0,0 +1,16 @@ +#! /bin/sh + +bspc config border_width 5 +bspc config window_gap 10 + +bspc config split_ratio 0.5 +bspc config borderless_monocle true +bspc config gapless_monocle true +bspc config focus_by_distance true + +bspc monitor -d I II III IV V VI VII VIII IX X + +bspc rule -a Firefox desktop=^2 focus=on +bspc rule -a Thunderbird desktop=^3 focus=on + +panel & diff --git a/conky/.conkyrc b/conky/.conkyrc new file mode 100644 index 0000000..25c110e --- /dev/null +++ b/conky/.conkyrc @@ -0,0 +1,9 @@ +background no +out_to_console yes +out_to_x no +update_interval 1.5 +total_run_times 0 +use_spacer none + +TEXT +S %{F\#ffcf0f38}${exec cat /tmp/spkicon} %{F\#fffefdfb}${exec cat /tmp/volinfo}%% %{F\#ffcf0f38}⮏ %{F\#fffefdfb}${execi 30 cat /sys/class/power_supply/BAT0/capacity}%% %{F\#ffcf0f38}⮖ %{F\#fffefdfb}${time %H:%M} diff --git a/git/.gitconfig b/git/.gitconfig new file mode 100644 index 0000000..eb98a6d --- /dev/null +++ b/git/.gitconfig @@ -0,0 +1,5 @@ +[push] + default = simple +[user] + email = me@aminb.org + name = Amin Bandali diff --git a/gtk/.gtkrc-2.0 b/gtk/.gtkrc-2.0 new file mode 100644 index 0000000..bb78837 --- /dev/null +++ b/gtk/.gtkrc-2.0 @@ -0,0 +1,3 @@ +gtk-theme-name="Numix" +gtk-icon-theme-name="Moka" +gtk-font-name="Open Sans 10" diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc new file mode 100644 index 0000000..12303f5 --- /dev/null +++ b/sxhkd/.config/sxhkd/sxhkdrc @@ -0,0 +1,119 @@ +# +# bspwm hotkeys +# + +super + alt + Escape + bspc quit + +super + w + bspc window -c + +super + t + bspc desktop -l next + +super + b + bspc desktop -B + +super + {s,f} + bspc window -t {floating,fullscreen} + +super + {grave,Tab} + bspc {window,desktop} -f last + +super + apostrophe + bspc window -s last + +super + {o,i} + bspc control --record-history off; \ + bspc window {older,newer} -f; \ + bspc control --record-history on + +super + y + bspc window -w last.manual + +super + m + bspc window -s biggest + +super + {_,shift + }{h,j,k,l} + bspc window -{f,s} {left,down,up,right} + +super + {_,shift + }c + bspc window -f {next,prev} + +super + {comma,period} + bspc desktop -C {backward,forward} + +super + bracket{left,right} + bspc desktop -f {prev,next} + +super + ctrl + {h,j,k,l} + bspc window -p {left,down,up,right} + +super + ctrl + {_,shift + }space + bspc {window -p cancel,desktop -c} + +super + alt + {h,j,k,l} + bspc window -e {left -10,down +10,up -10,right +10} + +super + alt + shift + {h,j,k,l} + bspc window -e {right -10,up +10,down -10,left +10} + +super + ctrl + {1-9} + bspc window -r 0.{1-9} + +super + {_,shift + }{1-9,0} + bspc {desktop -f,window -d} ^{1-9,10} + +~button1 + bspc pointer -g focus + +super + button{1-3} + bspc pointer -g {move,resize_side,resize_corner} + +super + !button{1-3} + bspc pointer -t %i %i + +super + @button{1-3} + bspc pointer -u + +# +# wm independent hotkeys +# + +super + Return + urxvt + +super + space + dmenu_run -fn "-*-termsyn-medium-r-normal-*-13-*-*-*-c-*-*-1" -h 20 -nb \#2f2b30 -nf \#fefdfb -sb \#cf0f38 -sf \#fefdfb + +# make sxhkd reload its configuration files: +super + Escape + pkill -USR1 -x sxhkd + +XF86MonBrightnessDown + xbacklight -dec 10 + +XF86MonBrightnessUp + xbacklight -inc 10 + +XF86KbdBrightnessDown + kbdlight down + +XF86KbdBrightnessUp + kbdlight up + +XF86AudioRaiseVolume + pamixer --increase 5;\ + pamixer --get-volume > /tmp/volinfo + +XF86AudioLowerVolume + pamixer --decrease 5;\ + pamixer --get-volume > /tmp/volinfo + +XF86AudioMute + pamixer --toggle-mute;\ + if $(pamixer --get-mute) ; then;\ + echo ⮝ > /tmp/spkicon;\ + else;\ + echo ⮟ > /tmp/spkicon;\ + fi diff --git a/x/.Xresources b/x/.Xresources new file mode 100644 index 0000000..341c733 --- /dev/null +++ b/x/.Xresources @@ -0,0 +1,12 @@ +URxvt.scrollBar: false +URxvt.font: -*-termsyn-medium-*-*-*-14-*-*-*-*-*-*-* +URxvt.boldFont: -*-termsyn-bold-*-*-*-14-*-*-*-*-*-*-* + +URxvt.perl-ext-common: default,clipboard,url-select +URxvt.url-select.launcher: firefox +URxvt.url-select.underline: true +URxvt.keysym.M-u: perl:url-select:select_next +URxvt.iso14755 : false +URxvt.keysym.M-c: perl:clipboard:copy +URxvt.keysym.M-v: perl:clipboard:paste +URxvt.keysym.C-A-V: perl:clipboard:paste_escaped diff --git a/x/.xinitrc b/x/.xinitrc new file mode 100644 index 0000000..73e04e1 --- /dev/null +++ b/x/.xinitrc @@ -0,0 +1,41 @@ +#!/bin/sh +# +# ~/.xinitrc +# +# Executed by startx (run your window manager from here) + +if [ -d /etc/X11/xinit/xinitrc.d ]; then + for f in /etc/X11/xinit/xinitrc.d/*; do + [ -x "$f" ] && . "$f" + done + unset f +fi + +xrdb -merge ~/.Xresources +xsetroot -cursor_name left_ptr & # set the cursor icon +feh --bg-scale ~/Pictures/the-witcher-3-wild-hunt-10.jpg +xset +fp /usr/share/fonts/local +xset +fp ~/.fonts +xset fp rehash +xset b off +xrdb -merge ~/.theme/base16-thewildhunt.dark.xresources +compton & +#xbacklight -set `xbacklight -get` +synclient TapButton2=3 +synclient TapButton3=2 +synclient HorizTwoFingerScroll=1 +synclient VertScrollDelta=-237 +synclient HorizScrollDelta=-237 + +# screen powersave +xset +dpms +xset dpms 0 0 300 + +# exec gnome-session +# exec startkde +# exec startxfce4 +# ...or the Window Manager of your choice + +sxhkd & +source ~/.profile +exec bspwm