nixos/home/desktop/config/polybar/polybar.ini

207 lines
5.8 KiB
INI
Raw Normal View History

2023-04-05 22:30:11 +01:00
;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;
; To learn more about how to configure Polybar
; go to https://github.com/polybar/polybar
;
; The README contains a lot of information
;
;==========================================================
[colors]
base = #24273a
mantle = #1e2030
crust = #181926
text = #cad3f5
subtext0 = #a5adcb
subtext1 = #b8c0e0
surface0 = #363a4f
surface1 = #494d64
surface2 = #5b6078
overlay0 = #6e738d
overlay1 = #8087a2
overlay2 = #939ab7
blue = #8aadf4
lavender = #b7bdf8
sapphire = #7dc4e4
sky = #91d7e3
teal = #8bd5ca
green = #a6da95
yellow = #eed49f
peach = #f5a97f
maroon = #ee99a0
red = #ed8796
mauve = #c6a0f6
pink = #f5bde6
flamingo = #f0c6c6
rosewater = #f4dbd6
transparent = #00000000
background = ${colors.base}
background-alt = ${colors.crust}
foreground = ${colors.text}
primary = ${colors.lavender}
secondary = ${colors.mauve}
alert = ${colors.red}
disabled = ${colors.surface0}
[common]
2023-04-05 22:30:11 +01:00
height = 24pt
radius = 6
dpi = 0
font-0 = FiraCode Nerd Font;size=12
font-1 = Iosevka Nerd Font;size=12
font-2 = Noto Sans;size=12
line-size = 3pt
2023-04-05 22:30:11 +01:00
background = ${colors.background}
foreground = ${colors.foreground}
padding = 1
2023-04-05 22:30:11 +01:00
module-margin = 1
border-size = 4pt
border-color = ${colors.background}
wm-restack = generic
override-redirect = false
2023-04-05 22:30:11 +01:00
separator = |
separator-foreground = ${colors.disabled}
enable-ipc = true
2023-04-05 22:30:11 +01:00
[settings]
screenchange-reload = true
pseudo-transparency = false
2023-04-05 22:30:11 +01:00
[bar/main]
inherit = common
width = 100%
2023-04-05 22:30:11 +01:00
modules-left = launcher xworkspaces
modules-right = pulseaudio-control-sink pulseaudio-control-source memory cpu bluetooth wlan eth date power-menu
2023-04-05 22:30:11 +01:00
[module/launcher]
type = custom/text
content = " "
click-left = "rofi -show drun &"
2023-04-05 22:30:11 +01:00
[module/power-menu]
type = custom/text
content = " "
click-left = "~/.dotfiles/scripts/powermenu"
2023-04-05 22:30:11 +01:00
[module/xworkspaces]
type = internal/xworkspaces
icon-0 = "I; "
icon-1 = "II; "
icon-2 = "III; "
icon-3 = "IV; "
icon-4 = "V; "
icon-5 = "VI; "
icon-6 = "VII; "
icon-7 = "VIII; "
icon-default = " "
label-active = %icon%
2023-04-05 22:30:11 +01:00
label-active-background = ${colors.background-alt}
label-active-underline= ${colors.primary}
label-active-padding = 1
label-occupied = %icon%
2023-04-05 22:30:11 +01:00
label-occupied-padding = 1
label-urgent = %icon%
2023-04-05 22:30:11 +01:00
label-urgent-background = ${colors.alert}
label-urgent-padding = 1
label-empty = %icon%
2023-04-05 22:30:11 +01:00
label-empty-foreground = ${colors.disabled}
label-empty-padding = 1
[module/pulseaudio-control-sink]
type = custom/script
label = "%output%"
tail = true
interval = 0
2023-04-08 10:50:54 +01:00
exec = ~/.dotfiles/scripts/pulseaudio-control.bash --icon-muted "󰝟 " --icons-volume "󰕿 ,󰖀 ,󰕾 " --node-nicknames-from device.product.name --node-nickname "alsa_output.pci-0000_2d_00.1.hdmi-stereo*:󰽟 " --node-nickname "alsa_output.pci-0000_2f_00.4.analog-stereo*:󰋎 " --node-type output output
click-left = ~/.dotfiles/scripts/pulseaudio-control.bash --node-type output togmute
click-right = exec pavucontrol &
click-middle = ~/.dotfiles/scripts/pulseaudio-control.bash --node-type output next-node
scroll-up = ~/.dotfiles/scripts/pulseaudio-control.bash --node-type output up
scroll-down = ~/.dotfiles/scripts/pulseaudio-control.bash --node-type output down
[module/pulseaudio-control-source]
type = custom/script
label = "%output%"
tail = true
interval = 0
env-NODE-TYPE = "input"
2023-04-08 10:50:54 +01:00
exec = ~/.dotfiles/scripts/pulseaudio-control.bash --icon-muted "󰍭 " --icons-volume "󰢳 ,󰍬 ,󰢴 " --node-nickname "alsa_input.pci-0000_2f_00.4.analog-stereo*:󰋎 " --node-nickname "*.monitor:󱦉 " --node-type input output
click-left = ~/.dotfiles/scripts/pulseaudio-control.bash --node-type input togmute
click-right = exec pavucontrol &
click-middle = ~/.dotfiles/scripts/pulseaudio-control.bash --node-type input next-node
scroll-up = ~/.dotfiles/scripts/pulseaudio-control.bash --node-type input up
scroll-down = ~/.dotfiles/scripts/pulseaudio-control.bash --node-type input down
2023-04-05 22:30:11 +01:00
[module/memory]
type = internal/memory
interval = 2
format-prefix = "󰍛 "
2023-04-05 22:30:11 +01:00
format-prefix-foreground = ${colors.primary}
label = %percentage_used:2%%
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "󰻠 "
2023-04-05 22:30:11 +01:00
format-prefix-foreground = ${colors.primary}
label = %percentage:2%%
[module/bluetooth]
type = custom/script
exec = ~/.dotfiles/scripts/system-bluetooth-bluetoothctl.sh
tail = true
interval = 0
click-left = ~/.dotfiles/scripts/system-bluetooth-bluetoothctl.sh --toggle &
2023-04-05 22:30:11 +01:00
[network-base]
type = internal/network
interval = 5
format-connected = <label-connected>
format-disconnected = <label-disconnected>
[module/wlan]
inherit = network-base
interface-type = wireless
label-connected = "%{F#b7bdf8}󰖩 {F-} %essid%"
label-disconnected = "%{F#b7bdf8}󰖪 "
2023-04-05 22:30:11 +01:00
[module/eth]
inherit = network-base
interface-type = wired
label-connected = "%{F#b7bdf8}󰈁 "
label-disconnected = "%{F#b7bdf8}󰈂 "
2023-04-05 22:30:11 +01:00
[module/date]
type = internal/date
interval = 1
date = %H:%M
date-alt = %Y-%m-%d %H:%M:%S
label = %date%
label-foreground = ${colors.primary}
; vim:ft=dosini