polybar
This commit is contained in:
commit
d06f0d0824
275
config
Normal file
275
config
Normal file
@ -0,0 +1,275 @@
|
||||
\;==========================================================
|
||||
;
|
||||
;
|
||||
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
||||
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
||||
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
||||
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
||||
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
||||
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
||||
;
|
||||
;
|
||||
; To learn more about how to configure Polybar
|
||||
; go to https://github.com/polybar/polybar
|
||||
;
|
||||
; The README contains a lot of information
|
||||
;
|
||||
;==========================================================
|
||||
|
||||
[colors]
|
||||
|
||||
foreground = #fff
|
||||
background = #ab0000000
|
||||
vpn = #82E0AA
|
||||
white = #fff
|
||||
|
||||
; _
|
||||
; | |__ __ _ _ __ ___
|
||||
; | '_ \ / _` | '__/ __|
|
||||
; | |_) | (_| | | \__ \
|
||||
; |_.__/ \__,_|_| |___/
|
||||
|
||||
[bar/bar]
|
||||
enable-ipc=true
|
||||
height = 40
|
||||
width = 100%
|
||||
;bottom = true
|
||||
padding = 7
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
line-size = 2
|
||||
|
||||
font-0=SF Pro Display:style=Regular:size=20;4
|
||||
font-1=SF Pro Display:style=Semibold:size=20;4
|
||||
font-2=Material Icons:size=20;4
|
||||
font-3=font\-logos:size=20;5
|
||||
font-4=FontAwesome:style=Regular:size=20;4
|
||||
font-5=IPAGothic:size=20;4
|
||||
font-6=Wuncon Siji:style=Regular=2;4
|
||||
|
||||
modules-center = time
|
||||
modules-right = wlan vpn-nordvpn-status pulseaudio backlight-acpi battery powermenu
|
||||
|
||||
; i3
|
||||
modules-left = launcher i3 xwindow
|
||||
scroll-up = i3wm-wsnext
|
||||
scroll-down = i3wm-wsprev
|
||||
;wm-restack = i3
|
||||
override-redirect = false
|
||||
|
||||
|
||||
; _ _
|
||||
; _ __ ___ ___ __| |_ _| | ___ ___
|
||||
; | '_ ` _ \ / _ \ / _` | | | | |/ _ \/ __|
|
||||
; | | | | | | (_) | (_| | |_| | | __/\__ \
|
||||
; |_| |_| |_|\___/ \__,_|\__,_|_|\___||___/
|
||||
|
||||
[module/launcher]
|
||||
type=custom/text
|
||||
content =
|
||||
content-margin = 2
|
||||
click-left=launcher
|
||||
;The script above is to be found here : https://github.com/ngynLk/scripts
|
||||
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
format = <label-state> <label-mode>
|
||||
format-margin = 4
|
||||
index-sort = true
|
||||
|
||||
enable-click = true
|
||||
reverse-scroll = false
|
||||
|
||||
label-focused = %index%
|
||||
label-focused-underline = ${colors.foreground}
|
||||
label-focused-padding = 4
|
||||
label-focused-font = 2
|
||||
|
||||
label-unfocused = %index%
|
||||
label-unfocused-padding = 4
|
||||
|
||||
label-urgent = !
|
||||
label-urgent-padding = 5
|
||||
label-urgent-underline = ${colors.background}
|
||||
label-urgent-font = 2
|
||||
|
||||
;ws-icon-0 = 1;
|
||||
;ws-icon-1 = 2;
|
||||
;ws-icon-2 = 3;
|
||||
;ws-icon-9 = 10;
|
||||
;ws-icon-default =
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
label = %title:0:75:...%
|
||||
label-empty = Empty
|
||||
label-empty-font = 2
|
||||
label-font = 2
|
||||
format-margin = 4
|
||||
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
interface = wlp0s20f3
|
||||
interval = 3.0
|
||||
|
||||
format-connected = <label-connected>
|
||||
label-connected = %essid%
|
||||
label-connected-color1 = ${colors.color1}
|
||||
|
||||
format-disconnected = <label-disconnected>
|
||||
label-disconnected = %ifname% disconnected
|
||||
label-disconnected-color1 = ${colors.color1}
|
||||
|
||||
ramp-signal-0 =
|
||||
ramp-signal-1 =
|
||||
ramp-signal-2 =
|
||||
ramp-signal-3 =
|
||||
ramp-signal-4 =
|
||||
ramp-signal-color1 = ${colors.color1}
|
||||
format-margin = 4
|
||||
|
||||
[module/vpn-nordvpn-status]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/vpn-nordvpn-status.sh
|
||||
format = <label>
|
||||
interval = 5
|
||||
format-foreground = ${colors.vpn}
|
||||
format-margin = 4
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
|
||||
; This is useful in case the battery never reports 100% charge
|
||||
full-at = 99
|
||||
|
||||
; Use the following command to list batteries and adapters:
|
||||
; $ ls -1 /sys/class/power_supply/
|
||||
battery = BAT0
|
||||
adapter = ADP1
|
||||
|
||||
; If an inotify event haven't been reported in this many
|
||||
; seconds, manually poll for new values.
|
||||
;
|
||||
; Needed as a fallback for systems that don't report events
|
||||
; on sysfs/procfs.
|
||||
;
|
||||
; Disable polling by setting the interval to 0.
|
||||
;
|
||||
; Default: 5
|
||||
poll-interval = 5
|
||||
format-charging = <animation-charging> <label-charging>
|
||||
format-discharging = <ramp-capacity> <label-discharging>
|
||||
label-charging = %percentage%%
|
||||
label-discharging = %percentage%%
|
||||
label-full = Fully charged
|
||||
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-3 =
|
||||
ramp-capacity-4 =
|
||||
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-3 =
|
||||
animation-charging-4 =
|
||||
|
||||
animation-charging-framerate = 750
|
||||
format-margin = 4
|
||||
|
||||
[module/time]
|
||||
type = internal/date
|
||||
interval = 10
|
||||
format-margin = 4
|
||||
|
||||
time = "%I:%M"
|
||||
date = "%d %b"
|
||||
|
||||
label = %time% | %date%
|
||||
label-background = ${colors.background}
|
||||
label-padding = 2
|
||||
|
||||
[module/backlight-acpi]
|
||||
type = internal/backlight
|
||||
card = intel_backlight
|
||||
format-backlight = <ramp-backlight> <label-backlight>
|
||||
label-backlight = %percentage:4:4%%
|
||||
format-foreground = ${colors.foreground}
|
||||
format-background = ${colors.background}
|
||||
format-margin = 4
|
||||
|
||||
ramp-backlight-0 = 🌕
|
||||
ramp-backlight-1 = 🌔
|
||||
ramp-backlight-2 = 🌓
|
||||
ramp-backlight-3 = 🌒
|
||||
ramp-backlight-4 =
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
|
||||
;format-volume-margin = 4
|
||||
format-volume = <ramp-volume><label-volume>
|
||||
label-volume = %percentage:4:4%%
|
||||
format-volume-background = ${colors.background}
|
||||
format-volume-padding = 0
|
||||
use-ui-max = false
|
||||
interval = 5
|
||||
|
||||
ramp-volume-0 = ""
|
||||
ramp-volume-1 = ""
|
||||
ramp-volume-2 = ""
|
||||
|
||||
;format-muted-margin = 6
|
||||
label-muted = " muted"
|
||||
label-muted-background = ${colors.background}
|
||||
label-muted-padding = 0
|
||||
|
||||
[module/powermenu]
|
||||
type = custom/menu
|
||||
|
||||
expand-right = false
|
||||
|
||||
format-margin = 6
|
||||
format-spacing = 2
|
||||
|
||||
label-open =
|
||||
label-close =
|
||||
label-separator = |
|
||||
|
||||
; reboot
|
||||
menu-0-1 =
|
||||
menu-0-1-exec = menu-open-2
|
||||
; poweroff
|
||||
menu-0-2 =
|
||||
menu-0-2-exec = menu-open-3
|
||||
; logout
|
||||
menu-0-0 =
|
||||
menu-0-0-exec = menu-open-1
|
||||
|
||||
menu-2-0 =
|
||||
menu-2-0-exec = reboot
|
||||
|
||||
menu-3-0 =
|
||||
menu-3-0-exec = poweroff
|
||||
|
||||
menu-1-0 =
|
||||
menu-1-0-exec = i3-msg exit || openbox --exit
|
||||
|
||||
[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
|
||||
|
||||
; vim:ft=dosini
|
||||
|
||||
dpi = 192
|
Loading…
x
Reference in New Issue
Block a user