Fix some DPI bugs and add redshift

This commit is contained in:
Daniel Flanagan 2017-05-05 00:55:43 -05:00
commit 8461963a77
5 changed files with 54 additions and 34 deletions

View file

@ -40,6 +40,7 @@ if [ $BAR_ON_TOP -eq 1 ]; then
bspc config -m ${BAR_MONITOR} top_padding "$EHEIGHT" bspc config -m ${BAR_MONITOR} top_padding "$EHEIGHT"
bspc config -m ${BAR_MONITOR} bottom_padding "0" bspc config -m ${BAR_MONITOR} bottom_padding "0"
else else
export BAR_BOTTOM="true"
export POS_Y=$GAP export POS_Y=$GAP
bspc config -m ${BAR_MONITOR} top_padding "0" bspc config -m ${BAR_MONITOR} top_padding "0"
bspc config -m ${BAR_MONITOR} bottom_padding "$EHEIGHT" bspc config -m ${BAR_MONITOR} bottom_padding "$EHEIGHT"

View file

@ -25,7 +25,7 @@ offset-y = ${env:POS_Y:30}
radius = 0.0 radius = 0.0
fixed-center = false fixed-center = false
bottom = ${env:BAR_BOTTOM:true} bottom = ${env:BAR_BOTTOM:true}
dpi = 180 dpi = ${xrdb:dpi:92}
background = ${colors.background} background = ${colors.background}
foreground = ${colors.foreground} foreground = ${colors.foreground}
@ -43,9 +43,7 @@ module-margin-left = 1
module-margin-right = 2 module-margin-right = 2
font-0 = ${env:BAR_FONT_DECLARATION} font-0 = ${env:BAR_FONT_DECLARATION}
font-1 = xos4 Terminess Powerline:size=24:antialias=false;0 font-1 = ${env:BAR_ICON_FONT_DECLARATION}
font-2 = siji:pixelsize=24;1
font-3 = ${env:BAR_ICON_FONT_DECLARATION}
modules-left = bspwm modules-left = bspwm
modules-center = modules-center =
@ -112,10 +110,10 @@ ws-icon-8 = mon;
ws-icon-9 = util; ws-icon-9 = util;
ws-icon-default = ♟ ws-icon-default = ♟
label-focused-font = 4 label-focused-font = 2
label-occupied-font = 4 label-occupied-font = 2
label-urgent-font = 4 label-urgent-font = 2
label-empty-font = 4 label-empty-font = 2
; misc icon:  ; misc icon: 
@ -162,12 +160,14 @@ label = 
bar-width = 5 bar-width = 5
bar-indicator = | bar-indicator = |
bar-indicator-foreground = #fff bar-indicator-foreground = #fff
bar-indicator-font = 2 bar-indicator-font = 0
bar-fill = ─ # bar-fill = ─
bar-fill-font = 2 bar-fill = -
bar-fill-font = 0
bar-fill-foreground = ${xrdb:color3} bar-fill-foreground = ${xrdb:color3}
bar-empty = ─ # bar-empty = ─
bar-empty-font = 2 bar-empty = -
bar-empty-font = 0
bar-empty-foreground = ${xrdb:color3} bar-empty-foreground = ${xrdb:color3}
[module/backlight-acpi] [module/backlight-acpi]
@ -269,11 +269,11 @@ bar-volume-foreground-5 = ${xrdb:color3}
bar-volume-foreground-6 = ${xrdb:color3} bar-volume-foreground-6 = ${xrdb:color3}
bar-volume-gradient = false bar-volume-gradient = false
bar-volume-indicator = | bar-volume-indicator = |
bar-volume-indicator-font = 2 bar-volume-indicator-font = 0
bar-volume-fill = bar-volume-fill = -
bar-volume-fill-font = 2 bar-volume-fill-font = 0
bar-volume-empty = bar-volume-empty = -
bar-volume-empty-font = 2 bar-volume-empty-font = 0
bar-volume-empty-foreground = ${colors.foreground-alt} bar-volume-empty-foreground = ${colors.foreground-alt}
[module/battery] [module/battery]

View file

@ -22,6 +22,10 @@ fi
[[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap [[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap
if command -v redshift >/dev/null 2>&1; then
redshift &
fi
pulseaudio --start & pulseaudio --start &
# fire up wm # fire up wm

View file

@ -1,21 +1,35 @@
# Some of my favorite font setups...
# *font: xft:Monaco for Powerline-9
# *faceName: xft:Monaco for Powerline-9
# *boldFont: xft:Monaco for Powerline-9
# *letterSpace: -1
# *font: xft:artwiz lemon-8
# *faceName: xft:artwiz lemon-8
# *boldFont: xft:artwiz lemon-8
# *letterSpace: 0
# *font: xft:xos4 Terminess Powerline-8
# *faceName: xft:xos4 Terminess Powerline-8
# *boldFont: xft:xos4 Terminess Powerline-8
# *letterSpace: 0
# Set fonts in "$HOME/.Xresources.env"
*font: xft:xos4 Terminus-14,xft:FreeSans-14 *font: xft:xos4 Terminus-14,xft:FreeSans-14
*faceName: xft:xos4 Terminus-14,xft:FreeSans-14 *faceName: xft:xos4 Terminus-14,xft:FreeSans-14
*boldFont: xft:xos4 Terminus-14,xft:FreeSans-14 *boldFont: xft:xos4 Terminus-14,xft:FreeSans-14
*letterSpace: 0 *letterSpace: 0
# rxvt-unicode configuration
*termName: rxvt-unicode
*scrollBar: false *scrollBar: false
*cursorUnderline: true *cursorUnderline: true
*cursorBlink: true *cursorBlink: true
*termName: rxvt-unicode
*intensityStyles: true *intensityStyles: true
*utf8: 1 *utf8: 1
*scaleHeight: 1 *scaleHeight: 1
*depth: 32 *depth: 32
URxvt.internalBorder: 24 URxvt.internalBorder: 24
Xcursor.theme: human
URxvt.perl-ext-common: default,matcher,keyboard-select,resize-font URxvt.perl-ext-common: default,matcher,keyboard-select,resize-font
URxvt.keysym.M-Escape: perl:keyboard-select:activate URxvt.keysym.M-Escape: perl:keyboard-select:activate
URxvt.resize-font.smaller: C-Down URxvt.resize-font.smaller: C-Down
@ -24,10 +38,14 @@ URxvt.url-launcher: /usr/bin/xdg-open
URxvt.matcher.button: 1 URxvt.matcher.button: 1
URxvt*iso14755: False URxvt*iso14755: False
Xft.dpi: 180 # Other Xorg configuration
Xft.autohint: 0 Xcursor.theme: human
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull # Xorg DPI config
Xft.hinting: 1 *dpi: 92
Xft.antialias: 1 *autohint: 0
Xft.rgba: rgb *lcdfilter: lcddefault
*hintstyle: hintfull
*hinting: 1
*antialias: 1
*rgba: rgb

View file

@ -1,3 +0,0 @@
#!/usr/bin/env bash
google-chrome-unstable --force-device-scale-factor=1.5