Update config files for polybar, bspwm, and sxhkd

polybar:

- Properly referenced all the xrdb colors
- Decreased the height of the bar to 85 while floating
- Made the border color translucent
- Added line-size (gives line emphasis to modules)

bspwm:

- Decreased window_gap (aka increased the working space)
- Added presel_feedback_color (used when selecting where to open
  new windows)

sxhkd:

- Added super + shift + return to start a new tmux session
- Updated polybar show / hide with new top_padding value
- Added keybind for the private flag
This commit is contained in:
Donovan Glover 2018-04-11 21:13:59 -04:00
parent f5b307c9ac
commit 520bb800ce
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
3 changed files with 47 additions and 30 deletions

View File

@ -7,7 +7,7 @@ sxhkd &
bspc monitor -d 1 2 3 4 5 6 bspc monitor -d 1 2 3 4 5 6
bspc config border_width 3 bspc config border_width 3
bspc config window_gap 50 bspc config window_gap 20
bspc config split_ratio 0.50 bspc config split_ratio 0.50
bspc config borderless_monocle true bspc config borderless_monocle true
@ -24,3 +24,4 @@ bspc config focus_follows_pointer true
bspc config normal_border_color "#C0C5CE" bspc config normal_border_color "#C0C5CE"
bspc config active_border_color "#FFFFFF" bspc config active_border_color "#FFFFFF"
bspc config focused_border_color "#FFFFFF" bspc config focused_border_color "#FFFFFF"
bspc config presel_feedback_color "#C0C5CE"

View File

