dotfiles/polybar/config.ini

305 lines
7.9 KiB
INI
Raw Normal View History

2022-03-19 11:20:20 +00:00
;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;
; To learn more about how to configure Polybar
; go to https://github.com/polybar/polybar
;
; The README contains a lot of information
;
;==========================================================
2022-05-14 13:56:21 +01:00
[colors]
2022-07-02 13:39:56 +01:00
background = #0f1610
2022-07-09 10:54:29 +01:00
;background = #112616
2022-03-19 11:20:20 +00:00
foreground = #637d75
2022-05-14 13:56:21 +01:00
foreground-alt = #717f24
primary = #2f7e25
secondary = #2f6a7f
alert = #7f2b26
2022-05-25 21:18:22 +01:00
2022-05-14 13:56:21 +01:00
disabled = #707880
2022-03-19 11:20:20 +00:00
2022-05-14 13:56:21 +01:00
2022-05-15 14:45:38 +01:00
[bar/example]
2022-03-19 11:20:20 +00:00
width = 100%
2022-06-03 23:32:56 +01:00
height = 30
2022-06-18 22:42:54 +01:00
;radius = 6
2022-06-03 23:32:56 +01:00
dpi = 96
2022-06-18 22:42:54 +01:00
;border-top = 5
;border-left = 5
;border-right = 5
2022-05-14 13:56:21 +01:00
monitor = ${env:MONITOR:}
2022-03-19 11:20:20 +00:00
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 2
border-size = 0
border-color = #00000000
2022-06-03 23:32:56 +01:00
;margin-left = 10
padding-left = 3
padding-right = 1
2022-07-09 10:54:29 +01:00
module-margin-left = 3
module-margin-right = 3
2022-05-14 13:56:21 +01:00
;separator = |
;separator-foreground = ${colors.disabled}
2022-03-19 11:20:20 +00:00
2022-06-03 23:32:56 +01:00
font-0 = Inter:pixelsize=11:style=Medium; 2
font-1 = FontAwesome:size=12;1"
font-2 = unicode:fontformat=truetype:size=8:antialias=false;0
2022-05-14 13:56:21 +01:00
font-3 = SymbolsNerdFont:size=15;3
2022-05-15 14:45:38 +01:00
2022-06-18 22:42:54 +01:00
modules-left = my-text-label
2022-07-02 13:39:56 +01:00
modules-center =
modules-right = filesystem1 filesystem2 memory cpu battery temperature backlight pulseaudio bluetooth wlan wakatime date time
2022-03-19 11:20:20 +00:00
tray-position = right
tray-padding = 2
2022-05-14 13:56:21 +01:00
cursor-click = pointer
cursor-scroll = ns-resize
2022-03-19 11:20:20 +00:00
2022-05-14 13:56:21 +01:00
enable-ipc = true
2022-03-19 11:20:20 +00:00
2022-05-14 13:56:21 +01:00
[module/xworkspaces]
type = internal/xworkspaces
label-active = %name%
label-active-foreground = #0f1610
label-active-background = #2f7e25
label-active-padding = 3
label-occupied = %name%
label-occupied-padding = 3
label-occupied-background = #0f1610
label-urgent = %name%
label-urgent-background = ${colors.alert}
label-urgent-padding = 3
label-empty = %name%
label-empty-foreground = ${colors.disabled}
label-empty-padding = 3
[module/xwindow]
type = internal/xwindow
label = %title:0:60:...%
2022-05-15 14:45:38 +01:00
2022-07-02 13:39:56 +01:00
[module/filesystem1]
2022-03-19 11:20:20 +00:00
type = internal/fs
interval = 25
mount-0 = /
2022-05-25 21:18:22 +01:00
#label-mounted = %{F#2f7e25}  %{F-} %percentage_used%% (%used%/%free%)
2022-07-02 13:39:56 +01:00
label-mounted = %{F#2f7e25}  %{F-} %percentage_used%%
2022-05-14 13:56:21 +01:00
label-mounted-underline = #2f7e25
2022-03-19 11:20:20 +00:00
label-unmounted = %mountpoint% not mounted
2022-05-14 13:56:21 +01:00
label-unmounted-foreground = ${colors.disabled}
2022-07-02 13:39:56 +01:00
[module/filesystem2]
type = internal/fs
interval = 25
mount-0 = /home
#label-mounted = %{F#2f7e25}  %{F-} %percentage_used%% (%used%/%free%)
label-mounted = %{F#2f7e25}  %{F-} %percentage_used%%
label-mounted-underline = #2f7e25
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.disabled}
2022-05-14 13:56:21 +01:00
[module/pulseaudio]
type = internal/pulseaudio
2022-05-25 21:18:22 +01:00
format-volume-prefix = " "
2022-05-14 13:56:21 +01:00
format-volume-prefix-foreground = ${colors.primary}
format-volume = <label-volume>
label-volume = %percentage%%
2022-05-25 21:18:22 +01:00
label-muted = "muted"
2022-05-29 19:51:27 +01:00
click-right = exec pavucontrol
2022-05-25 21:18:22 +01:00
label-muted-foreground = ${colors.disabled}
2022-06-04 20:31:03 +01:00
format-volume-underline = #3c4812
2022-05-25 21:18:22 +01:00
format-muted-underline = ${colors.alert}
label-volume-padding = 1
2022-05-14 13:56:21 +01:00
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
label-layout = %layout%
label-layout-foreground = ${colors.primary}
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-foreground = ${colors.background}
label-indicator-background = ${colors.secondary}
[module/memory]
type = internal/memory
interval = 2
2022-05-15 14:45:38 +01:00
format-prefix = ""
2022-05-14 13:56:21 +01:00
format-underline = #707f23
format-prefix-foreground = ${colors.primary}
2022-05-25 21:18:22 +01:00
# label = %percentage_used:2%% (%gb_used%/%gb_free%)
label = %percentage_used:2%%
2022-05-15 14:45:38 +01:00
label-padding = 1
2022-05-25 21:18:22 +01:00
2022-03-19 11:20:20 +00:00
[module/cpu]
type = internal/cpu
interval = 2
2022-05-23 12:43:09 +01:00
format-prefix = " "
2022-06-11 13:32:44 +01:00
format-underline = #7f2b26
2022-05-14 13:56:21 +01:00
format-prefix-foreground = ${colors.primary}
2022-05-23 12:43:09 +01:00
label = %percentage: 2%%
2022-03-19 11:20:20 +00:00
2022-05-14 13:56:21 +01:00
[network-base]
type = internal/network
interval = 5
format-connected = <label-connected>
format-disconnected = <label-disconnected>
label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
2022-03-19 11:20:20 +00:00
[module/wlan]
2022-05-14 13:56:21 +01:00
inherit = network-base
interface-type = wireless
2022-03-19 11:20:20 +00:00
interval = 3.0
format-connected = <ramp-signal> <label-connected>
format-connected-underline = #47577e
label-connected = %essid%
2022-05-19 18:42:31 +01:00
label-disconnected ="No connection"
format-prefix-disconnected =
label-disconnected-padding = 1
2022-05-15 14:45:38 +01:00
label-connected-padding = 1
ramp-signal-0 =
ramp-signal-1 =
ramp-signal-2 =
ramp-signal-3 =
ramp-signal-4 =
2022-05-14 13:56:21 +01:00
ramp-signal-foreground = ${colors.primary}
2022-03-19 11:20:20 +00:00
[module/eth]
2022-05-14 13:56:21 +01:00
inherit = network-base
interface-type = wired
label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
2022-03-19 11:20:20 +00:00
[module/date]
type = internal/date
2022-05-14 13:56:21 +01:00
interval = 1
format-underline = #2f697f
format-prefix-foreground = ${colors.primary}
2022-05-15 14:45:38 +01:00
format-prefix = ""
2022-05-14 13:56:21 +01:00
date = %a %d %b %Y
2022-03-19 11:20:20 +00:00
time = %H:%M
2022-06-11 13:32:44 +01:00
label = %date%
label-padding = 2
[module/time]
type = internal/date
interval = 1
format-underline = #df8008
format-prefix-foreground = ${colors.primary}
format-prefix = ""
date = %a %d %b %Y
time = %H:%M
label = %time%
2022-05-15 14:45:38 +01:00
label-padding = 2
2022-03-19 11:20:20 +00:00
2022-05-14 13:56:21 +01:00
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
format = <ramp> <label>
format-underline = #327f77
format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline}
label = %temperature-c%
label-warn = %temperature-c%
label-warn-foreground = ${colors.alert}
2022-05-15 14:45:38 +01:00
label-padding = 1
label-warn-padding = 2
ramp-0 =
ramp-1 =
ramp-2 =
2022-05-14 13:56:21 +01:00
ramp-foreground = ${colors.primary}
2022-03-19 11:20:20 +00:00
[module/battery]
type = internal/battery
battery = BAT0
adapter = ADP1
2022-05-14 13:56:21 +01:00
full-at = 100
interval = 1
2022-05-15 14:45:38 +01:00
2022-03-19 11:20:20 +00:00
format-charging = <animation-charging> <label-charging>
2022-05-15 14:45:38 +01:00
label-charging-padding = 1
label-discharging-padding = 1
label-full-padding = 1
2022-05-14 13:56:21 +01:00
format-charging-underline = #637d75
2022-03-19 11:20:20 +00:00
format-discharging = <animation-discharging> <label-discharging>
format-discharging-underline = ${self.format-charging-underline}
2022-06-03 23:32:56 +01:00
format-full-prefix = " "
2022-05-14 13:56:21 +01:00
format-full-prefix-foreground = ${colors.primary}
2022-03-19 11:20:20 +00:00
format-full-underline = ${self.format-charging-underline}
ramp-capacity-0 =
2022-05-15 14:45:38 +01:00
ramp-capacity-1 =
2022-03-19 11:20:20 +00:00
ramp-capacity-2 =
2022-05-14 13:56:21 +01:00
ramp-capacity-foreground = ${colors.primary}
2022-03-19 11:20:20 +00:00
2022-05-15 14:45:38 +01:00
animation-charging-0 =
animation-charging-1 =
animation-charging-2 =
animation-charging-3 =
animation-charging-4 =
2022-03-19 11:20:20 +00:00
animation-charging-foreground = ${colors.foreground-alt}
animation-charging-framerate = 750
2022-05-15 14:45:38 +01:00
animation-discharging-0 =
animation-discharging-1 =
animation-discharging-2 =
animation-discharging-3 =
animation-discharging-4 =
2022-05-14 13:56:21 +01:00
animation-discharging-foreground = ${colors.alert}
2022-03-19 11:20:20 +00:00
animation-discharging-framerate = 750
2022-05-14 13:56:21 +01:00
[module/my-text-label]
type = custom/text
content =
content-foreground = #2f6a7f
content-padding = 1
2022-05-15 14:45:38 +01:00
2022-05-25 21:18:22 +01:00
[module/bluetooth]
type = custom/script
exec = ~/.config/polybar/polybar_scripts/launch_bluetooth_manager.sh
interval = 2
format-padding = 1
format-foreground = ${colors.primary}
format-underline = ${colors.primary}
label-padding = 1
2022-06-03 23:32:56 +01:00
[module/backlight]
type = internal/xbacklight
enable-scroll = true
format = <label>
label = %percentage%%
format-prefix = " "
format-prefix-foreground = ${colors.primary}
format-underline = ${colors.primary}
label-padding = 1
2022-06-11 13:32:44 +01:00
[module/wakatime]
type = custom/script
exec = ~/dotfiles/polybar/polybar_scripts/wakatime_status/query_wakatime.sh
interval = 10
format-prefix = " "
format-underline = #707f23
format-prefix-foreground = ${colors.primary}
label-padding = 1
2022-03-19 11:20:20 +00:00
[settings]
screenchange-reload = true
2022-07-02 13:39:56 +01:00
pseudo-transparency = false