2018-05-25 21:45:56 +00:00
|
|
|
;=====================================================
|
|
|
|
;
|
|
|
|
; To learn more about how to configure Polybar
|
|
|
|
; go to https://github.com/jaagr/polybar
|
|
|
|
;
|
|
|
|
; The README contains alot of information
|
|
|
|
;
|
|
|
|
;=====================================================
|
|
|
|
|
|
|
|
[settings]
|
|
|
|
compositing-background = over
|
|
|
|
compositing-foreground = over
|
|
|
|
compositing-overline = over
|
|
|
|
compositing-underline = over
|
|
|
|
compositing-border = over
|
|
|
|
|
|
|
|
[colors]
|
|
|
|
background = #EE222222
|
|
|
|
foreground = #dfdfdf
|
|
|
|
|
|
|
|
primary = #0a6cf5
|
|
|
|
secondary = #009646
|
|
|
|
alert = #bd2c40
|
|
|
|
|
|
|
|
[bar/default]
|
|
|
|
width = 100%
|
|
|
|
height = 27
|
|
|
|
radius = 3.0
|
|
|
|
fixed-center = true
|
|
|
|
|
2019-02-05 19:31:53 +00:00
|
|
|
monitor = ${env:MONITOR:}
|
|
|
|
|
2018-05-25 21:45:56 +00:00
|
|
|
background = ${colors.background}
|
|
|
|
foreground = ${colors.foreground}
|
|
|
|
|
|
|
|
line-size = 2
|
|
|
|
line-color = #f00
|
|
|
|
|
|
|
|
border-size = 0
|
|
|
|
border-color = #00000000
|
|
|
|
|
2019-02-05 19:31:53 +00:00
|
|
|
padding-left = 2
|
2018-05-25 21:45:56 +00:00
|
|
|
padding-right = 2
|
|
|
|
|
2019-02-05 19:31:53 +00:00
|
|
|
module-margin-left = 2
|
2018-05-25 21:45:56 +00:00
|
|
|
module-margin-right = 2
|
|
|
|
|
|
|
|
font-0 = Icons:size=10;1
|
|
|
|
font-1 = siji:pixelsize=10;1
|
|
|
|
font-2 = Weather Icons:size=10;1
|
|
|
|
|
|
|
|
modules-left = i3
|
|
|
|
modules-center = datetime openweathermap
|
2019-02-05 19:31:53 +00:00
|
|
|
modules-right = system-usb-udev updates pulseaudio-tail wlan eth xkeyboard battery
|
2018-05-25 21:45:56 +00:00
|
|
|
|
|
|
|
tray-detached = false
|
2019-02-05 19:31:53 +00:00
|
|
|
tray-position = right
|
2018-05-25 21:45:56 +00:00
|
|
|
|
|
|
|
scroll-up = i3wm-wsnext
|
|
|
|
scroll-down = i3wm-wsprev
|
|
|
|
|
|
|
|
[module/xwindow]
|
|
|
|
type = internal/xwindow
|
|
|
|
label = %title:0:30:...%
|
|
|
|
|
|
|
|
[module/xkeyboard]
|
|
|
|
type = internal/xkeyboard
|
|
|
|
blacklist-0 = num lock
|
|
|
|
|
|
|
|
label-layout = %layout%
|
|
|
|
label-layout-underline = ${colors.primary}
|
|
|
|
|
|
|
|
label-indicator = %name%
|
|
|
|
label-indicator-underline = ${colors.secondary}
|
|
|
|
|
|
|
|
[module/openweathermap]
|
|
|
|
type = custom/script
|
|
|
|
exec = ~/bin/openweathermap-simple.sh
|
|
|
|
interval = 600
|
|
|
|
label-font = 3
|
|
|
|
|
|
|
|
[module/filesystem]
|
|
|
|
type = internal/fs
|
|
|
|
interval = 25
|
|
|
|
|
|
|
|
mount-0 = /
|
|
|
|
|
|
|
|
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
|
|
|
|
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
|
|
|
|
|
|
|
|
[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
|
|
|
|
|
|
|
|
label-mode-padding = 2
|
|
|
|
label-mode-foreground = #000
|
|
|
|
label-mode-background = ${colors.primary}
|
|
|
|
|
|
|
|
; focused = Active workspace on focused monitor
|
|
|
|
label-focused = %index%
|
|
|
|
label-focused-background = ${colors.background}
|
|
|
|
label-focused-underline = ${colors.primary}
|
|
|
|
label-focused-padding = 2
|
|
|
|
|
|
|
|
; unfocused = Inactive workspace on any monitor
|
|
|
|
label-unfocused = %index%
|
|
|
|
label-unfocused-padding = 2
|
|
|
|
|
|
|
|
; 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
|
|
|
|
label-urgent = %index%
|
|
|
|
label-urgent-background = ${colors.alert}
|
|
|
|
label-urgent-padding = 2
|
|
|
|
|
|
|
|
[module/wlan]
|
|
|
|
type = internal/network
|
|
|
|
interface = wlo1
|
|
|
|
interval = 3.0
|
|
|
|
|
|
|
|
format-connected = <label-connected>
|
|
|
|
label-connected = ""
|
|
|
|
|
|
|
|
format-disconnected =
|
|
|
|
|
|
|
|
[module/eth]
|
|
|
|
type = internal/network
|
|
|
|
interface = enp8s0
|
|
|
|
interval = 3.0
|
|
|
|
|
|
|
|
format-connected-prefix-foreground = ${colors.foreground-alt}
|
|
|
|
label-connected = ""
|
|
|
|
|
|
|
|
format-disconnected =
|
|
|
|
|
|
|
|
[module/powermenu]
|
|
|
|
type = custom/menu
|
|
|
|
|
|
|
|
format-foreground = ${colors.foreground}
|
|
|
|
format-background = ${colors.background}
|
|
|
|
|
|
|
|
label-open = ""
|
|
|
|
label-open-font = 4
|
|
|
|
label-close = ""
|
|
|
|
label-close-foreground = ${colors.foreground}
|
|
|
|
label-separator = " / "
|
|
|
|
label-separator-foreground = ${colors.foreground}
|
|
|
|
|
|
|
|
; reboot
|
|
|
|
menu-0-1 = ""
|
|
|
|
menu-0-1-exec = systemctl reboot
|
|
|
|
menu-0-1-foreground = ${colors.foreground}
|
|
|
|
; shutdown
|
|
|
|
menu-0-0 = ""
|
|
|
|
menu-0-0-exec = systemctl poweroff
|
|
|
|
menu-0-0-foreground = ${colors.alert}
|
|
|
|
|
|
|
|
[module/datetime]
|
|
|
|
type = custom/script
|
|
|
|
|
|
|
|
exec = date +'%H:%M'
|
|
|
|
|
|
|
|
tail = false
|
2019-01-02 10:53:11 +00:00
|
|
|
interval = 60
|
2018-05-25 21:45:56 +00:00
|
|
|
|
|
|
|
click-left = gsimplecal
|
|
|
|
|
2018-06-10 18:59:46 +00:00
|
|
|
[module/system-usb-udev]
|
|
|
|
type = custom/script
|
|
|
|
exec = ~/bin/system-usb-udev.sh
|
|
|
|
tail = true
|
|
|
|
click-left = ~/bin/system-usb-udev.sh --mount
|
|
|
|
click-right = ~/bin/system-usb-udev.sh --unmount
|
|
|
|
|
2018-05-25 21:45:56 +00:00
|
|
|
[module/pulseaudio-tail]
|
|
|
|
type = custom/script
|
2018-06-10 18:59:46 +00:00
|
|
|
exec = ~/bin/pulseaudio-tail.sh 2> /dev/null
|
2018-05-25 21:45:56 +00:00
|
|
|
tail = true
|
2018-06-10 18:59:46 +00:00
|
|
|
click-right = ~/bin/pulseaudio-tail.sh --show 2> /dev/null
|
|
|
|
click-left = ~/bin/pulseaudio-tail.sh --mute 2> /dev/null
|
|
|
|
scroll-up = ~/bin/pulseaudio-tail.sh --up 2> /dev/null
|
|
|
|
scroll-down = ~/bin/pulseaudio-tail.sh --down 2> /dev/null
|
2018-05-25 21:45:56 +00:00
|
|
|
|
|
|
|
[module/updates]
|
|
|
|
type = custom/script
|
2018-06-10 18:59:46 +00:00
|
|
|
exec = ~/bin/updates.sh 2> /dev/null
|
2018-05-25 21:45:56 +00:00
|
|
|
interval = 600
|
|
|
|
format-prefix = ""
|
|
|
|
format-underline = ${colors.alert}
|
|
|
|
|
|
|
|
[module/battery]
|
|
|
|
type = internal/battery
|
|
|
|
battery = BAT0
|
|
|
|
adapter = AC
|
2018-06-10 18:59:46 +00:00
|
|
|
full-at = 96
|
2018-05-25 21:45:56 +00:00
|
|
|
|
|
|
|
format-charging = <label-charging>
|
|
|
|
format-charging-underline = ${colors.secondary}
|
|
|
|
|
|
|
|
format-discharging = <label-discharging>
|
|
|
|
format-discharging-underline = ${colors.alert}
|
|
|
|
|
|
|
|
[global/wm]
|
|
|
|
margin-top = 5
|
|
|
|
margin-bottom = 5
|