dotfiles/dot_config/polybar/custom_modules.ini
2022-12-22 04:07:12 -05:00

107 lines
5.5 KiB
INI

[module/sep]
type = custom/text
content = |
content-foreground = ${color.sep}
[module/powermenu]
type = custom/menu
; If true, <label-toggle> will be to the left of the menu items (default).
; If false, it will be on the right of all the items.
expand-right = true
; "menu-LEVEL-N" has the same properties as "label-NAME" with
; the additional "exec" property
;
; Available exec commands:
; menu-open-LEVEL
; menu-close
; Other commands will be executed using "/usr/bin/env sh -c $COMMAND"
menu-0-0 = " Log Out |"
menu-0-0-exec = menu-open-1
menu-0-1 = " Suspend |"
menu-0-1-exec = menu-open-2
menu-0-2 = " Reboot |"
menu-0-2-exec = menu-open-3
menu-0-3 = " Shutdown "
menu-0-3-exec = menu-open-4
menu-1-0 = " Back |"
menu-1-0-exec = menu-open-0
menu-1-1 = " Log Out "
menu-1-1-exec = loginctl kill-session $XDG_SESSION_ID
menu-2-0 = " Back |"
menu-2-0-exec = menu-open-0
menu-2-1 = " Suspend "
menu-2-1-exec = systemctl suspend
menu-2-2 = " Suspend-then-Hibernate "
menu-2-2-exec = systemctl suspend-then-hibernate
menu-2-3 = " Hibernate "
menu-2-3-exec = systemctl hibernate
menu-3-0 = " Back |"
menu-3-0-exec = menu-open-0
menu-3-1 = " Reboot "
menu-3-1-exec = systemctl reboot
menu-4-0 = " Back |"
menu-4-0-exec = menu-open-0
menu-4-1 = " Shutdown "
menu-4-1-exec = systemctl poweroff
; Available tags:
; <label-toggle> (default) - gets replaced with <label-(open|close)>
; <menu> (default)
; Note that if you use <label-toggle> you must also include
; the definition for <label-open>
format = <label-toggle><menu>
label-open =
label-open-foreground = ${color.dark-cyan}
label-open-padding = 1
label-close =
label-close-foreground = ${color.red}
label-close-padding = 1
; Optional item separator
; Default: none
;label-separator = " | "
;label-separator-foreground = ${color.foreground}
;label-separator-background = ${color.background-alt}
;;label-open-foreground = ${color.foreground}
;;label-close-foreground = ${color.background}
[module/pulseaudio-control]
type = custom/script
tail = true
;format-underline = ${colors.cyan}
;label-padding = 2
;label-foreground = ${color.foreground}
label-foreground = ${color.blue}
# 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
# --sink-blacklist is only needed for next-sink).
exec = pulseaudio-control --icons-volume " , , " --icon-muted " " --node-nicknames-from "device.profile.description" listen
#exec = pulseaudio-control --icons-volume " , , " --icon-muted " " --sink-nicknames-from "device.description" --sink-nickname "alsa_output.pci-0000_00_1b.0.analog-stereo: Speakers" --sink-nickname "alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo: Headphones" listen
click-right = exec pavucontrol &
click-left = pulseaudio-control togmute
click-middle = pulseaudio-control next-sink
#click-middle = pulseaudio-control --sink-blacklist "alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2" next-sink
scroll-up = pulseaudio-control --volume-max 130 up
scroll-down = pulseaudio-control --volume-max 130 down
[module/spotify]
type = custom/script
interval = 1
format-prefix = " "
format = <label>
exec = python /usr/bin/polybar-spotify -f '{artist}: {song}'
format-prefix-foreground = ${color.dark-green}
;format-underline = ${color.green}