This repository has been archived on 2025-01-31. You can view files and clone it, but cannot push or open issues or pull requests.
Files
.backup
.bin
.config
bspwm
conky
dunst
firestarter
htop
i3
mpd
mpv
polybar
config
launch.sh
pulse
qt5ct
rofi
skhd
sxhkd
syncthing-gtk
yabai
compton.conf
dircolors
kglobalshortcutsrc
khotkeysrc
ptgdp.conf
redshift.conf
user-dirs.dirs
user-dirs.locale
.firestarter
.local
.ssh
.vim
.wpgen
.bashrc
.functions
.gitconfig
.gitmodules
.inputrc
.joy2keyrc
.profile
.vimrc
.xinitrc
home/.config/polybar/config
2020-08-08 07:37:59 -05:00

295 lines
7.9 KiB
INI

# vim:ft=dosini
# _ _
# _ __ ___ | |_ _| |__ __ _ _ __
# | '_ \ / _ \| | | | | '_ \ / _` | '__|
# | |_) | (_) | | |_| | |_) | (_| | |
# | .__/ \___/|_|\__, |_.__/ \__,_|_|
# |_| |___/
#
# Copyright (c) 2020 Vintage Salt <rehashedsalt@cock.li>
# Distributed under the terms of the MIT License
#
## VARIABLES
[res/colors]
red = #ed1515
green = #11d116
yellow = #fdbc4b
blue = #1d99f3
magenta = #9b59b6
cyan = #1abc9c
white = #eff0f1
black = #232629
gray = #31363b
bg = #232629
fg = #eff0f1
border = #31363b
selection = #1d99f3
[res/config]
bar-width = 50
bar-fill = |
bar-empty = |
bar-indicator =
border-size = 4
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}
height = 32
width = 100%:-12
offset-x = 6
padding = 2
border-left-size = ${res/config.border-size}
border-right-size = ${res/config.border-size}
font-0 = "Roboto:style=Regular:size=10;2"
font-1 = "Deja Vu Sans Mono:style=Regular:size=10;2"
font-2 = "Roboto:style=Bold:size=10;2"
font-3 = "Material Icons:style=Regular:size=10;2"
[bar/primary]
monitor = ${env:PB_MONITOR:eDP-1}
bottom = false
inherit = template/bar
border-bottom-size = ${res/config.border-size}
tray-position = right
modules-left = i3 bspwm
modules-center = xwindow
modules-right = wlan-laptop wlan-desktop
[bar/primary-2]
monitor = ${env:PB_MONITOR:eDP-1}
inherit = template/bar
border-top-size = ${res/config.border-size}
modules-left = battery cpu memory fsroot fshome reboot-required
modules-right = mpd | backlight pulse | date
[bar/secondary]
monitor= ${env:PB_MONITOR:HDMI-A-0}
bottom = false
inherit = template/bar
border-bottom-size = ${res/config.border-size}
modules-left = i3 bspwm
modules-right = wlan-desktop-stats mpd | date
## MODULES
[module/|]
type = custom/text
content = |
content-foreground = ${res/colors.gray}
[module/backlight]
type = internal/xbacklight
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}
bar-empty-foreground = ${res/colors.gray}
bar-indicator = ${res/config.bar-indicator}
[module/battery]
type = internal/battery
full-at = 100
time-format = %H:%M
interval = 15
format-charging = <bar-capacity>
format-charging-prefix = "Charging: "
format-charging-prefix-foreground = ${res/colors.green}
format-discharging = <bar-capacity>
format-discharging-prefix = "Battery: "
format-discharging-prefix-foreground = ${res/colors.green}
format-full = <bar-capacity>
format-full-prefix = "Battery: "
format-full-prefix-foreground = ${res/colors.green}
bar-capacity-width = ${res/config.bar-width}
bar-capacity-fill = ${res/config.bar-fill}
bar-capacity-fill-foreground = ${res/colors.green}
bar-capacity-empty = ${res/config.bar-empty}
bar-capacity-empty-foreground = ${res/colors.gray}
bar-capacity-indicator = ${res/config.bar-indicator}
[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
label-focused-font = 3
label-focused-foreground = ${res/colors.bg}
label-focused-background = ${res/colors.selection}
label-occupied = %name%
label-occupied-padding = 4
label-occupied-font = 3
label-empty = %name%
label-empty-foreground = ${res/colors.gray}
label-empty-padding = 4
[module/cpu]
type = internal/cpu
interval = 1
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}
bar-load-empty-foreground = ${res/colors.gray}
bar-load-indicator = ${res/config.bar-indicator}
[module/date]
type = internal/date
date = %a
time = %I:%M %p
interval = 30
format = <label>
label = %date% %time%
[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}
format-unmounted =
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}
bar-used-empty-foreground = ${res/colors.gray}
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}
bar-used-empty-foreground = ${res/colors.gray}
bar-used-indicator = ${res/config.bar-indicator}
[module/i3]
type = internal/i3
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
label-focused-foreground = ${res/colors.bg}
label-focused-background = ${res/colors.selection}
label-unfocused = %name%
label-unfocused-background = ${res/colors.bg}
label-unfocused-padding = 4
label-visible = %name%
label-visible-background = ${res/colors.gray}
label-visible-padding = 4
[module/memory]
type = internal/memory
format = <bar-used> <label>
format-prefix = "Memory: "
format-prefix-foreground = ${res/colors.magenta}
label = %gb_free:8%
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}
bar-used-empty-foreground = ${res/colors.gray}
bar-used-indicator = ${res/config.bar-indicator}
[module/mpd]
type=internal/mpd
format-online=<label-song> <label-time>
label-song=%artist% - %title%
label-time=%elapsed% / %total%
[module/pulse]
type = internal/pulseaudio
format-volume = <bar-volume> <label-volume>
format-volume-prefix = "Volume: "
format-volume-foreground = ${res/colors.blue}
format-muted = <bar-volume> <label-muted>
format-muted-prefix = "Volume: "
format-muted-prefix-foreground = ${res/colors.blue}
label-muted = %percentage%%
label-muted-foreground = ${res/colors.gray}
bar-volume-width = ${res/config.bar-width}
bar-volume-fill = ${res/config.bar-fill}
bar-volume-fill-foreground = ${res/colors.blue}
bar-volume-empty = ${res/config.bar-empty}
bar-volume-empty-foreground = ${res/colors.gray}
bar-volume-indicator = ${res/config.bar-indicator}
[module/reboot-required]
type = custom/script
exec = "echo Reboot required"
exec-if = "[ -f /var/run/reboot-required ]"
format-foreground = ${res/colors.yellow}
[module/wlan-laptop]
type = internal/network
interface = wlp0s20f3
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
[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
[module/wlan-desktop-stats]
type = internal/network
interface = wlp5s0
label-connected = U %upspeed% D %downspeed%
[module/xkeyboard]
type = internal/xkeyboard
format = <label-layout>
label-layout = %name%
[module/xwindow]
type = internal/xwindow
label = %title%
label-maxlen = 100