dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit d08b7c9afb804c378879b708a33745d8ac1ecd34
parent 7384382228b423f4c2eec3a12d4da7219b81b78c
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Mon,  3 Feb 2014 21:55:03 +0100

Added bar configuration, new bar for bspwm

Diffstat:
M.config/bspwm/bspwmrc | 12++++++++++--
M.config/bspwm/panel/panel_battery | 2+-
M.config/bspwm/panel/panel_conky | 5++++-
Abar/config.h | 44++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 59 insertions(+), 4 deletions(-)

diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc @@ -38,6 +38,15 @@ bspc config borderless_monocle true bspc config gapless_monocle true bspc config focus_follows_pointer true +bspc config normal_border_color "#504339" +bspc config active_border_color "#504339" +bspc config focused_border_color "#605655" +bspc config presel_border_color "#9a875f" +bspc config urgent_border_color "#504339" +bspc config normal_frame_opacity 0.0 +bspc config focused_frame_opacity 0.05 +bspc config rule_command "$(which rule_command)" + # Placement rules #bspc rule -a Gimp desktop=^8 follow=on floating=on #bspc rule -a Chromium desktop=^2 @@ -48,6 +57,5 @@ bspc config focus_follows_pointer true # Move focus to the primary monitor bspc monitor -f primary -#/home/adc/bin/panel > ~/.panel.log 2> ~/.panel.err & -#/home/adc/bin/panel dzen2 > ~/.panel.log 2> ~/.panel.err & +#/home/adc/bin/panel & /home/adc/.config/bspwm/panel/panel & diff --git a/.config/bspwm/panel/panel_battery b/.config/bspwm/panel/panel_battery @@ -59,4 +59,4 @@ esac # Create Bar -echo "$icon \f9$bar" +echo "$icon $BAT \f9$bar" diff --git a/.config/bspwm/panel/panel_conky b/.config/bspwm/panel/panel_conky @@ -6,5 +6,8 @@ out_to_x no update_interval 3 update_interval_on_battery 3 +#TEXT +#S\f8${execi 1 ./panel_wifi} \f9${wireless_essid wlan0} \f8${execi 1 ./panel_battery} \fr${time %Y-%m-%d %H:%M } + TEXT -S\f8${execi 1 ./panel_wifi} \f9${wireless_essid wlan0} \f8${execi 1 ./panel_battery} \fr${time %Y-%m-%d %H:%M } +S\f8${execi 1 ./panel_wifi} \f9${wireless_essid wlan0} \f8${execi 1 ./panel_battery} \fr${time %Y-%m-%d %H:%M } diff --git a/bar/config.h b/bar/config.h @@ -0,0 +1,44 @@ +/* The height of the bar (in pixels) */ +#define BAR_HEIGHT 14 +/* The width of the bar. Set to -1 to fit screen */ +#define BAR_WIDTH -1 +/* Offset from the left. Set to 0 to have no effect */ +#define BAR_OFFSET 0 +/* Choose between an underline or an overline */ +#define BAR_UNDERLINE 1 +/* The thickness of the underline (in pixels). Set to 0 to disable. */ +#define BAR_UNDERLINE_HEIGHT 2 +/* Default bar position, overwritten by '-b' switch */ +#define BAR_BOTTOM 0 +/* The fonts used for the bar, comma separated. Only the first 2 will be used. */ +/*#define BAR_FONT "-*-terminus-medium-r-normal-*-12-*-*-*-c-*-*-1","fixed"*/ +#define BAR_FONT "-*-uushi-*-*-*-*-*-*-*-*-*-*-*-*","fixed" +/* Some fonts don't set the right width for some chars, pheex it */ +#define BAR_FONT_FALLBACK_WIDTH 6 +/* Define the opacity of the bar (requires a compositor such as compton) */ +#define BAR_OPACITY 1.0 /* 0 is invisible, 1 is opaque */ +/* Color palette */ +/*#define BACKGROUND 0x232c31 +#define COLOR0 0x2d3c46 +#define COLOR1 0xac4142 +#define COLOR2 0x90a959 +#define COLOR3 0xde935f +#define COLOR4 0x6a9fb5 +#define COLOR5 0xaa759f +#define COLOR6 0x75b5aa +#define COLOR7 0x6c7a80 +#define COLOR8 0x425059 +#define COLOR9 0xcc6666 +#define FOREGROUND 0xc5c8c6*/ +#define BACKGROUND 0x181512 /* background */ +#define FOREGROUND 0xd6c3b6 /* foreground */ +#define COLOR0 0x181512 /* background */ +#define COLOR1 0xd6c3b6 /* foreground */ +#define COLOR2 0x332d29 +#define COLOR3 0x8c644c +#define COLOR4 0x746c48 +#define COLOR5 0xbfba92 +#define COLOR6 0x646a6d +#define COLOR7 0x766782 +#define COLOR8 0x4b5c5e +#define COLOR9 0x9a875f