@ -2,12 +2,15 @@
# Copyright (C) 2017-2018 Donovan Glover # Copyright (C) 2017-2018 Donovan Glover
[color] [color]
background = ${xrdb:color0:#19171C} background = ${xrdb:color0}
background-alt = ${xrdb:color8:#8B8792} red = ${xrdb:color1}
text = ${xrdb:color7:#8B8792} green = ${xrdb:color2}
highlight = ${xrdb:color2:#AF80AC} yellow = ${xrdb:color3}
yellow = ${xrdb:color3:#AF80AC} blue = ${xrdb:color4}
blue = ${xrdb:color6:#AF80AC} magenta = ${xrdb:color5}
cyan = ${xrdb:color6}
text = ${xrdb:color7}
background-alt = ${xrdb:color8}
[bar/main] [bar/main]
modules-left = bspwm modules-left = bspwm
@ -22,29 +25,29 @@ font-1 = "Noto Sans CJK JP:size=22"
# NOTE: You may want to change height to 80 if you don't want float # NOTE: You may want to change height to 80 if you don't want float
# Also do a grep for 80 and change the other places as well # Also do a grep for 80 and change the other places as well
height = 90 height = 85
padding-left = 2 padding-left = 2
padding-right = 2 padding-right = 2
module-margin = 1 module-margin = 1
border-color = ${color.text} border-color = 88FFFFFF
#border-color = BE${color.text}
# Make the bar float # Make the bar float
# NOTE: offset-x should be the same as window_gap in your bspwmrc # NOTE: offset-x should be the same as window_gap in your bspwmrc
offset-x = 50 offset-x = 20
offset-y = 30 # NOTE: offset-y depends on window_gap as well; it's usually the same as offset-x
offset-y = 20
# NOTE: width = screen resolution - offset-x * 2 # NOTE: width = screen resolution - offset-x * 2
width = 3740 width = 3800
# NOTE: border-size should be the same as border_width in your bspwmrc # NOTE: border-size should be the same as border_width in your bspwmrc
border-size = 3 border-size = 3
#line-size = 8 line-size = 8
[module/bspwm] [module/bspwm]
type = internal/bspwm type = internal/bspwm
pin-workspaces = true pin-workspaces = true
label-focused-foreground = ${color.highlight} label-focused-foreground = ${color.green}
label-urgent-foreground = ${color.yellow} label-urgent-foreground = ${color.yellow}
label-occupied-foreground = ${color.text} label-occupied-foreground = ${color.text}
label-empty-foreground = ${color.background-alt} label-empty-foreground = ${color.background-alt}
@ -53,7 +56,7 @@ label-urgent-padding = 2
label-occupied-padding = 2 label-occupied-padding = 2
label-empty-padding = 2 label-empty-padding = 2
label-focused-underline = ${color.highlight} label-focused-underline = ${color.green}
ws-icon-0 = 1;一 ws-icon-0 = 1;一
ws-icon-1 = 2;二 ws-icon-1 = 2;二
@ -69,28 +72,28 @@ ws-icon-9 = 10;十
[module/cpu] [module/cpu]
type = internal/cpu type = internal/cpu
label = CPU: %percentage%% label = CPU: %percentage%%
#format-foreground = ${color.yellow} format-foreground = ${color.blue}
#format-underline = ${color.yellow} format-underline = ${color.blue}
[module/ram] [module/ram]
type = internal/memory type = internal/memory
label = RAM: %gb_used% label = RAM: %gb_used%
#format-foreground = ${color.blue} format-foreground = ${color.cyan}
#format-underline = ${color.blue} format-underline = ${color.cyan}
[module/date] [module/date]
type = internal/date type = internal/date
date = %d.%m.%y date = %d.%m.%y
#date = %B %d, %Y #date = %B %d, %Y
#date = %A #date = %A
#format-foreground = ${color.yellow} format-foreground = ${color.yellow}
#format-underline = ${color.yellow} format-underline = ${color.yellow}
[module/time] [module/time]
type = internal/date type = internal/date
date = %H:%M date = %H:%M
#format-foreground = ${color.blue} format-foreground = ${color.magenta}
#format-underline = ${color.blue} format-underline = ${color.magenta}
[module/battery] [module/battery]
type = internal/battery type = internal/battery
@ -103,16 +106,19 @@ label-discharigng = %percentage%
[module/mpd] [module/mpd]
type = internal/mpd type = internal/mpd
#format-offline = format-offline = No song is currently playing.
label-song-maxlen = 100 label-song-maxlen = 100
label-song-ellipsis = true label-song-ellipsis = true
#format-online = <label-song> [<label-time>] format-online = <label-song>
#format-online-foreground = ${color.text} format-offline-foreground = ${color.cyan}
format-offline-underline = ${color.cyan}
format-online-foreground = ${color.cyan}
format-online-underline = ${color.cyan}
[module/volume] [module/volume]
type = internal/volume type = internal/volume
label-volume = VOL: %percentage%% label-volume = VOL: %percentage%%
#format-volume-foreground = ${color.highlight} format-volume-foreground = ${color.green}
#format-volume-underline = ${color.highlight} format-volume-underline = ${color.green}
; vim:ft=dosini ; vim:ft=dosini

View File

@ -5,6 +5,10 @@
super + Return super + Return
urxvtcd urxvtcd
# Open a new terminal window with tmux
super + shift + Return
urxvtcd -e "tmux"
# Reload sxhkd (applies new keybindings, etc.) # Reload sxhkd (applies new keybindings, etc.)
super + Escape super + Escape
pkill -USR1 -x sxhkd pkill -USR1 -x sxhkd
@ -116,7 +120,8 @@ super + o
# this does not apply to all desktops, so we have to specify it manually here # this does not apply to all desktops, so we have to specify it manually here
# top_padding depends on the height you set in polybar/config # top_padding depends on the height you set in polybar/config
super + O super + O
xdo show -N "Polybar" && bspc config top_padding 80 xdo show -N "Polybar" && bspc config top_padding 128
# xdo show -N "Polybar" && bspc config top_padding 80
# ===================== # =====================
# ===== Preselect ===== # ===== Preselect =====
@ -150,4 +155,9 @@ super + alt + shift + {h,j,k,l}
super + {Left,Down,Up,Right} super + {Left,Down,Up,Right}
bspc node -v {-20 0,0 20,0 -20,20 0} bspc node -v {-20 0,0 20,0 -20,20 0}
# Prevent a node from being changed (resized, moved, etc.)
# when you create new ones
super + y
bspc node focused -g private
# vim:ft=sxhkdrc # vim:ft=sxhkdrc