mirror of
https://github.com/Keyitdev/dotfiles.git
synced 2026-09-24 01:52:09 +00:00
553 lines
12 KiB
INI
Executable File
553 lines
12 KiB
INI
Executable File
; Documentation: https://github.com/polybar/polybar/wiki
|
|
; Config created by Keyitdev https://www.github.com/keyitdev/dotfiles
|
|
; Copyright (C) 2022 Keyitdev
|
|
|
|
;; Global WM Settings
|
|
|
|
[global/wm]
|
|
|
|
margin-bottom = 0
|
|
margin-top = 0
|
|
fixed-center = true
|
|
|
|
include-file = $HOME/.config/polybar/colors.ini
|
|
|
|
;; Application Settings
|
|
|
|
[settings]
|
|
|
|
throttle-output = 5
|
|
throttle-output-for = 10
|
|
screenchange-reload = true
|
|
|
|
; Compositing operators
|
|
|
|
pseudo-transparency = true
|
|
compositing-background = source
|
|
compositing-foreground = over
|
|
compositing-overline = over
|
|
compositing-underline = over
|
|
compositing-border = over
|
|
|
|
;; Bar Settings
|
|
|
|
[bar/main]
|
|
|
|
modules-left = right1 i3 left1 sep right1 mpd left1 sep right1 network left1
|
|
modules-center = right1 date left1
|
|
modules-right = right1 temperature sep2 sep2 cpu sep2 sep2 memory left1 sep right1 backlight sep2 sep2 alsa left1 sep right1 battery left1
|
|
separator =
|
|
|
|
monitor =
|
|
monitor-fallback =
|
|
monitor-strict = false
|
|
override-redirect = false
|
|
wm-name =
|
|
locale =
|
|
|
|
bottom = false
|
|
fixed-center = true
|
|
padding = 0
|
|
width = 100%
|
|
height = 31
|
|
offset-x = 0%
|
|
offset-y = 0%
|
|
radius-top = 0
|
|
radius-bottom = 0
|
|
|
|
background = #002d333f
|
|
foreground = ${color.foreground}
|
|
dim-value = 1.0
|
|
|
|
line-size = 2
|
|
line-color = ${color.background}
|
|
|
|
border-top-size = 8
|
|
border-top-color = #002d333f
|
|
border-left-size = 8
|
|
border-left-color = #002d333f
|
|
border-right-size = 8
|
|
border-right-color = #002d333f
|
|
|
|
font-0 = "Iosevka Nerd Font:size=12;4"
|
|
font-1 = "Iosevka Nerd Font:style=Medium:size=18;4"
|
|
font-2 = "feather:size=13;5"
|
|
|
|
tray-position = right
|
|
tray-detached = false
|
|
tray-maxsize = 16
|
|
tray-background = #002d333f
|
|
tray-offset-x = 0
|
|
tray-offset-y = 0
|
|
tray-padding = 0
|
|
tray-scale = 1.0
|
|
|
|
; Enable support for inter-process messaging
|
|
; See the Messaging wiki page for more details.
|
|
enable-ipc = true
|
|
|
|
[bar/second]
|
|
modules-left = sep2 i3 left1
|
|
modules-center = right1 date left1
|
|
modules-right =
|
|
separator =
|
|
|
|
; Change it for yourself
|
|
; find /sys/devices -name "edid"
|
|
|
|
monitor = HDMI-1
|
|
monitor-fallback =
|
|
monitor-strict = false
|
|
override-redirect = false
|
|
wm-name =
|
|
locale =
|
|
|
|
bottom = false
|
|
fixed-center = true
|
|
padding = 0
|
|
width = 100%
|
|
height = 31
|
|
offset-x = 0%
|
|
offset-y = 0%
|
|
radius-top = 0
|
|
radius-bottom = 0
|
|
|
|
background = #002d333f
|
|
foreground = ${color.foreground}
|
|
dim-value = 1.0
|
|
|
|
line-size = 2
|
|
line-color = ${color.background}
|
|
|
|
border-top-size = 8
|
|
border-top-color = #002d333f
|
|
border-left-size = 8
|
|
border-left-color = #002d333f
|
|
border-right-size = 8
|
|
border-right-color = #002d333f
|
|
|
|
font-0 = "Iosevka Nerd Font:size=12;4"
|
|
font-1 = "Iosevka Nerd Font:style=Medium:size=18;4"
|
|
font-2 = "feather:size=13;5"
|
|
|
|
tray-position = right
|
|
tray-detached = false
|
|
tray-maxsize = 16
|
|
tray-background = ${color.background}
|
|
tray-offset-x = 0
|
|
tray-offset-y = 0
|
|
tray-padding = 0
|
|
tray-scale = 1.0
|
|
|
|
; Enable support for inter-process messaging
|
|
; See the Messaging wiki page for more details.
|
|
enable-ipc = true
|
|
|
|
;; Modules
|
|
|
|
; Don't delete it, it's important
|
|
[glyph]
|
|
gleft =
|
|
gright =
|
|
|
|
[module/left1]
|
|
type = custom/text
|
|
content-background = #002d333f
|
|
content-foreground = ${color.background}
|
|
content = ${glyph.gleft}
|
|
content-font = 2
|
|
|
|
[module/right1]
|
|
type = custom/text
|
|
content-background = #002d333f
|
|
content-foreground = ${color.background}
|
|
content = ${glyph.gright}
|
|
content-font = 2
|
|
|
|
[module/sep]
|
|
type = custom/text
|
|
content = " "
|
|
|
|
[module/sep2]
|
|
type = custom/text
|
|
content = " "
|
|
|
|
content-foreground = ${color.background}
|
|
content-background = ${color.background}
|
|
|
|
[module/alsa]
|
|
type = internal/alsa
|
|
interval = 5
|
|
|
|
master-soundcard = default
|
|
speaker-soundcard = default
|
|
headphone-soundcard = default
|
|
master-mixer = Master
|
|
|
|
format-volume = <ramp-volume> <label-volume>
|
|
format-volume-background = ${color.background}
|
|
format-muted = <label-muted>
|
|
format-muted-background = ${color.background}
|
|
|
|
label-volume = %percentage%%
|
|
label-muted =
|
|
label-muted-foreground =${color.red}
|
|
|
|
ramp-volume-0 =
|
|
ramp-volume-1 =
|
|
ramp-volume-2 =
|
|
ramp-headphones-0 =
|
|
ramp-volume-foreground = ${color.blue}
|
|
|
|
[module/backlight]
|
|
type = internal/backlight
|
|
|
|
; Change it for yourself
|
|
; ls -1 /sys/class/backlight/
|
|
|
|
card = amdgpu_bl0
|
|
use-actual-brightness = true
|
|
enable-scroll = true
|
|
|
|
format = <ramp> <label>
|
|
format-background = ${color.background}
|
|
|
|
label =%percentage%%
|
|
|
|
ramp-0 =
|
|
ramp-1 =
|
|
ramp-foreground = ${color.yellow}
|
|
|
|
[module/battery]
|
|
type = internal/battery
|
|
poll-interval = 2
|
|
|
|
; Change it for yourself
|
|
; ls /sys/class/power_supply/
|
|
|
|
battery = BAT1
|
|
adapter = ADP0
|
|
full-at = 99
|
|
time-format = %H:%M
|
|
|
|
format-charging = <label-charging>
|
|
format-charging-prefix = ""
|
|
format-charging-prefix-foreground = ${color.green}
|
|
format-charging-prefix-background = ${color.background}
|
|
|
|
format-discharging = <label-discharging>
|
|
format-discharging-prefix = ""
|
|
format-discharging-prefix-foreground = ${color.pink}
|
|
format-discharging-prefix-background = ${color.background}
|
|
|
|
format-full = <label-full>
|
|
format-full-prefix =
|
|
format-full-prefix-foreground = ${color.red}
|
|
format-full-prefix-background = ${color.background}
|
|
|
|
label-charging = " %percentage%%"
|
|
label-charging-background = ${color.background}
|
|
|
|
label-discharging = " %percentage%%"
|
|
label-discharging-background = ${color.background}
|
|
|
|
label-full = " Full"
|
|
label-full-background = ${color.background}
|
|
|
|
[module/cpu]
|
|
type = internal/cpu
|
|
interval = 1
|
|
|
|
format = <label>
|
|
format-prefix =
|
|
format-prefix-foreground = ${color.green}
|
|
format-background = ${color.background}
|
|
|
|
label = " %percentage%%"
|
|
|
|
[module/date]
|
|
type = internal/date
|
|
interval = 1
|
|
|
|
; Change it for yourself
|
|
; https://en.cppreference.com/w/cpp/io/manip/put_time
|
|
|
|
date = %a %d %b
|
|
time = %H:%M
|
|
date-alt = %A %d %B %Y
|
|
time-alt = %H:%M:%S
|
|
|
|
format = <label>
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${color.red}
|
|
format-background = ${color.background}
|
|
|
|
label = %date% %time%
|
|
|
|
[module/filesystem]
|
|
type = internal/fs
|
|
interval = 30
|
|
|
|
mount-0 = /
|
|
fixed-values = true
|
|
|
|
format-mounted = <label-mounted>
|
|
format-mounted-prefix =
|
|
format-mounted-prefix-foreground = ${color.orange}
|
|
format-mounted-background = ${color.background}
|
|
|
|
format-unmounted = <label-unmounted>
|
|
format-unmounted-prefix =
|
|
format-unmounted-prefix-foreground = ${color.red}
|
|
format-unmounted-background = ${color.background}
|
|
|
|
label-mounted = " %free%"
|
|
|
|
label-unmounted = " %mountpoint%: NA"
|
|
|
|
[module/i3]
|
|
type = internal/i3
|
|
|
|
pin-workspaces = true
|
|
|
|
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;
|
|
ws-icon-default =
|
|
|
|
; Available tags:
|
|
; <label-state> (default) - gets replaced with <label-(focused|unfocused|visible|urgent)>
|
|
; <label-mode> (default)
|
|
format = <label-state><label-mode>
|
|
|
|
label-mode = %mode%
|
|
label-mode-padding = 1
|
|
label-mode-background = ${color.background}
|
|
label-mode-foreground = ${color.foreground}
|
|
|
|
label-focused = %icon%
|
|
label-focused-foreground = ${color.green}
|
|
label-focused-background = ${color.background}
|
|
label-focused-underline = ${color.green}
|
|
label-focused-padding = 1
|
|
|
|
label-unfocused = %icon%
|
|
label-unfocused-padding = 1
|
|
label-unfocused-background = ${color.background}
|
|
|
|
label-visible = %icon%
|
|
label-visible-underline = ${color.purple}
|
|
label-visible-padding = 1
|
|
label-visible-foreground = ${color.purple}
|
|
label-visible-background = ${color.background}
|
|
|
|
label-urgent = %icon%
|
|
label-urgent-foreground = ${color.red}
|
|
label-urgent-background = ${color.background}
|
|
label-urgent-padding = 1
|
|
|
|
[module/keyboard]
|
|
type = internal/xkeyboard
|
|
|
|
blacklist-0 = num lock
|
|
blacklist-1 = scroll lock
|
|
|
|
format = <label-layout> <label-indicator>
|
|
format-prefix =
|
|
format-prefix-foreground = ${color.cyan}
|
|
format-foreground = ${color.foreground}
|
|
format-background = ${color.background}
|
|
|
|
label-layout = " %layout%"
|
|
|
|
label-indicator-on = "%name%"
|
|
label-indicator-on-foreground = ${color.cyan}
|
|
|
|
[module/memory]
|
|
type = internal/memory
|
|
interval = 1
|
|
|
|
format = <label>
|
|
format-prefix =
|
|
format-prefix-foreground = ${color.purple}
|
|
format-background = ${color.background}
|
|
|
|
label = " %gb_used%"
|
|
|
|
[module/mpd]
|
|
type = internal/mpd
|
|
interval = 1
|
|
|
|
format-online = <label-song> <icon-prev> <toggle> <icon-next>
|
|
format-online-prefix = " "
|
|
format-online-prefix-foreground = ${color.green}
|
|
format-online-background = ${color.background}
|
|
|
|
format-playing = ${self.format-online}
|
|
format-paused = ${self.format-online}
|
|
format-stopped = ${self.format-online}
|
|
|
|
format-offline = <label-offline>
|
|
format-offline-prefix =
|
|
format-offline-prefix-foreground = ${color.red}
|
|
format-offline-background = ${color.background}
|
|
|
|
label-song = " %title%"
|
|
label-song-maxlen = 25
|
|
label-song-ellipsis = true
|
|
|
|
label-time = %elapsed% / %total%
|
|
label-time-background = ${color.background-alt}
|
|
label-time-padding = 1
|
|
|
|
label-offline = " Offline"
|
|
|
|
icon-play =
|
|
icon-play-foreground = ${color.cyan}
|
|
icon-pause =
|
|
icon-pause-foreground = ${color.cyan}
|
|
icon-stop =
|
|
icon-stop-foreground = ${color.red}
|
|
icon-next =
|
|
icon-next-foreground = ${color.cyan}
|
|
icon-prev =
|
|
icon-prev-foreground = ${color.cyan}
|
|
icon-seekf =
|
|
icon-seekb =
|
|
icon-random =
|
|
icon-repeat =
|
|
icon-repeatone =
|
|
icon-single =
|
|
icon-consume =
|
|
|
|
toggle-on-foreground = ${color.primary}
|
|
toggle-off-foreground = ${color.red}
|
|
|
|
; Change it for yourself
|
|
; ls /sys/class/net
|
|
|
|
[module/wired-network]
|
|
type = internal/network
|
|
interface = eth0
|
|
|
|
[module/wireless-network]
|
|
type = internal/network
|
|
interface = wlan0
|
|
|
|
[module/network]
|
|
type = internal/network
|
|
interface = wlan0
|
|
|
|
interval = 1.0
|
|
|
|
accumulate-stats = true
|
|
unknown-as-up = true
|
|
|
|
format-connected = <label-connected>
|
|
format-connected-prefix =
|
|
format-connected-prefix-foreground = ${color.orange}
|
|
format-connected-background = ${color.background}
|
|
format-connected-padding = 0
|
|
|
|
format-disconnected = <label-disconnected>
|
|
format-disconnected-prefix =
|
|
format-disconnected-prefix-foreground = ${color.red}
|
|
format-disconnected-background = ${color.background}
|
|
format-disconnected-padding = 0
|
|
|
|
label-connected = "%{A1:networkmanager_dmenu &:} %essid% %downspeed%%{A}"
|
|
|
|
label-disconnected = "%{A1:networkmanager_dmenu &:} Offline%{A}"
|
|
|
|
; Change it for yourself
|
|
; ls /sys/class/net
|
|
|
|
[module/wired-network_stats]
|
|
type = internal/network
|
|
interface = eth0
|
|
|
|
[module/wireless-network_stats]
|
|
type = internal/network
|
|
interface = wlan0
|
|
|
|
[module/network_stats]
|
|
type = internal/network
|
|
interface = wlan0
|
|
|
|
interval = 1.0
|
|
|
|
accumulate-stats = true
|
|
unknown-as-up = true
|
|
|
|
format-connected = <label-connected>
|
|
format-connected-prefix =
|
|
format-connected-prefix-foreground = ${color.orange}
|
|
format-connected-background = ${color.background}
|
|
format-connected-padding = 0
|
|
|
|
format-disconnected = <label-disconnected>
|
|
format-disconnected-prefix =
|
|
format-disconnected-prefix-foreground = ${color.red}
|
|
format-disconnected-background = ${color.background}
|
|
format-disconnected-padding = 0
|
|
|
|
label-connected = "%{A1:networkmanager_dmenu &:} %{F#6C77BB}%{F-} %downspeed%%{A} %{F#6C77BB}%{F-} %upspeed%%{A}"
|
|
|
|
label-disconnected = "%{A1:networkmanager_dmenu &:} Offline%{A}"
|
|
|
|
[module/temperature]
|
|
type = internal/temperature
|
|
interval = 0.5
|
|
|
|
thermal-zone = 0
|
|
warn-temperature = 80
|
|
units = true
|
|
|
|
format = <ramp> <label>
|
|
format-background = ${color.background}
|
|
|
|
format-warn = <ramp> <label-warn>
|
|
format-warn-background = ${color.background}
|
|
|
|
label = %temperature-c%
|
|
|
|
label-warn = "%temperature-c%"
|
|
label-warn-foreground = ${color.red}
|
|
|
|
ramp-0 =
|
|
ramp-1 =
|
|
ramp-2 =
|
|
ramp-3 =
|
|
ramp-4 =
|
|
ramp-foreground = ${color.cyan}
|
|
|
|
[module/title]
|
|
type = internal/xwindow
|
|
|
|
format = <label>
|
|
format-prefix =
|
|
format-prefix-foreground = ${color.green}
|
|
format-foreground = ${color.foreground}
|
|
format-background = ${color.background}
|
|
|
|
label = " %title%"
|
|
label-maxlen = 30
|
|
|
|
label-empty = " Desktop"
|
|
|
|
[module/uptime]
|
|
type = custom/script
|
|
exec = ~/.config/polybar/uptime.sh
|
|
interval = 1
|
|
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${color.green}
|
|
format-foreground = ${color.foreground}
|
|
format-background = ${color.background} |