249 lines
6.3 KiB
INI
249 lines
6.3 KiB
INI
|
;==========================================================
|
||
|
;
|
||
|
;
|
||
|
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
||
|
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
||
|
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
||
|
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
||
|
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
||
|
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
||
|
;
|
||
|
;
|
||
|
; To learn more about how to configure Polybar
|
||
|
; go to https://github.com/polybar/polybar
|
||
|
;
|
||
|
; The README contains a lot of information
|
||
|
;
|
||
|
;==========================================================
|
||
|
|
||
|
[colors]
|
||
|
background = #1b172c
|
||
|
foreground = #6349c2
|
||
|
active = #79b3f9
|
||
|
alert = #c22d5f
|
||
|
success = #6de18a
|
||
|
|
||
|
[bar/default]
|
||
|
monitor = ${env:MONITOR:LVDS1}
|
||
|
width = 100%
|
||
|
height = 16
|
||
|
padding = 1
|
||
|
|
||
|
background = ${colors.background}
|
||
|
foreground = ${colors.foreground}
|
||
|
separator = " "
|
||
|
font-0 = lemon:pixelsize=7
|
||
|
font-1 = xos4 Terminus:pixelsize=9
|
||
|
font-2 = Unifont:pixelsize=9
|
||
|
|
||
|
cursor-click = pointer
|
||
|
cursor-scroll = ns-resize
|
||
|
|
||
|
|
||
|
[bar/tray]
|
||
|
inherit = bar/default
|
||
|
modules-left = time time-dia workspace
|
||
|
modules-right = btn-lamp kbd-speed kbd-layout brightness volume
|
||
|
tray-position = right
|
||
|
tray-detached = false
|
||
|
tray-padding = 3
|
||
|
wm-restack = i3
|
||
|
bottom = true
|
||
|
# override-redirect = true
|
||
|
|
||
|
|
||
|
[bar/main]
|
||
|
inherit = bar/default
|
||
|
modules-left = memory cpu battery temperature rootfs
|
||
|
modules-center = music-prev music music-next
|
||
|
modules-right = net-wlan0 net-wlan1 net-eth0 net-eth1 net-usb0 net-all
|
||
|
|
||
|
[module/time]
|
||
|
type = internal/date
|
||
|
interval = 1.0
|
||
|
time = %I:%M:%S
|
||
|
label = %time%
|
||
|
|
||
|
[module/time-dia]
|
||
|
type = custom/script
|
||
|
interval = 5
|
||
|
exec = TZ=Europe/Warsaw date "+[Dia:%I:%M]"
|
||
|
|
||
|
;==================================================
|
||
|
; SYSTEM STATS (i.e RAM/CPU/HDD/TEMP/BATTERY)
|
||
|
;==================================================
|
||
|
[module/memory]
|
||
|
type = internal/memory
|
||
|
interval = 1
|
||
|
format = "[MEM:<label>]"
|
||
|
label = %percentage_used:3%%
|
||
|
|
||
|
[module/cpu]
|
||
|
type = internal/cpu
|
||
|
interval = 1
|
||
|
format = "[CPU:<label>]"
|
||
|
label = %percentage:3%%
|
||
|
|
||
|
[module/rootfs]
|
||
|
type = internal/fs
|
||
|
interval = 30
|
||
|
mount-0 = /
|
||
|
mount-1 = /mnt/windows
|
||
|
mount-2 = /run/media/hkc/626A60A76A607A25
|
||
|
format-mounted = [<label-mounted>]
|
||
|
label-mounted = %mountpoint%:%percentage_used:2%%
|
||
|
label-warn = %mountpoint%:%percentage_used:2%%
|
||
|
format-warn = [%{F#c22d5f}<label-warn>%{F-}]
|
||
|
|
||
|
[module/temperature]
|
||
|
type = internal/temperature
|
||
|
thermal-zone = 0
|
||
|
base-temperature = 40
|
||
|
warn-temperature = 60
|
||
|
format = "[T:<label>]"
|
||
|
format-warn = "[T!<label-warn>]"
|
||
|
format-warn-foreground = ${colors.alert}
|
||
|
label = "%temperature-c:3%"
|
||
|
label-warn = %temperature-c:3%
|
||
|
|
||
|
[module/battery]
|
||
|
type = internal/battery
|
||
|
battery = BAT0
|
||
|
adapter = AC
|
||
|
full-at = 100
|
||
|
format-charging = <label-charging>
|
||
|
format-discharging = <label-discharging>
|
||
|
format-full = "<label-full>"
|
||
|
label-full = "[BAT:FULL]"
|
||
|
label-charging = "[BAT:%percentage%%]"
|
||
|
label-discharging = "[BAT:%percentage%%]"
|
||
|
|
||
|
[module/dirtymem]
|
||
|
type = custom/script
|
||
|
exec = (while sleep 0.5; do grep Dirty /proc/meminfo; done) | ~/scripts/cplot "([0-9]+(\\.[0-9]+)?) kB"
|
||
|
tail = true
|
||
|
|
||
|
|
||
|
;==================================================
|
||
|
; NETWORK USAGE INFO
|
||
|
;==================================================
|
||
|
[module/net-base]
|
||
|
type = internal/network
|
||
|
interval = 1
|
||
|
label-connected = "%local_ip%@%ifname%"
|
||
|
label-connected-foreground = ${colors.active}
|
||
|
label-disconnected = "OFFLINE@%ifname%"
|
||
|
label-disconnected-foreground = ${colors.foreground}
|
||
|
format-connected = "[<label-connected>]"
|
||
|
format-disconnected = "[<label-disconnected>]"
|
||
|
|
||
|
[module/net-all]
|
||
|
type = custom/script
|
||
|
exec = ~/.config/polybar/info-speed enp0s25 wlp3s0
|
||
|
tail = true
|
||
|
|
||
|
[module/net-wlan0]
|
||
|
inherit = module/net-base
|
||
|
label-connected = "w:%essid%:%local_ip%"
|
||
|
format-connected = "[<label-connected>]"
|
||
|
interface = wlp3s0
|
||
|
|
||
|
[module/net-wlan1]
|
||
|
inherit = module/net-base
|
||
|
label-connected = "w1:%essid%"
|
||
|
format-connected = "[<label-connected>]"
|
||
|
interface = wlan1
|
||
|
|
||
|
[module/net-eth0]
|
||
|
inherit = module/net-base
|
||
|
interface = enp0s25
|
||
|
|
||
|
[module/net-eth1]
|
||
|
inherit = module/net-base
|
||
|
interface = eth1
|
||
|
|
||
|
[module/net-usb0]
|
||
|
inherit = module/net-base
|
||
|
interface = wlp0s29f7u1
|
||
|
unknown-as-up = true
|
||
|
|
||
|
|
||
|
;==================================================
|
||
|
; GENERIC SETTINGS (i.e volume/brightness/etc)
|
||
|
;==================================================
|
||
|
[module/volume]
|
||
|
type = internal/alsa
|
||
|
format-volume = "[<label-volume>]"
|
||
|
format-muted = "[<label-muted>]"
|
||
|
label-volume = "%percentage:3%%"
|
||
|
label-muted = "%percentage:3%%"
|
||
|
|
||
|
[module/workspace]
|
||
|
type = internal/i3
|
||
|
label-focused-foreground = ${colors.active}
|
||
|
|
||
|
[module/kbd-layout]
|
||
|
type = internal/xkeyboard
|
||
|
blacklist-0 = num lock
|
||
|
blacklist-1 = scroll lock
|
||
|
format = [<label-layout>|<label-indicator>]
|
||
|
label-layout = %layout%
|
||
|
label-indicator-on-capslock = "%{F#6da18a}C%{F-}"
|
||
|
label-indicator-off-capslock = "c"
|
||
|
|
||
|
[module/kbd-speed]
|
||
|
type = custom/script
|
||
|
exec = ~/.config/polybar/info-typespeed.sh
|
||
|
tail = true
|
||
|
|
||
|
[module/brightness]
|
||
|
type = internal/xbacklight
|
||
|
output = ${env:MONITOR:eDP-1}
|
||
|
enable-scroll = true
|
||
|
format = "[<ramp>]"
|
||
|
ramp-0 = "d"
|
||
|
ramp-1 = "l"
|
||
|
ramp-2 = "m"
|
||
|
ramp-3 = "B"
|
||
|
ramp-4 = "F"
|
||
|
|
||
|
[module/music]
|
||
|
type = custom/script
|
||
|
exec = printf "%s - %s" "$(playerctl metadata xesam:artist)" "$(playerctl metadata xesam:title)"
|
||
|
click-left = playerctl play-pause
|
||
|
click-middle = playerctl stop
|
||
|
scroll-up = playerctl volume 0.05+
|
||
|
scroll-down = playerctl volume 0.05-
|
||
|
interval = 1
|
||
|
|
||
|
[module/music-next]
|
||
|
type = custom/script
|
||
|
exec = "echo \\>"
|
||
|
click-left = playerctl next
|
||
|
|
||
|
[module/music-prev]
|
||
|
type = custom/script
|
||
|
exec = "echo \\<"
|
||
|
click-left = playerctl previous
|
||
|
|
||
|
[module/btn-lamp]
|
||
|
type = custom/script
|
||
|
exec = echo "[lamp]"
|
||
|
click-left = "curl http://roomlamp.dumbies.l.cf/index?tgl=130"
|
||
|
|
||
|
|
||
|
[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
|