366 lines
8.4 KiB
INI
Executable File
366 lines
8.4 KiB
INI
Executable File
;=====================================================
|
|
;
|
|
; To learn more about how to configure Polybar
|
|
; go to https://github.com/jaagr/polybar
|
|
;
|
|
; The README contains alot of information
|
|
;
|
|
;=====================================================
|
|
|
|
[colors]
|
|
bg = #00101010
|
|
bg2 = #20101010
|
|
fg = #f8f8f2
|
|
select = #44475a
|
|
blue = ${env:COLOR_BLUE}
|
|
cyan = ${env:COLOR_CYAN}
|
|
pink = #ff79c6
|
|
purple = #bd93f9
|
|
green = ${env:COLOR_GREEN}
|
|
orange = #ffb86c
|
|
red = #ff5555
|
|
yellow = #f1fa8c
|
|
|
|
;++++++++++++++++++++++
|
|
|
|
;background = ${xrdb:color0:#222}
|
|
background = ${colors.bg}
|
|
background-alt = ${colors.select}
|
|
background-alt2 = ${colors.bg2}
|
|
;foreground = ${xrdb:color7:#222}
|
|
foreground = ${colors.fg}
|
|
foreground-alt = ${colors.select}
|
|
primary = ${colors.purple}
|
|
secondary = ${colors.cyan}
|
|
alert = ${colors.pink}
|
|
|
|
[bar/top]
|
|
monitor = ${env:MONITOR}
|
|
width = 100%
|
|
height = 30
|
|
;offset-x = 1%
|
|
;offset-y = 1%
|
|
radius = 0
|
|
fixed-center = false
|
|
|
|
background = ${colors.background}
|
|
foreground = ${colors.foreground}
|
|
|
|
line-size = 0
|
|
line-color = #f00
|
|
|
|
border-size = 0
|
|
border-color = ${colors.background-alt}
|
|
|
|
spacing = 1
|
|
padding = 1
|
|
|
|
module-margin-left = 2
|
|
module-margin-right = 0
|
|
|
|
font-0 = "xos4 Terminess Powerline:pixelsize=16"
|
|
font-1 = "Font Awesome 5 Free:style=Solid:pixelsize=16;1"
|
|
font-2 = "Font Awesome 5 Brands:style=Regular:pixelsize=16;1"
|
|
|
|
modules-left = filesystem wired-network wireless-network volume
|
|
modules-center = xwindow
|
|
modules-right = battery xkeyboard date
|
|
|
|
tray-position = right
|
|
tray-padding = 1
|
|
tray-background = ${colors.background}
|
|
tray-transparent = true
|
|
scroll-up = i3wm-wsnext
|
|
scroll-down = i3wm-wsprev
|
|
|
|
cursor-click = pointer
|
|
cursor-scroll = ns-resize
|
|
|
|
[bar/bottom]
|
|
monitor = ${env:MONITOR}
|
|
bottom = true
|
|
width = 100%
|
|
height = 30
|
|
|
|
background = ${colors.background}
|
|
foreground = ${colors.foreground}
|
|
|
|
line-color = ${bar/top.background}
|
|
line-size = 2
|
|
|
|
font-0 = "xos4 Terminess Powerline:pixelsize=16"
|
|
font-1 = "Font Awesome 5 Free:style=Solid:pixelsize=16;1"
|
|
font-2 = "Font Awesome 5 Brands:style=Regular:pixelsize=16;1"
|
|
|
|
spacing = 0
|
|
padding = 1
|
|
module-margin-left = 1
|
|
module-margin-right = 1
|
|
|
|
modules-left = i3
|
|
modules-right = cpu memory powermenu
|
|
|
|
border-size = 0
|
|
border-color = ${colors.background}
|
|
|
|
[module/i3]
|
|
type = internal/i3
|
|
format = <label-state> <label-mode>
|
|
index-sort = true
|
|
wrapping-scroll = false
|
|
strip-wsnumbers = true
|
|
|
|
; Only show workspaces on the same output as the bar
|
|
pin-workspaces = true
|
|
|
|
label-mode-padding = 1
|
|
label-mode-foreground = ${colors.foreground}
|
|
label-mode-background = ${colors.background-alt2}
|
|
|
|
; focused = Active workspace on focused monitor
|
|
label-focused = %name%
|
|
label-focused-background = ${colors.background-alt}
|
|
label-focused-underline= ${colors.primary}
|
|
label-focused-padding = 1
|
|
|
|
; unfocused = Inactive workspace on any monitor
|
|
label-unfocused = %index%
|
|
label-unfocused-padding = 1
|
|
|
|
; 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/xwindow]
|
|
type = internal/xwindow
|
|
label = %title:0:30:...%
|
|
format-foreground = ${colors.foreground-alt}
|
|
|
|
[module/xkeyboard]
|
|
type = internal/xkeyboard
|
|
blacklist-0 = num lock
|
|
blacklist-1 = scroll lock
|
|
blacklist-2 = caps lock
|
|
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.yellow}
|
|
|
|
label-layout = %layout%
|
|
|
|
[module/filesystem]
|
|
type = internal/fs
|
|
interval = 25
|
|
|
|
format-mounted = <label-mounted>
|
|
format-unmounted = <label-unmounted>
|
|
|
|
mount-0 = /
|
|
mount-1 = /media
|
|
mount-2 = /home
|
|
spacing = 1
|
|
|
|
label-mounted = ${env:LABEL_MOUNTED}
|
|
label-unmounted =
|
|
label-unmounted-foreground = ${colors.foreground-alt}
|
|
|
|
[module/cpu]
|
|
type = internal/cpu
|
|
interval = 2
|
|
format = <ramp-coreload>
|
|
format-prefix =
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
ramp-coreload-0 = ▁
|
|
ramp-coreload-1 = ▂
|
|
ramp-coreload-2 = ▃
|
|
ramp-coreload-3 = ▄
|
|
ramp-coreload-4 = ▅
|
|
ramp-coreload-5 = ▆
|
|
ramp-coreload-6 = ▇
|
|
ramp-coreload-7 = █
|
|
|
|
[module/memory]
|
|
type = internal/memory
|
|
interval = 2
|
|
format = <bar-used>
|
|
format-prefix =
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
label = %gb_used%/%gb_total%
|
|
|
|
bar-used-indicator =
|
|
bar-used-width = 12
|
|
bar-used-foreground-0 = ${colors.green}
|
|
bar-used-foreground-1 = ${colors.foreground}
|
|
bar-used-foreground-2 = ${colors.orange}
|
|
bar-used-foreground-3 = ${colors.red}
|
|
bar-used-fill = ▐
|
|
bar-used-empty = ▐
|
|
bar-used-empty-foreground = ${colors.foreground-alt}
|
|
|
|
[module/wireless-network]
|
|
type = internal/network
|
|
interface = wlp3s0
|
|
interval = 1.0
|
|
|
|
udspeed-minwidth = 5
|
|
accumulate-stats = true
|
|
format-connected = %{A:networkmanager_dmenu&:}<ramp-signal> <label-connected>%{A}
|
|
format-disconnected = %{A:networkmanager_dmenu&:}<label-disconnected>%{A}
|
|
format-packetloss = <animation-packetloss> <label-connected>
|
|
|
|
label-connected = %essid%
|
|
label-connected-foreground = ${colors.green}
|
|
label-disconnected = %ifname%
|
|
label-disconnected-foreground = ${colors.alert}
|
|
|
|
ramp-signal-0 = ▁
|
|
ramp-signal-1 = ▃
|
|
ramp-signal-2 = ▄
|
|
ramp-signal-3 = ▅
|
|
ramp-signal-4 = ▆
|
|
ramp-signal-5 = █
|
|
; Only applies if <animation-packetloss> is used
|
|
animation-packetloss-0 =
|
|
animation-packetloss-0-foreground = ${colors.yellow}
|
|
animation-packetloss-1 =
|
|
animation-packetloss-1-foreground = ${colors.foreground-alt}
|
|
; Framerate in milliseconds
|
|
animation-packetloss-framerate = 500
|
|
|
|
[module/wired-network]
|
|
type = internal/network
|
|
interface = enp9s0
|
|
interval = 2
|
|
|
|
udspeed-minwidth = 2
|
|
accumulate-stats = true
|
|
format-connected = <label-connected>
|
|
format-disconnected = <label-disconnected>
|
|
format-packetloss = <animation-packetloss> <label-connected>
|
|
|
|
label-connected = ${env:LABEL_NETWORK_CONNECTED}
|
|
label-connected-foreground = ${colors.green}
|
|
label-disconnected = %ifname%
|
|
label-disconnected-foreground = ${colors.alert}
|
|
; Only applies if <animation-packetloss> is used
|
|
animation-packetloss-0 =
|
|
animation-packetloss-0-foreground = ${colors.yellow}
|
|
animation-packetloss-1 =
|
|
animation-packetloss-1-foreground = ${colors.foreground-alt}
|
|
; Framerate in milliseconds
|
|
animation-packetloss-framerate = 500
|
|
|
|
[module/battery]
|
|
type = internal/battery
|
|
full-at = 99
|
|
battery = BAT0
|
|
adapter = ADP1
|
|
time-format = %H:%M
|
|
|
|
format-charging = <animation-charging><label-charging>
|
|
format-discharging = <ramp-capacity><label-discharging>
|
|
format-full-foreground = ${colors.green}
|
|
format-charging-foreground = ${colors.yellow}
|
|
format-discharging-foreground = ${colors.cyan}
|
|
label-charging = %percentage%%
|
|
label-discharging = %time%
|
|
label-full =
|
|
|
|
ramp-capacity-0 =
|
|
ramp-capacity-1 =
|
|
ramp-capacity-2 =
|
|
ramp-capacity-3 =
|
|
ramp-capacity-4 =
|
|
bar-capacity-width = 10
|
|
animation-charging-0 =
|
|
animation-charging-1 =
|
|
animation-charging-2 =
|
|
animation-charging-3 =
|
|
animation-charging-4 =
|
|
; Framerate in milliseconds
|
|
animation-charging-framerate = 500
|
|
poll-interval = 5
|
|
|
|
[module/date]
|
|
type = internal/date
|
|
interval = 5
|
|
|
|
date =
|
|
date-alt = " %d/%m/%Y"
|
|
|
|
time = %H:%M
|
|
time-alt = %H:%M:%S
|
|
|
|
format-prefix-foreground = ${colors.pink}
|
|
format-prefix= " "
|
|
format-underline = ${colors.blue}
|
|
|
|
label = %time%%date%
|
|
|
|
[module/volume]
|
|
type = internal/pulseaudio
|
|
|
|
format-volume = <ramp-volume>: <label-volume>
|
|
label-muted = : MUTE
|
|
label-muted-foreground = ${colors.foreground-alt}
|
|
|
|
ramp-volume-0-foreground = ${colors.cyan}
|
|
ramp-volume-1-foreground = ${colors.cyan}
|
|
ramp-volume-2-foreground = ${colors.cyan}
|
|
ramp-volume-3-foreground = ${colors.red}
|
|
ramp-volume-0 =
|
|
ramp-volume-1 =
|
|
ramp-volume-2 =
|
|
ramp-volume-3 =
|
|
|
|
[module/powermenu]
|
|
type = custom/menu
|
|
|
|
expand-right = true
|
|
|
|
format-spacing = 1
|
|
label-open =
|
|
label-open-foreground = ${colors.red}
|
|
label-close = cancel
|
|
label-close-foreground = ${colors.red}
|
|
label-separator = |
|
|
label-separator-foreground = ${colors.foreground-alt}
|
|
|
|
menu-0-0 = Power
|
|
menu-0-0-exec = menu-open-1
|
|
menu-0-1 = User
|
|
menu-0-1-exec = menu-open-2
|
|
|
|
menu-1-0 = Reboot
|
|
menu-1-0-exec = systemctl reboot
|
|
menu-1-1 = Shutdown
|
|
menu-1-1-exec = systemctl poweroff
|
|
menu-1-2 = Hibernate
|
|
menu-1-2-exec = systemctl hibernate
|
|
menu-1-3 = Suspend
|
|
menu-1-3-exec = systemctl suspend
|
|
|
|
menu-2-0 = Lock
|
|
menu-2-0-exec = bash ~/.i3/scripts/locker.sh
|
|
menu-2-1 = Logout
|
|
menu-2-1-exec = i3-msg exit
|
|
|
|
[settings]
|
|
screenchange-reload = true
|
|
;compositing-background = xor
|
|
;compositing-background = screen
|
|
;compositing-foreground = source
|
|
;compositing-border = over
|
|
|
|
[global/wm]
|
|
margin-top = 0
|
|
margin-bottom = 3
|
|
|
|
; vim:ft=dosini
|