382 lines
8.9 KiB
Plaintext
382 lines
8.9 KiB
Plaintext
## Copyright (C) 2020-2022 Aditya Shakya <adi1090x@gmail.com>
|
|
## Everyone is permitted to copy and distribute copies of this file under GNU-GPL3
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/volume]
|
|
type = internal/pulseaudio
|
|
|
|
; Sink to be used, if it exists (find using `pacmd list-sinks`, name field)
|
|
; If not, uses default sink
|
|
sink = alsa_output.pci-0000_12_00.3.analog-stereo
|
|
|
|
; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
|
|
; Default: true
|
|
use-ui-max = false
|
|
|
|
; Interval for volume increase/decrease (in percent points)
|
|
; Default: 5
|
|
interval = 5
|
|
|
|
format-volume = <ramp-volume> <label-volume>
|
|
|
|
format-muted = <label-muted>
|
|
format-muted-prefix = 婢
|
|
format-muted-prefix-font = 2
|
|
format-muted-prefix-foreground = ${color.RED}
|
|
|
|
label-volume = %percentage%%
|
|
label-muted = " Mute"
|
|
label-muted-foreground = #757575
|
|
|
|
ramp-volume-0 = 奄
|
|
ramp-volume-1 = 奄
|
|
ramp-volume-2 = 奄
|
|
ramp-volume-3 = 奔
|
|
ramp-volume-4 = 奔
|
|
ramp-volume-5 = 奔
|
|
ramp-volume-6 = 墳
|
|
ramp-volume-7 = 墳
|
|
ramp-volume-8 = 墳
|
|
ramp-volume-9 = 墳
|
|
ramp-volume-font = 2
|
|
ramp-volume-foreground = ${color.BLUE}
|
|
|
|
ramp-headphones-0 =
|
|
ramp-headphones-1 =
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/bna]
|
|
type = custom/text
|
|
|
|
content = " NA"
|
|
content-prefix =
|
|
content-prefix-font = 2
|
|
content-prefix-foreground = ${color.RED}
|
|
content-padding = 0
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/backlight]
|
|
type = internal/xbacklight
|
|
|
|
card = intel_backlight
|
|
|
|
format = <ramp> <label>
|
|
|
|
label = %percentage%%
|
|
|
|
ramp-0 =
|
|
ramp-1 =
|
|
ramp-2 =
|
|
ramp-3 =
|
|
ramp-4 =
|
|
ramp-5 =
|
|
ramp-6 =
|
|
ramp-7 =
|
|
ramp-8 =
|
|
ramp-9 =
|
|
ramp-font = 2
|
|
ramp-foreground = ${color.MAGENTA}
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/brightness]
|
|
type = internal/backlight
|
|
|
|
card = ${system.graphics_card}
|
|
|
|
enable-scroll = true
|
|
|
|
format = <ramp> <label>
|
|
|
|
label = %percentage%%
|
|
|
|
ramp-0 =
|
|
ramp-1 =
|
|
ramp-2 =
|
|
ramp-3 =
|
|
ramp-4 =
|
|
ramp-5 =
|
|
ramp-6 =
|
|
ramp-7 =
|
|
ramp-8 =
|
|
ramp-9 =
|
|
ramp-font = 2
|
|
ramp-foreground = ${color.MAGENTA}
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/battery]
|
|
type = internal/battery
|
|
|
|
full-at = 99
|
|
|
|
battery = ${system.battery}
|
|
adapter = ${system.adapter}
|
|
|
|
poll-interval = 2
|
|
time-format = %H:%M
|
|
|
|
format-charging = <animation-charging> <label-charging>
|
|
format-charging-prefix =
|
|
|
|
format-discharging = <ramp-capacity> <label-discharging>
|
|
|
|
format-full = <label-full>
|
|
format-full-prefix = " "
|
|
format-full-prefix-font = 2
|
|
format-full-prefix-foreground = ${color.RED}
|
|
|
|
label-charging = %percentage%%
|
|
label-discharging = %percentage%%
|
|
label-full = %percentage%%
|
|
|
|
ramp-capacity-0 =
|
|
ramp-capacity-1 =
|
|
ramp-capacity-2 =
|
|
ramp-capacity-3 =
|
|
ramp-capacity-4 =
|
|
ramp-capacity-font = 2
|
|
ramp-capacity-foreground = ${color.YELLOW}
|
|
|
|
animation-charging-0 =
|
|
animation-charging-1 =
|
|
animation-charging-2 =
|
|
animation-charging-3 =
|
|
animation-charging-4 =
|
|
animation-charging-font = 2
|
|
animation-charging-foreground = ${color.GREEN}
|
|
animation-charging-framerate = 750
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/bspwm]
|
|
type = internal/bspwm
|
|
|
|
pin-workspaces = true
|
|
inline-mode = false
|
|
|
|
enable-click = true
|
|
enable-scroll = true
|
|
reverse-scroll = true
|
|
|
|
fuzzy-match = true
|
|
|
|
; ws-icon-[0-9]+ = label;icon
|
|
; Note that the label needs to correspond with the bspwm workspace name
|
|
ws-icon-0 = I;
|
|
ws-icon-1 = II;
|
|
ws-icon-2 = III;
|
|
ws-icon-3 = IV;
|
|
ws-icon-4 = V;
|
|
ws-icon-5 = VI;
|
|
ws-icon-6 = VII;
|
|
ws-icon-7 = VIII;
|
|
ws-icon-default =
|
|
|
|
format = <label-state>
|
|
format-font = 2
|
|
|
|
label-monitor = %name%
|
|
|
|
; If any values for label-dimmed-N are defined, the workspace/mode
|
|
; colors will get overridden with those values if the monitor is out of focus
|
|
; To only override workspaces in a specific state, use:
|
|
; label-dimmed-focused
|
|
; label-dimmed-occupied
|
|
; label-dimmed-urgent
|
|
; label-dimmed-empty
|
|
;label-dimmed-foreground = ${color.FOREGROUND}
|
|
;label-dimmed-underline = ${color.YELLOW}
|
|
;label-dimmed-focused-background = ${color.BACKGROUND}
|
|
|
|
label-focused = %name%
|
|
label-focused-foreground = ${color.BLUE}
|
|
label-focused-background = ${color.BACKGROUND}
|
|
label-focused-underline = ${color.BLUE}
|
|
label-focused-padding = 1
|
|
|
|
label-occupied = %name%
|
|
label-occupied-foreground = ${color.GREEN}
|
|
label-occupied-background = ${color.BACKGROUND}
|
|
;label-occupied-underline = ${color.GREEN}
|
|
label-occupied-padding = 1
|
|
|
|
label-urgent = %name%
|
|
label-urgent-foreground = ${color.RED}
|
|
label-urgent-background = ${color.BACKGROUND}
|
|
label-urgent-underline = ${color.RED}
|
|
label-urgent-padding = 1
|
|
|
|
label-empty = %name%
|
|
label-empty-foreground = ${color.FOREGROUND}
|
|
label-empty-padding = 1
|
|
|
|
; Separator in between workspaces
|
|
label-separator = "∙"
|
|
label-separator-padding = 0
|
|
label-separator-foreground = ${color.ALTBLACK}
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/mod]
|
|
type = internal/bspwm
|
|
|
|
format = <label-mode>
|
|
format-background = ${color.YELLOW}
|
|
format-foreground = ${color.BACKGROUND}
|
|
format-padding = 1
|
|
|
|
label-monocle = "Monocle"
|
|
label-tiled = "Tiled"
|
|
|
|
label-floating = ", Float"
|
|
label-pseudotiled = ", Pseudo"
|
|
label-fullscreen = ", Full"
|
|
|
|
label-locked = " | Locked"
|
|
label-sticky = " | Sticky"
|
|
label-private = " | Private"
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/date]
|
|
type = internal/date
|
|
|
|
interval = 1.0
|
|
|
|
time = %I:%M %p
|
|
time-alt = %A, %d %B %Y
|
|
|
|
format = <label>
|
|
format-prefix = " "
|
|
format-prefix-font = 3
|
|
format-prefix-foreground = ${color.RED}
|
|
|
|
label = %time%
|
|
label-font = 4
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/mpd]
|
|
type = internal/mpd
|
|
|
|
;;host = 127.0.0.1
|
|
;;port = 6600
|
|
;;password = mysecretpassword
|
|
|
|
interval = 2
|
|
|
|
format-online = <label-song> <icon-prev> <toggle> <icon-next>
|
|
format-online-prefix = " "
|
|
format-online-prefix-foreground = ${color.GREEN}
|
|
|
|
format-playing = ${self.format-online}
|
|
format-paused = <label-song> <toggle>
|
|
|
|
format-offline = <label-offline>
|
|
format-offline-prefix = " "
|
|
format-offline-prefix-foreground = ${color.RED}
|
|
label-offline = "Offline"
|
|
|
|
label-song = "%title% | %artist%"
|
|
label-song-maxlen = 40
|
|
label-song-ellipsis = true
|
|
|
|
icon-play =
|
|
icon-play-font = 2
|
|
icon-play-foreground = ${color.GREEN}
|
|
icon-pause =
|
|
icon-pause-font = 2
|
|
icon-pause-foreground = ${color.YELLOW}
|
|
icon-stop =
|
|
icon-stop-foreground = ${color.RED}
|
|
icon-prev = 玲
|
|
icon-prev-font = 2
|
|
icon-prev-foreground = ${color.CYAN}
|
|
icon-next = 怜
|
|
icon-next-font = 2
|
|
icon-next-foreground = ${color.CYAN}
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
; If you use both a wired and a wireless network, add both modules in config.
|
|
[module/ethernet]
|
|
type = internal/network
|
|
interface = ${system.network_interface}
|
|
|
|
interval = 1.0
|
|
accumulate-stats = true
|
|
unknown-as-up = true
|
|
|
|
format-connected = <label-connected>
|
|
format-connected-prefix = " "
|
|
format-connected-prefix-font = 3
|
|
format-connected-prefix-foreground = ${color.CYAN}
|
|
|
|
format-disconnected = <label-disconnected>
|
|
format-disconnected-prefix = " "
|
|
format-disconnected-prefix-font = 3
|
|
format-disconnected-prefix-foreground = ${color.RED}
|
|
|
|
label-connected = "%{A1:networkmanager_dmenu &:}%downspeed% | %upspeed%%{A}"
|
|
label-disconnected = "%{A1:networkmanager_dmenu &:}Offline%{A}"
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/network]
|
|
type = internal/network
|
|
interface = ${system.network_interface}
|
|
|
|
interval = 1.0
|
|
|
|
;;ping-interval = 3
|
|
;;udspeed-minwidth = 5
|
|
|
|
accumulate-stats = true
|
|
unknown-as-up = true
|
|
|
|
format-connected = <ramp-signal> <label-connected>
|
|
|
|
format-disconnected = <label-disconnected>
|
|
format-disconnected-prefix = " "
|
|
format-disconnected-prefix-font = 3
|
|
format-disconnected-prefix-foreground = ${color.RED}
|
|
|
|
label-connected = "%{A1:nmd &:}%essid%%{A}"
|
|
label-disconnected = "%{A1:nmd &:}Disconnected%{A}"
|
|
|
|
ramp-signal-0 =
|
|
ramp-signal-1 =
|
|
ramp-signal-2 =
|
|
ramp-signal-3 =
|
|
ramp-signal-4 =
|
|
ramp-signal-font = 3
|
|
ramp-signal-foreground = ${color.CYAN}
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/sep]
|
|
type = custom/text
|
|
content = ◆
|
|
|
|
content-background = ${color.BACKGROUND}
|
|
content-foreground = ${color.BLACK}
|
|
content-padding = 2
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
[module/player-mpris-tail]
|
|
type = custom/script
|
|
exec = "/usr/bin/python ~/.config/polybar-scripts/player-mpris-tail.py -f '{icon} {:artist:t18:{artist}:}{:artist: - :}{:t20:{title}:} %{A1:/usr/bin/python ~/.config/polybar-scripts/player-mpris-tail.py previous -b vlc -b plasma-browser-integration:} ⏮ %{A} %{A1:/usr/bin/python ~/.config/polybar-scripts/player-mpris-tail.py play-pause -b vlc -b plasma-browser-integration:} {icon-reversed} %{A} %{A1:/usr/bin/python ~/.config/polybar-scripts/player-mpris-tail.py next -b vlc -b plasma-browser-integration:} ⏭ %{A}' -b vlc -b plasma-browser-integration"
|
|
tail = true
|
|
interval = 5
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
;; __________ ______
|
|
;; / ____/ __ \/ ____/
|
|
;; / __/ / / / / /_
|
|
;; / /___/ /_/ / __/
|
|
;; /_____/\____/_/
|
|
;;
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-BSP="$HOME/.config/bspwm/themes"_-_-_-_-_-_-_-_
|