2020-04-15 10:26:40 -05:00
|
|
|
# vim:ft=dosini
|
2020-06-04 08:06:50 -05:00
|
|
|
# _ _
|
|
|
|
# _ __ ___ | |_ _| |__ __ _ _ __
|
2020-04-15 10:26:40 -05:00
|
|
|
# | '_ \ / _ \| | | | | '_ \ / _` | '__|
|
2020-06-04 08:06:50 -05:00
|
|
|
# | |_) | (_) | | |_| | |_) | (_| | |
|
|
|
|
# | .__/ \___/|_|\__, |_.__/ \__,_|_|
|
|
|
|
# |_| |___/
|
2020-04-15 10:26:40 -05:00
|
|
|
#
|
|
|
|
# Copyright (c) 2020 Vintage Salt <rehashedsalt@cock.li>
|
|
|
|
# Distributed under the terms of the MIT License
|
|
|
|
#
|
|
|
|
|
|
|
|
## VARIABLES
|
|
|
|
[res/colors]
|
2020-05-28 20:38:54 -05:00
|
|
|
red = #ed1515
|
|
|
|
green = #11d116
|
|
|
|
yellow = #fdbc4b
|
|
|
|
blue = #1d99f3
|
|
|
|
magenta = #9b59b6
|
|
|
|
cyan = #1abc9c
|
|
|
|
white = #eff0f1
|
|
|
|
black = #232629
|
|
|
|
gray = #31363b
|
2020-04-15 10:34:15 -05:00
|
|
|
|
2020-09-23 01:47:00 -05:00
|
|
|
bg = ${env:PB_COLOR_BG:#232629}
|
|
|
|
fg = ${env:PB_COLOR_FG:#eff0f1}
|
|
|
|
border = ${env:PB_COLOR_BORDER:#31363b}
|
2020-05-28 20:38:54 -05:00
|
|
|
selection = #1d99f3
|
2020-04-15 10:26:40 -05:00
|
|
|
|
|
|
|
[res/config]
|
2020-08-07 14:28:09 -05:00
|
|
|
bar-width = 50
|
2020-05-28 21:19:04 -05:00
|
|
|
bar-fill = |
|
|
|
|
bar-empty = |
|
|
|
|
bar-indicator =
|
2020-05-28 20:31:12 -05:00
|
|
|
border-size = 4
|
2020-04-15 10:26:40 -05:00
|
|
|
padding = 2
|
|
|
|
|
|
|
|
[settings]
|
|
|
|
screenchange-reload = true
|
|
|
|
format-padding = ${res/config.padding}
|
|
|
|
format-background = ${res/colors.bg}
|
|
|
|
|
|
|
|
## BARS
|
|
|
|
[template/bar]
|
|
|
|
bottom = true
|
|
|
|
wm-restack = ${env:PB_WM_RESTACK:i3}
|
|
|
|
tray-maxsize = 16
|
|
|
|
background = ${res/colors.bg}
|
|
|
|
foreground = ${res/colors.fg}
|
|
|
|
border-color = ${res/colors.border}
|
|
|
|
tray-background = ${res/colors.bg}
|
2020-11-01 05:56:13 -06:00
|
|
|
height = 40
|
|
|
|
width = 100%
|
2020-05-28 21:19:04 -05:00
|
|
|
padding = 2
|
2020-11-01 05:56:13 -06:00
|
|
|
border-top-size = ${res/config.border-size}
|
2020-11-02 19:09:46 -06:00
|
|
|
font-0 = "IBM Plex Sans:style=Regular:size=10;2"
|
2020-05-28 21:19:04 -05:00
|
|
|
font-1 = "Deja Vu Sans Mono:style=Regular:size=10;2"
|
2020-11-02 19:09:46 -06:00
|
|
|
font-2 = "IBM Plex Sans:style=Bold:size=10;2"
|
2020-08-28 00:56:35 -05:00
|
|
|
font-3 = "Fork Awesome:style=Regular:size=12;2"
|
2020-04-15 10:26:40 -05:00
|
|
|
|
|
|
|
[bar/primary]
|
|
|
|
monitor = ${env:PB_MONITOR:eDP-1}
|
2020-05-28 21:19:04 -05:00
|
|
|
inherit = template/bar
|
2020-08-29 06:59:15 -05:00
|
|
|
tray-position = center
|
2020-09-22 14:31:17 -05:00
|
|
|
modules-left = i3 bspwm service-ansible service-backup reboot-required
|
2020-08-29 06:59:15 -05:00
|
|
|
modules-right = backlight pulse battery | date
|
2020-05-28 21:19:04 -05:00
|
|
|
|
2020-06-01 15:44:13 -05:00
|
|
|
[bar/secondary]
|
|
|
|
monitor= ${env:PB_MONITOR:HDMI-A-0}
|
|
|
|
inherit = template/bar
|
|
|
|
modules-left = i3 bspwm
|
2020-07-11 09:30:07 -05:00
|
|
|
modules-right = wlan-desktop-stats mpd | date
|
2020-06-01 15:44:13 -05:00
|
|
|
|
2020-04-15 10:26:40 -05:00
|
|
|
## MODULES
|
2020-05-28 21:19:04 -05:00
|
|
|
[module/|]
|
|
|
|
type = custom/text
|
|
|
|
content = |
|
2020-09-23 01:47:00 -05:00
|
|
|
content-foreground = ${res/colors.border}
|
2020-05-28 21:19:04 -05:00
|
|
|
|
2020-04-15 10:26:40 -05:00
|
|
|
[module/backlight]
|
|
|
|
type = internal/xbacklight
|
2020-05-28 21:19:04 -05:00
|
|
|
format = <bar>
|
|
|
|
format-prefix = "BRI: "
|
|
|
|
format-prefix-foreground = ${res/colors.blue}
|
|
|
|
bar-width = ${res/config.bar-width}
|
|
|
|
bar-fill = ${res/config.bar-fill}
|
|
|
|
bar-fill-foreground = ${res/colors.blue}
|
|
|
|
bar-empty = ${res/config.bar-empty}
|
2020-09-23 01:47:00 -05:00
|
|
|
bar-empty-foreground = ${res/colors.border}
|
2020-05-28 21:19:04 -05:00
|
|
|
bar-indicator = ${res/config.bar-indicator}
|
2020-04-15 10:26:40 -05:00
|
|
|
|
|
|
|
[module/battery]
|
|
|
|
type = internal/battery
|
|
|
|
full-at = 100
|
|
|
|
time-format = %H:%M
|
|
|
|
interval = 15
|
|
|
|
|
2020-08-28 00:56:35 -05:00
|
|
|
format-charging = <ramp-capacity>
|
|
|
|
format-discharging = <ramp-capacity>
|
|
|
|
format-full = <ramp-capacity>
|
|
|
|
format-full-foreground = ${res/colors.green}
|
|
|
|
ramp-capacity-0 =
|
|
|
|
ramp-capacity-0-foreground = ${res/colors.yellow}
|
|
|
|
ramp-capacity-1 =
|
|
|
|
ramp-capacity-2 =
|
|
|
|
ramp-capacity-3 =
|
|
|
|
ramp-capacity-4 =
|
2020-04-15 10:26:40 -05:00
|
|
|
|
2020-05-31 18:08:24 -05:00
|
|
|
[module/bspwm]
|
|
|
|
type = internal/bspwm
|
|
|
|
format = <label-state> <label-mode>
|
|
|
|
format-padding = 0
|
|
|
|
enable-scroll = false
|
|
|
|
pin-workspaces = true
|
|
|
|
|
|
|
|
label-mode-padding = 4
|
|
|
|
label-mode-background = ${res/colors.red}
|
|
|
|
label-focused = %name%
|
|
|
|
label-focused-padding = 4
|
2020-06-05 05:08:07 -05:00
|
|
|
label-focused-font = 3
|
2020-05-31 18:08:24 -05:00
|
|
|
label-focused-foreground = ${res/colors.bg}
|
|
|
|
label-focused-background = ${res/colors.selection}
|
|
|
|
label-occupied = %name%
|
|
|
|
label-occupied-padding = 4
|
2020-06-05 05:08:07 -05:00
|
|
|
label-occupied-font = 3
|
2020-08-12 06:08:32 -05:00
|
|
|
label-urgent = %name%
|
|
|
|
label-urgent-padding = 4
|
|
|
|
label-urgent-font = 3
|
|
|
|
label-urgent-foreground = ${res/colors.bg}
|
|
|
|
label-urgent-background = ${res/colors.yellow}
|
2020-05-31 18:08:24 -05:00
|
|
|
label-empty = %name%
|
2020-09-23 01:47:00 -05:00
|
|
|
label-empty-foreground = ${res/colors.border}
|
2020-05-31 18:08:24 -05:00
|
|
|
label-empty-padding = 4
|
|
|
|
|
2020-04-15 10:26:40 -05:00
|
|
|
[module/cpu]
|
|
|
|
type = internal/cpu
|
|
|
|
interval = 1
|
2020-05-28 21:19:04 -05:00
|
|
|
format = <bar-load>
|
|
|
|
format-prefix = "CPU: "
|
|
|
|
format-prefix-foreground = ${res/colors.blue}
|
|
|
|
bar-load-width = ${res/config.bar-width}
|
|
|
|
bar-load-fill = ${res/config.bar-fill}
|
|
|
|
bar-load-fill-foreground = ${res/colors.blue}
|
|
|
|
bar-load-empty = ${res/config.bar-empty}
|
2020-09-23 01:47:00 -05:00
|
|
|
bar-load-empty-foreground = ${res/colors.border}
|
2020-05-28 21:19:04 -05:00
|
|
|
bar-load-indicator = ${res/config.bar-indicator}
|
2020-04-15 10:26:40 -05:00
|
|
|
|
|
|
|
[module/date]
|
|
|
|
type = internal/date
|
|
|
|
date = %a
|
|
|
|
time = %I:%M %p
|
|
|
|
interval = 30
|
|
|
|
format = <label>
|
|
|
|
label = %date% %time%
|
|
|
|
|
2020-05-30 06:28:44 -05:00
|
|
|
[module/fshome]
|
|
|
|
type = internal/fs
|
|
|
|
mount-0 = /home
|
|
|
|
format-mounted = <bar-used> <label-mounted>
|
|
|
|
format-mounted-prefix = "Home: "
|
|
|
|
format-mounted-prefix-foreground = ${res/colors.yellow}
|
2020-08-07 14:27:52 -05:00
|
|
|
format-unmounted =
|
2020-05-30 06:28:44 -05:00
|
|
|
label-mounted = %free% free
|
|
|
|
bar-used-width = ${res/config.bar-width}
|
|
|
|
bar-used-fill = ${res/config.bar-fill}
|
|
|
|
bar-used-fill-foreground = ${res/colors.yellow}
|
|
|
|
bar-used-empty = ${res/config.bar-empty}
|
2020-09-23 01:47:00 -05:00
|
|
|
bar-used-empty-foreground = ${res/colors.border}
|
2020-05-30 06:28:44 -05:00
|
|
|
bar-used-indicator = ${res/config.bar-indicator}
|
|
|
|
|
|
|
|
[module/fsroot]
|
|
|
|
type = internal/fs
|
|
|
|
mount-0 = /
|
|
|
|
format-mounted = <bar-used> <label-mounted>
|
|
|
|
format-mounted-prefix = "Root: "
|
|
|
|
format-mounted-prefix-foreground = ${res/colors.yellow}
|
|
|
|
label-mounted = %free% free
|
|
|
|
bar-used-width = ${res/config.bar-width}
|
|
|
|
bar-used-fill = ${res/config.bar-fill}
|
|
|
|
bar-used-fill-foreground = ${res/colors.yellow}
|
|
|
|
bar-used-empty = ${res/config.bar-empty}
|
2020-09-23 01:47:00 -05:00
|
|
|
bar-used-empty-foreground = ${res/colors.border}
|
2020-05-30 06:28:44 -05:00
|
|
|
bar-used-indicator = ${res/config.bar-indicator}
|
|
|
|
|
2020-04-15 10:26:40 -05:00
|
|
|
[module/i3]
|
|
|
|
type = internal/i3
|
|
|
|
format = <label-state> <label-mode>
|
|
|
|
format-padding = 0
|
|
|
|
enable-scroll = false
|
|
|
|
pin-workspaces = true
|
|
|
|
|
2020-05-28 21:24:08 -05:00
|
|
|
label-mode-padding = 4
|
2020-04-15 10:26:40 -05:00
|
|
|
label-mode-background = ${res/colors.red}
|
|
|
|
label-focused = %name%
|
2020-05-28 21:24:08 -05:00
|
|
|
label-focused-padding = 4
|
2020-04-15 10:34:15 -05:00
|
|
|
label-focused-foreground = ${res/colors.bg}
|
2020-04-15 10:26:40 -05:00
|
|
|
label-focused-background = ${res/colors.selection}
|
|
|
|
label-unfocused = %name%
|
|
|
|
label-unfocused-background = ${res/colors.bg}
|
2020-05-28 21:24:08 -05:00
|
|
|
label-unfocused-padding = 4
|
2020-04-15 10:26:40 -05:00
|
|
|
label-visible = %name%
|
2020-09-23 01:47:00 -05:00
|
|
|
label-visible-background = ${res/colors.border}
|
2020-05-28 21:24:08 -05:00
|
|
|
label-visible-padding = 4
|
2020-04-15 10:26:40 -05:00
|
|
|
|
|
|
|
[module/memory]
|
|
|
|
type = internal/memory
|
2020-05-28 21:19:04 -05:00
|
|
|
format = <bar-used> <label>
|
|
|
|
format-prefix = "Memory: "
|
|
|
|
format-prefix-foreground = ${res/colors.magenta}
|
2020-04-15 10:26:40 -05:00
|
|
|
label = %gb_free:8%
|
2020-05-28 21:19:04 -05:00
|
|
|
bar-used-width = ${res/config.bar-width}
|
|
|
|
bar-used-fill = ${res/config.bar-fill}
|
|
|
|
bar-used-fill-foreground = ${res/colors.magenta}
|
|
|
|
bar-used-empty = ${res/config.bar-empty}
|
2020-09-23 01:47:00 -05:00
|
|
|
bar-used-empty-foreground = ${res/colors.border}
|
2020-05-28 21:19:04 -05:00
|
|
|
bar-used-indicator = ${res/config.bar-indicator}
|
2020-04-15 10:26:40 -05:00
|
|
|
|
2020-06-16 20:29:01 -05:00
|
|
|
[module/mpd]
|
|
|
|
type=internal/mpd
|
|
|
|
format-online=<label-song> <label-time>
|
|
|
|
label-song=%artist% - %title%
|
|
|
|
label-time=%elapsed% / %total%
|
|
|
|
|
2020-04-15 10:26:40 -05:00
|
|
|
[module/pulse]
|
|
|
|
type = internal/pulseaudio
|
2020-08-28 00:56:35 -05:00
|
|
|
format-volume = <label-volume>
|
|
|
|
format-volume-prefix = " "
|
|
|
|
format-muted = <label-muted>
|
|
|
|
format-muted-prefix = " "
|
2020-09-23 01:47:00 -05:00
|
|
|
format-muted-foreground = ${res/colors.border}
|
2020-05-28 21:19:04 -05:00
|
|
|
|
2020-06-05 05:24:17 -05:00
|
|
|
[module/reboot-required]
|
|
|
|
type = custom/script
|
|
|
|
exec = "echo Reboot required"
|
|
|
|
exec-if = "[ -f /var/run/reboot-required ]"
|
|
|
|
format-foreground = ${res/colors.yellow}
|
|
|
|
|
2020-09-22 14:31:17 -05:00
|
|
|
[module/service-ansible]
|
|
|
|
type = custom/script
|
|
|
|
interval = 5
|
|
|
|
exec = "echo "
|
|
|
|
exec-if = "systemctl is-active --quiet ansible-pull.service"
|
|
|
|
format-foreground = ${res/colors.yellow}
|
|
|
|
|
|
|
|
[module/service-backup]
|
|
|
|
type = custom/script
|
|
|
|
interval = 5
|
|
|
|
exec = "echo "
|
|
|
|
exec-if = "systemctl is-active --quiet 9iron-backup.service"
|
|
|
|
format-foreground = ${res/colors.yellow}
|
|
|
|
|
2020-06-01 17:35:59 -05:00
|
|
|
[module/wlan-laptop]
|
2020-05-30 06:28:44 -05:00
|
|
|
type = internal/network
|
2020-08-07 14:07:05 -05:00
|
|
|
interface = wlp0s20f3
|
2020-05-30 06:28:44 -05:00
|
|
|
format-connected-prefix = "WLAN: "
|
|
|
|
format-connected-prefix-foreground = ${res/colors.green}
|
|
|
|
format-disconnected-prefix = "WLAN: "
|
|
|
|
format-disconnected-prefix-foreground = ${res/colors.green}
|
|
|
|
label-connected = %essid%
|
|
|
|
label-disconnected = Disconnected
|
|
|
|
|
2020-06-01 17:35:59 -05:00
|
|
|
[module/wlan-desktop]
|
|
|
|
type = internal/network
|
|
|
|
interface = wlp5s0
|
|
|
|
format-connected-prefix = "WLAN: "
|
|
|
|
format-connected-prefix-foreground = ${res/colors.green}
|
|
|
|
format-disconnected-prefix = "WLAN: "
|
|
|
|
format-disconnected-prefix-foreground = ${res/colors.green}
|
|
|
|
label-connected = %essid%
|
|
|
|
label-disconnected = Disconnected
|
|
|
|
|
2020-07-11 09:30:07 -05:00
|
|
|
[module/wlan-desktop-stats]
|
|
|
|
type = internal/network
|
|
|
|
interface = wlp5s0
|
|
|
|
label-connected = U %upspeed% D %downspeed%
|
|
|
|
|
2020-06-23 03:54:40 -05:00
|
|
|
[module/xkeyboard]
|
|
|
|
type = internal/xkeyboard
|
|
|
|
format = <label-layout>
|
|
|
|
label-layout = %name%
|
|
|
|
|
2020-05-28 21:19:04 -05:00
|
|
|
[module/xwindow]
|
|
|
|
type = internal/xwindow
|
2020-06-01 02:49:54 -05:00
|
|
|
label = %title%
|
|
|
|
label-maxlen = 100
|