summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-20 14:39:18 -0700
committerDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-20 14:39:18 -0700
commit8b204c6d7270976b6a3c2bfaad87822a119d2564 (patch)
tree16846455b7b59889efa9b345e7c63d3c1612566b /.config
parent6fe0dfc5fe085eddcc9deabfd78e280d1afc113f (diff)
Messing around with polybar
Diffstat (limited to '.config')
-rwxr-xr-x.config/bspwm/bspwmrc6
-rw-r--r--.config/polybar/bspwm.ini22
-rw-r--r--.config/polybar/config276
-rw-r--r--.config/shell/profile3
4 files changed, 159 insertions, 148 deletions
diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc
index f070332..aea7991 100755
--- a/.config/bspwm/bspwmrc
+++ b/.config/bspwm/bspwmrc
@@ -18,9 +18,6 @@ polybar_panel
# Multihead stuff.
if [ $(uname -n) = "arch" ]; then
- export MAINMON="DP-0"
- export SECMON="HDMI-0"
-
# Run a script to select the main monitor.
if [ $(pgrep -f bspwm_enforce_monitor_position | wc -l) < 2]; then
bspwm_enforce_monitor_position $MAINMON '^1' &
@@ -36,7 +33,8 @@ else
fi
# General config.
-bspc config border_width 5
+bspc config top_padding 24
+bspc config border_width 2
bspc config window_gap 5
bspc config split_ratio 0.52
bspc config borderless_monocle true
diff --git a/.config/polybar/bspwm.ini b/.config/polybar/bspwm.ini
new file mode 100644
index 0000000..1c2da93
--- /dev/null
+++ b/.config/polybar/bspwm.ini
@@ -0,0 +1,22 @@
+[module/bspwm]
+type = internal/bspwm
+
+label-focused = %name%
+label-focused-background = ${colors.blue-alt}
+label-focused-foreground = ${colors.black}
+label-focused-underline= ${colors.cyan}
+label-focused-padding = 4
+
+label-occupied = %name%
+label-occupied-padding = 3
+
+label-urgent = %name%!
+label-urgent-background = ${colors.red}
+label-urgent-padding = 2
+
+label-empty = %name%
+label-empty-foreground = ${colors.foreground-alt}
+label-empty-padding = 1
+
+# Separator in between workspaces
+# label-separator = |
diff --git a/.config/polybar/config b/.config/polybar/config
index 8741712..37362f2 100644
--- a/.config/polybar/config
+++ b/.config/polybar/config
@@ -1,71 +1,94 @@
+# vim:ft=dosini
[colors]
-;background = ${xrdb:color0:#222}
-background = #222
-background-alt = #444
-;foreground = ${xrdb:color7:#222}
-foreground = #dfdfdf
-foreground-alt = #555
-primary = #ffb52a
-secondary = #e60053
-alert = #bd2c40
+foreground = ${xrdb:foreground:#F8F8F2}
+background = ${xrdb:background:#282A36}
+foreground-alt = ${xrdb:selbackground:#000000}
+background-alt = ${xrdb:selbackground:#F1FA8C}
+black = ${xrdb:color0:#000000}
+black-alt = ${xrdb:color8:#4D4D4D}
+red = ${xrdb:color1:#FF5555}
+red-alt = ${xrdb:color9:#FF6E67}
+green = ${xrdb:color2:#50FA7B}
+green-alt = ${xrdb:color10:#5AF78E}
+yellow = ${xrdb:color3:#F1FA8C}
+yellow-alt = ${xrdb:color11:#F4F99D}
+blue = ${xrdb:color4:#BD93F9}
+blue-alt = ${xrdb:color12:#CAA9FA}
+purple = ${xrdb:color5:#FF79C6}
+purple-alt = ${xrdb:color13:#FF92D0}
+cyan = ${xrdb:color6:#8BE9FD}
+cyan-alt = ${xrdb:color14:#9AEDFE}
+white = ${xrdb:color7:#BFBFBF}
+white-alt = ${xrdb:color15:#E6E6E6}
+
+[settings]
+screenchange-reload = true
+# compositing-background = xor
+# compositing-background = screen
+# compositing-foreground = source
+# compositing-border = over
+# pseudo-transparency = false
+
+[global/wm]
+margin-top = 0
+margin-bottom = 0
+include-file = /home/lz/.config/polybar/bspwm.ini
[bar/main]
-;monitor = ${env:MONITOR:HDMI-1}
+monitor = ${env:MAINMON:HDMI-0}
width = 100%
-height = 27
-;offset-x = 1%
-;offset-y = 1%
-radius = 6.0
+height = 24
+offset-x = 0%
+offset-y = 0%
+radius = 0.0
fixed-center = false
+font-0 = Noto Sans Mono:pixelsize=10;1
+# font-0 = fixed:pixelsize=10;1
+# font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
+# font-2 = siji:pixelsize=10;1
+
background = ${colors.background}
foreground = ${colors.foreground}
-line-size = 3
-line-color = #f00
+line-size = 2
+line-color = ${colors.blue}
-border-size = 4
-border-color = #00000000
+border-size = 0
+border-color = ${colors.black}
padding-left = 0
-padding-right = 2
+padding-right = 0
module-margin-left = 1
module-margin-right = 2
-font-0 = Noto Sans Mono:pixelsize=10;1
-# font-0 = fixed:pixelsize=10;1
-# font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
-# font-2 = siji:pixelsize=10;1
-
modules-left=bspwm
-modules-center=
-modules-right=
-# modules-left = bspwm i3
-# modules-center = mpd
-# modules-right = filesystem xbacklight alsa pulseaudio xkeyboard memory cpu wlan eth battery temperature date powermenu
+modules-center=xwindow
+modules-right=date pulseaudio
tray-position = right
tray-padding = 2
-;tray-background = #0063ff
+# tray-background = ${colors.cyan}
-;wm-restack = bspwm
-;wm-restack = i3
+override-redirect = true
-;override-redirect = true
+wm-restack = bspwm
+# wm-restack = i3
-;scroll-up = bspwm-desknext
-;scroll-down = bspwm-deskprev
+# scroll-up = bspwm-desknext
+# scroll-down = bspwm-deskprev
-;scroll-up = i3wm-wsnext
-;scroll-down = i3wm-wsprev
+# scroll-up = i3wm-wsnext
+# scroll-down = i3wm-wsprev
cursor-click = pointer
cursor-scroll = ns-resize
-# [module/xwindow]
-# type = internal/xwindow
-# label = %title:0:30:...%
+
+[module/xwindow]
+type = internal/xwindow
+label = %title:0:30:...%
# [module/xkeyboard]
# type = internal/xkeyboard
@@ -73,15 +96,15 @@ cursor-scroll = ns-resize
# format-prefix = " "
# format-prefix-foreground = ${colors.foreground-alt}
-# format-prefix-underline = ${colors.secondary}
+# format-prefix-underline = ${colors.cyan}
# label-layout = %layout%
-# label-layout-underline = ${colors.secondary}
+# label-layout-underline = ${colors.cyan}
# label-indicator-padding = 2
# label-indicator-margin = 1
-# label-indicator-background = ${colors.secondary}
-# label-indicator-underline = ${colors.secondary}
+# label-indicator-background = ${colors.cyan}
+# label-indicator-underline = ${colors.cyan}
# [module/filesystem]
# type = internal/fs
@@ -93,64 +116,42 @@ cursor-scroll = ns-resize
# label-unmounted = %mountpoint% not mounted
# label-unmounted-foreground = ${colors.foreground-alt}
-[module/bspwm]
-type = internal/bspwm
-
-label-focused = %index%
-label-focused-background = ${colors.background-alt}
-label-focused-underline= ${colors.primary}
-label-focused-padding = 2
-
-label-occupied = %index%
-label-occupied-padding = 2
-
-label-urgent = %index%!
-label-urgent-background = ${colors.alert}
-label-urgent-padding = 2
-
-label-empty = %index%
-label-empty-foreground = ${colors.foreground-alt}
-label-empty-padding = 2
-
-; Separator in between workspaces
-; label-separator = |
-
# [module/i3]
# type = internal/i3
# format = <label-state> <label-mode>
# index-sort = true
# wrapping-scroll = false
-; Only show workspaces on the same output as the bar
-;pin-workspaces = true
+# Only show workspaces on the same output as the bar
+# pin-workspaces = true
# label-mode-padding = 2
# label-mode-foreground = #000
-# label-mode-background = ${colors.primary}
+# label-mode-background = ${colors.blue}
-; focused = Active workspace on focused monitor
+# focused = Active workspace on focused monitor
# label-focused = %index%
# label-focused-background = ${colors.background-alt}
-# label-focused-underline= ${colors.primary}
+# label-focused-underline= ${colors.blue}
# label-focused-padding = 2
-; unfocused = Inactive workspace on any monitor
+# unfocused = Inactive workspace on any monitor
# label-unfocused = %index%
# label-unfocused-padding = 2
-; visible = Active workspace on unfocused monitor
+# visible = Active workspace on unfocused monitor
# label-visible = %index%
# label-visible-background = ${self.label-focused-background}
# label-visible-underline = ${self.label-focused-underline}
# label-visible-padding = ${self.label-focused-padding}
-; urgent = Workspace with urgency hint set
+# urgent = Workspace with urgency hint set
# label-urgent = %index%
-# label-urgent-background = ${colors.alert}
+# label-urgent-background = ${colors.red}
# label-urgent-padding = 2
-; Separator in between workspaces
-; label-separator = |
+# Separator in between workspaces
+# label-separator = |
# [module/mpd]
@@ -214,10 +215,10 @@ label-empty-padding = 2
# label-connected = %essid%
# format-disconnected =
-;format-disconnected = <label-disconnected>
-;format-disconnected-underline = ${self.format-connected-underline}
-;label-disconnected = %ifname% disconnected
-;label-disconnected-foreground = ${colors.foreground-alt}
+# format-disconnected = <label-disconnected>
+# format-disconnected-underline = ${self.format-connected-underline}
+# label-disconnected = %ifname% disconnected
+# label-disconnected-foreground = ${colors.foreground-alt}
# ramp-signal-0 = 
# ramp-signal-1 = 
@@ -237,53 +238,53 @@ label-empty-padding = 2
# label-connected = %local_ip%
# format-disconnected =
-;format-disconnected = <label-disconnected>
-;format-disconnected-underline = ${self.format-connected-underline}
-;label-disconnected = %ifname% disconnected
-;label-disconnected-foreground = ${colors.foreground-alt}
-
-# [module/date]
-# type = internal/date
-# interval = 5
-
-# date =
-# date-alt = " %Y-%m-%d"
-
-# time = %H:%M
-# time-alt = %H:%M:%S
-
-# format-prefix = 
-# format-prefix-foreground = ${colors.foreground-alt}
-# format-underline = #0a6cf5
-
-# label = %date% %time%
-
-# [module/pulseaudio]
-# type = internal/pulseaudio
-
-# format-volume = <label-volume> <bar-volume>
-# label-volume = VOL %percentage%%
-# label-volume-foreground = ${root.foreground}
-
-# label-muted = 🔇 muted
-# label-muted-foreground = #666
-
-# bar-volume-width = 10
-# bar-volume-foreground-0 = #55aa55
-# bar-volume-foreground-1 = #55aa55
-# bar-volume-foreground-2 = #55aa55
-# bar-volume-foreground-3 = #55aa55
-# bar-volume-foreground-4 = #55aa55
-# bar-volume-foreground-5 = #f5a70a
-# bar-volume-foreground-6 = #ff5555
-# bar-volume-gradient = false
-# bar-volume-indicator = |
-# bar-volume-indicator-font = 2
-# bar-volume-fill = ─
-# bar-volume-fill-font = 2
-# bar-volume-empty = ─
-# bar-volume-empty-font = 2
-# bar-volume-empty-foreground = ${colors.foreground-alt}
+# format-disconnected = <label-disconnected>
+# format-disconnected-underline = ${self.format-connected-underline}
+# label-disconnected = %ifname% disconnected
+# label-disconnected-foreground = ${colors.foreground-alt}
+
+[module/date]
+type = internal/date
+interval = 5
+
+date =
+date-alt = " %Y-%m-%d"
+
+time = %H:%M
+time-alt = %H:%M:%S
+
+format-prefix = 
+format-prefix-foreground = ${colors.foreground-alt}
+format-underline = #0a6cf5
+
+label = %date% %time%
+
+[module/pulseaudio]
+type = internal/pulseaudio
+
+format-volume = <label-volume> <bar-volume>
+label-volume = VOL %percentage%%
+label-volume-foreground = ${root.foreground}
+
+label-muted = 🔇 muted
+label-muted-foreground = #666
+
+bar-volume-width = 10
+bar-volume-foreground-0 = #55aa55
+bar-volume-foreground-1 = #55aa55
+bar-volume-foreground-2 = #55aa55
+bar-volume-foreground-3 = #55aa55
+bar-volume-foreground-4 = #55aa55
+bar-volume-foreground-5 = #f5a70a
+bar-volume-foreground-6 = #ff5555
+bar-volume-gradient = false
+bar-volume-indicator = |
+bar-volume-indicator-font = 2
+bar-volume-fill = ─
+bar-volume-fill-font = 2
+bar-volume-empty = ─
+bar-volume-empty-font = 2
+bar-volume-empty-foreground = ${colors.foreground-alt}
# [module/alsa]
# type = internal/alsa
@@ -358,7 +359,7 @@ label-empty-padding = 2
# label = %temperature-c%
# label-warn = %temperature-c%
-# label-warn-foreground = ${colors.secondary}
+# label-warn-foreground = ${colors.cyan}
# ramp-0 = 
# ramp-1 = 
@@ -373,9 +374,9 @@ label-empty-padding = 2
# format-spacing = 1
# label-open = 
-# label-open-foreground = ${colors.secondary}
+# label-open-foreground = ${colors.cyan}
# label-close =  cancel
-# label-close-foreground = ${colors.secondary}
+# label-close-foreground = ${colors.cyan}
# label-separator = |
# label-separator-foreground = ${colors.foreground-alt}
@@ -394,16 +395,3 @@ label-empty-padding = 2
# menu-2-1 = cancel
# menu-2-1-exec = menu-open-0
-[settings]
-screenchange-reload = true
-;compositing-background = xor
-;compositing-background = screen
-;compositing-foreground = source
-;compositing-border = over
-;pseudo-transparency = false
-
-[global/wm]
-margin-top = 5
-margin-bottom = 5
-
-; vim:ft=dosini
diff --git a/.config/shell/profile b/.config/shell/profile
index 599924a..0e3856e 100644
--- a/.config/shell/profile
+++ b/.config/shell/profile
@@ -4,6 +4,9 @@
## Modified env vars.
export PATH="$PATH:$(du -L "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
+ ## Useful vars.
+export MAINMON="DP-0"
+export SECMON="HDMI-0"
## Default programs.
export EDITOR="nvim"
export TERMINAL="alacritty"