250 lines
5.5 KiB
INI
250 lines
5.5 KiB
INI
# vim:ft=dosini
|
|
|
|
[colors]
|
|
background = #000000
|
|
foreground = #ffffff
|
|
urgent = #e06c75
|
|
yellow = #d19a66
|
|
accent = #98c379
|
|
i3 = ${colors.accent}
|
|
|
|
############################## BARS
|
|
[bar/laptop]
|
|
monitor = ${env:MONITOR}
|
|
|
|
font-0 = "Product Sans:pixelsize=11:weight=regular;3"
|
|
font-1 = "Product Sans:pixelsize=11:weight=bold;3"
|
|
font-2 = "Noto Sans CJK JP:antialiase=false:pixelsize=11;2"
|
|
font-3 = "Material Design Icons:size=12;3"
|
|
|
|
height = 30px
|
|
width = 100%
|
|
|
|
module-margin-right = 2
|
|
module-margin-left = 2
|
|
|
|
separator =
|
|
|
|
locale =
|
|
|
|
modules-left = i3 spotify
|
|
modules-center = date time
|
|
modules-right = cpu memory network volume battery
|
|
|
|
tray-position = right
|
|
tray-padding = 1
|
|
|
|
foreground = ${colors.foreground}
|
|
background = ${colors.background}
|
|
|
|
line-size = 0
|
|
|
|
wm-name = i3
|
|
wm-restack = i3
|
|
|
|
[bar/desktop]
|
|
inherit = bar/laptop
|
|
|
|
modules-right = cpu memory volume
|
|
|
|
[bar/desktop_second]
|
|
inherit = bar/desktop
|
|
|
|
tray-position = none
|
|
|
|
############################## MODULES
|
|
[module/i3]
|
|
type = internal/i3
|
|
pin-workspaces = true
|
|
wrapping-scroll = false
|
|
format = <label-state> <label-mode>
|
|
|
|
ws-icon-0 = 1;一
|
|
ws-icon-1 = 2;二
|
|
ws-icon-2 = 3;三
|
|
ws-icon-3 = 4;四
|
|
ws-icon-4 = 5;五
|
|
ws-icon-5 = 6;六
|
|
ws-icon-6 = 7;七
|
|
ws-icon-7 = 8;八
|
|
ws-icon-8 = 9;九
|
|
ws-icon-9 = 10;十
|
|
|
|
label-focused = "%icon%"
|
|
label-focused-foreground = ${colors.background}
|
|
label-focused-background = ${colors.i3}
|
|
label-focused-padding = 2
|
|
|
|
label-unfocused = "%icon%"
|
|
label-unfocused-padding = 2
|
|
|
|
label-visible = "%icon%"
|
|
label-visible-padding = 2
|
|
|
|
label-urgent = "%icon%"
|
|
label-urgent-background = ${colors.urgent}
|
|
label-urgent-foreground = ${colors.background}
|
|
label-urgent-padding = 2
|
|
|
|
label-mode = "%mode%"
|
|
label-mode-padding = 2
|
|
label-mode-foreground = ${colors.urgent}
|
|
|
|
[module/xwindow]
|
|
type = internal/xwindow
|
|
label = %title%
|
|
label-maxlen = 100
|
|
label-underline = ${colors.accent}
|
|
|
|
[module/date]
|
|
type = internal/date
|
|
date = %{T2}%A%{T-}, %B %d
|
|
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.accent}
|
|
format-underline = ${colors.accent}
|
|
|
|
[module/time]
|
|
type = internal/date
|
|
date = %{T2}%H:%M%{T-}
|
|
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.accent}
|
|
format-underline = ${colors.accent}
|
|
|
|
[module/backlight]
|
|
type = internal/backlight
|
|
#ls -1 /sys/class/backlight
|
|
card = amdgpu_bl0
|
|
label = %percentage%%
|
|
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.accent}
|
|
format-underline = ${colors.accent}
|
|
|
|
[module/battery]
|
|
type = internal/battery
|
|
battery = BAT0
|
|
apdapter = ADP1
|
|
|
|
format-charging = <animation-charging> <label-charging>
|
|
label-charging = %percentage%%
|
|
animation-charging-foreground = ${colors.accent}
|
|
format-charging-underline = ${colors.yellow}
|
|
|
|
format-discharging = <ramp-capacity> <label-discharging>
|
|
label-discharging = %percentage%%
|
|
format-discharging-underline = ${colors.accent}
|
|
|
|
format-full = <ramp-capacity> <label-full>
|
|
label-full = %percentage%%
|
|
format-full-underline = ${colors.accent}
|
|
|
|
ramp-capacity-foreground = ${colors.accent}
|
|
ramp-capacity-0 =
|
|
ramp-capacity-1 =
|
|
ramp-capacity-2 =
|
|
ramp-capacity-3 =
|
|
ramp-capacity-4 =
|
|
ramp-capacity-5 =
|
|
ramp-capacity-6 =
|
|
ramp-capacity-7 =
|
|
ramp-capacity-8 =
|
|
ramp-capacity-9 =
|
|
|
|
animation-charging-0 =
|
|
animation-charging-1 =
|
|
animation-charging-2 =
|
|
animation-charging-3 =
|
|
animation-charging-4 =
|
|
animation-charging-5 =
|
|
animation-charging-6 =
|
|
animation-charging-7 =
|
|
animation-charging-8 =
|
|
animation-charging-9 =
|
|
animation-charging-framerate = 200
|
|
|
|
[module/volume]
|
|
type = internal/pulseaudio
|
|
format-volume = <label-volume>
|
|
|
|
label-volume = %percentage%%
|
|
format-volume-prefix = " "
|
|
format-volume-prefix-foreground = ${colors.accent}
|
|
format-volume-underline = ${colors.accent}
|
|
|
|
label-muted = Muted
|
|
format-muted-prefix = " "
|
|
format-muted-foreground = ${colors.urgent}
|
|
format-muted-underline = ${colors.urgent}
|
|
|
|
ramp-volume-0 =
|
|
ramp-volume-1 =
|
|
ramp-volume-2 =
|
|
|
|
ramp-headphones-0 =
|
|
ramp-headphones-1 =
|
|
|
|
[module/network]
|
|
type = internal/network
|
|
interface = wlo1
|
|
interval = 3.0
|
|
accumulate-stats = true
|
|
unknown-as-up = true
|
|
|
|
label-connected = %essid%
|
|
format-connected-prefix = " "
|
|
format-connected-prefix-foreground = ${colors.accent}
|
|
format-connected-underline = ${colors.accent}
|
|
|
|
label-disconnected = "No Wifi"
|
|
format-disconnected-prefix = " "
|
|
format-disconnected-prefix-foreground = ${colors.accent}
|
|
format-disconnected-underline = ${colors.urgent}
|
|
|
|
[module/update_yay]
|
|
type = custom/script
|
|
exec = ~/.config/polybar/scripts/yay_updates.sh
|
|
tail = true
|
|
interval = 600
|
|
click-left = alacritty -e yay &
|
|
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.accent}
|
|
format-underline = ${colors.accent}
|
|
|
|
[module/spotify]
|
|
type = custom/script
|
|
exec = python ~/.config/polybar/scripts/spotify_status.py -f '{artist}: {song}'
|
|
interval = 1
|
|
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.accent}
|
|
format-underline = ${colors.accent}
|
|
|
|
[module/cpu]
|
|
type = custom/script
|
|
exec = ~/.config/polybar/scripts/cpu.sh
|
|
click-left = ~/.config/polybar/scripts/cpu.sh --popup
|
|
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.accent}
|
|
format-underline = ${colors.accent}
|
|
|
|
[module/memory]
|
|
type = custom/script
|
|
exec = ~/.config/polybar/scripts/memory.sh
|
|
click-left = ~/.config/polybar/scripts/memory.sh --popup
|
|
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.accent}
|
|
format-underline = ${colors.accent}
|
|
|
|
[module/temp]
|
|
type = custom/script
|
|
exec = ~/.config/polybar/scripts/temp.sh
|
|
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.accent}
|
|
format-underline = ${colors.accent}
|