189 lines
5.2 KiB
INI
189 lines
5.2 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 = #282A2E
|
|
background-alt = #373B41
|
|
foreground = #C5C8C6
|
|
primary = #F0C674
|
|
secondary = #8ABEB7
|
|
alert = #A54242
|
|
disabled = #707880
|
|
|
|
bg-primary = #0D6EFD
|
|
bg-secondary = #343a40
|
|
bg-orange = #fd7e14
|
|
|
|
[bar/main]
|
|
monitor = ${env:MONITOR:DisplayPort-3}
|
|
height = 30.5pt
|
|
width = 100%
|
|
|
|
fixed-center = true
|
|
|
|
; dpi = 96
|
|
|
|
module-margin = 0
|
|
|
|
background = #55000000
|
|
foreground = ${colors.foreground}
|
|
|
|
line-size = 3pt
|
|
|
|
padding-left = 0
|
|
|
|
font-0 = JetBrains Mono:style=Regular;2
|
|
font-1 = Font Awesome 5 Free,Font Awesome 5 Free Solid:style=Solid;2
|
|
font-2 = Material Icons:style=Regular;3
|
|
font-3 = Font Awesome 5 Brands,Font Awesome 5 Brands Regular:style=Regular;2
|
|
|
|
modules-left = music-player line systray
|
|
modules-center = xworkspaces
|
|
modules-right = pulseaudio-control-output fs-check memory cpu date
|
|
|
|
cursor-click = pointer
|
|
cursor-scroll = ns-resize
|
|
|
|
enable-ipc = true
|
|
|
|
[bar/side-monitor]
|
|
inherit = bar/main
|
|
|
|
modules-left = rofi
|
|
modules-right = date
|
|
|
|
[module/systray]
|
|
type = internal/tray
|
|
|
|
format-padding = 8pt
|
|
tray-spacing = 16pt
|
|
format-background = ${colors.bg-secondary}
|
|
|
|
[module/xworkspaces]
|
|
type = internal/xworkspaces
|
|
|
|
label-active = %name%
|
|
label-active-underline= ${colors.bg-secondary}
|
|
label-active-padding = 1
|
|
|
|
label-occupied = %name%
|
|
label-occupied-padding = 1
|
|
|
|
label-urgent = %name%
|
|
label-urgent-padding = 1
|
|
|
|
label-empty = %name%
|
|
label-empty-foreground = ${colors.disabled}
|
|
label-empty-padding = 1
|
|
|
|
format-foreground = ${colors.bg-secondary}
|
|
format-background = ${colors.bg-orange}
|
|
format-padding = 0
|
|
|
|
[module/memory]
|
|
type = internal/memory
|
|
interval = 2
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.primary}
|
|
label-font = 2
|
|
label = %percentage_used:2%%
|
|
|
|
[module/cpu]
|
|
type = internal/cpu
|
|
interval = 2
|
|
format-prefix = " "
|
|
format-prefix-font = 2
|
|
format-prefix-foreground = ${colors.primary}
|
|
label = %percentage:2%%
|
|
|
|
[module/date]
|
|
type = custom/script
|
|
exec = date +%r
|
|
interval = 1
|
|
|
|
padding = 1
|
|
|
|
label = %output%
|
|
label-foreground = ${colors.primary}
|
|
|
|
format-background = ${colors.bg-secondary}
|
|
click-left = ~/.local/share/pages/dashboard/Dashboard
|
|
|
|
[module/polywins]
|
|
type = custom/script
|
|
exec = ~/.config/polybar/scripts/polywins/polywins.sh
|
|
tail = true
|
|
|
|
format-background = ${colors.bg-orange}
|
|
|
|
[module/rofi]
|
|
type = custom/text
|
|
label =
|
|
label-font = 2
|
|
format-background = ${colors.background-alt}
|
|
|
|
click-left = rofi -show drun
|
|
|
|
[module/fs-check]
|
|
type = custom/script
|
|
exec = ~/.config/polybar/scripts/storage/overview.py
|
|
tail = true
|
|
|
|
label = %output%
|
|
format-prefix =
|
|
format-prefix-font = 2
|
|
click-left = ~/.config/polybar/scripts/storage/open-ranger.sh ~
|
|
|
|
[module/pulseaudio-control-output]
|
|
type = custom/script
|
|
tail = true
|
|
|
|
# Icons mixed from Font Awesome 5 and Material Icons
|
|
# You can copy-paste your options for each possible action, which is more
|
|
# trouble-free but repetitive, or apply only the relevant ones (for example
|
|
# --node-blacklist is only needed for next-node).
|
|
exec = pulseaudio-control --icons-volume " , " --icon-muted " " --node-nicknames-from "device.nick" --node-nickname "alsa_output.pci-0000_08_00.0.iec958-ac3-surround-51.monitor:Speaker" --node-nickname "alsa_output.usb-Razer_Razer_Nari-00.pro-output-1: " listen
|
|
click-middle = exec pavucontrol &
|
|
click-right = pulseaudio-control togmute
|
|
click-left = pulseaudio-control --node-blacklist "alsa_output.usb-Razer_Razer_Nari-00.pro-output-0" next-node
|
|
scroll-up = pulseaudio-control --volume-max 100 up
|
|
scroll-down = pulseaudio-control --volume-max 100 down
|
|
|
|
[module/music-player]
|
|
type = custom/script
|
|
exec = ~/.config/polybar/scripts/player-mpris-tail.py -f '{icon} {:artist:{artist}:}{:artist: - :}{title}' --icon-playing --icon-paused --icon-stopped --icon-none
|
|
tail = true
|
|
click-left = ~/.config/polybar/scripts/player-mpris-tail.py play-pause &
|
|
click-right = ~/.config/polybar/scripts/player-mpris-tail.py next &
|
|
|
|
format-background = ${colors.bg-secondary}
|
|
|
|
[module/line]
|
|
type = custom/text
|
|
label = |
|
|
format-padding = 0
|
|
label-foreground = ${colors.bg-primary}
|
|
|
|
[settings]
|
|
screenchange-reload = true
|
|
pseudo-transparency = true
|
|
|
|
format-background = ${colors.bg-primary}
|
|
format-padding = 1
|
|
|
|
; vim:ft=dosini
|