289 lines
9.5 KiB
INI
Executable File
289 lines
9.5 KiB
INI
Executable File
;; ┌──────────────────────────────────────────────────────────────────────────────-----┐
|
|
;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█░█░█▀▀░█▀▀░█▀▄░░░█▄█░█▀█░█▀▄░█░█░█░░░█▀▀░█▀▀ │
|
|
;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░█░▀▀█░█▀▀░█▀▄░░░█░█░█░█░█░█░█░█░█░░░█▀▀░▀▀█ │
|
|
;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀░▀░░░▀░▀░▀▀▀░▀▀░░▀▀▀░▀▀▀░▀▀▀░▀▀▀ │
|
|
;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│
|
|
;; └──────────────────────────────────────────────────────────────────────────────-----┘
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/pulseaudio-control]
|
|
type = custom/script
|
|
tail = true
|
|
label-padding = 0
|
|
label-foreground = ${colors.foreground}
|
|
|
|
exec = pulseaudio-control --osd --color-muted bdc3c7 --icons-volume " , " --icon-muted " " --sink-nicknames-from "device.description" --sink-nickname "alsa_output.pci-0000_01_00.1.hdmi-stereo-extra3:(HDMI)" --sink-nickname "alsa_output.pci-0000_00_1f.3.analog-stereo:(Cuffie)" listen
|
|
click-right = exec pavucontrol-qt &
|
|
click-left = pulseaudio-control togmute && play '~/Sounds/changevol.wav'
|
|
click-middle = pulseaudio-control next-sink && play '~/Sounds/changeaudio.ogg'
|
|
scroll-up = pulseaudio-control --volume-max 100 up && play '~/Sounds/changevol.wav'
|
|
scroll-down = pulseaudio-control --volume-max 100 down && play '~/Sounds/changevol.wav'
|
|
|
|
[module/mail]
|
|
type = custom/script
|
|
exec = ~/Scripts/mail.py
|
|
interval = 30
|
|
label = %output%
|
|
click-left = exec kmail &
|
|
|
|
[module/mail2]
|
|
type = custom/script
|
|
exec = ~/Scripts/mail2.py
|
|
interval = 30
|
|
label = %output%
|
|
click-left = exec evolution &
|
|
|
|
[module/now-playing]
|
|
type = custom/script
|
|
tail = true
|
|
;format-prefix = ""
|
|
format-suffix = " ·"
|
|
format = <label>
|
|
exec = ~/.config/polybar/gmg/scripts/polybar-now-playing
|
|
;click-left = "xdotool keydown Super_L+Alt_L+s && xdotool keyup Super_L+Alt_L+s"
|
|
click-right = "kill -USR1 $(pgrep --oldest --parent %pid%)"
|
|
|
|
[module/updates]
|
|
type = custom/script
|
|
|
|
; Available tokens:
|
|
; %counter%
|
|
; Command to be executed (using "/usr/bin/env sh -c [command]")
|
|
exec = ~/.config/polybar/gmg/scripts/updates.sh
|
|
|
|
; Conditional command that, if defined, needs to exit successfully
|
|
; before the main exec command is invoked.
|
|
; Default: ""
|
|
;;exec-if = ""
|
|
|
|
; Will the script output continous content?
|
|
; Default: false
|
|
tail = true
|
|
|
|
; Seconds to sleep between updates
|
|
; Default: 2 (0 if `tail = true`)
|
|
interval = 5
|
|
|
|
; Available tags:
|
|
; <output> - deprecated
|
|
; <label> (default)
|
|
format = <label>
|
|
format-prefix =
|
|
|
|
; Available tokens:
|
|
; %output%
|
|
; Default: %output%
|
|
label = %output%
|
|
|
|
; Available tokens:
|
|
; %counter%
|
|
; %pid%
|
|
;
|
|
; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c [command]"
|
|
click-left = kdialog --yesno "Inizierò a creare una snapshot e poi aggiornerò il sistema. Vuoi procedere?" --title "Aggiornamento" && if [ "$?" = 0 ]; then konsole --hold -e ~/.config/polybar/gmg/scripts/aggiorna.sh; fi
|
|
click-right = notify-send "Carico lista aggiornamenti..." -a Aggiornamenti & checkupdates 2 > /tmp/cu.txt && kdialog --textbox /tmp/cu.txt --geometry 700x900 --title "Lista aggiornamenti disponibili" &
|
|
;;double-click-left = echo double left %counter%
|
|
;;double-click-middle = echo double middle %counter%
|
|
;;double-click-right = echo double right %counter%
|
|
|
|
; Available tokens:
|
|
; %counter%
|
|
; %pid%
|
|
;
|
|
; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c [command]"
|
|
;;scroll-up = echo scroll up %counter%
|
|
;;scroll-down = echo scroll down %counter%
|
|
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/launcher]
|
|
type = custom/text
|
|
content =
|
|
|
|
; "content" has the same properties as "format-NAME"
|
|
content-background = ${color.primary}
|
|
content-foreground = ${color.module-fg}
|
|
content-padding = 2
|
|
|
|
; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c $COMMAND"
|
|
click-left = ~/.config/polybar/gmg/scripts/launcher.sh &
|
|
;;click-middle = ~/.config/polybar/gmg/scripts/launcher-full
|
|
click-right = ~/.config/polybar/gmg/scripts/color-switch.sh &
|
|
|
|
; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c $COMMAND"
|
|
;;scroll-up = ~/.config/polybar/gmg/scripts/launcher.sh &
|
|
;;scroll-down = ~/.config/polybar/gmg/scripts/color-switch.sh &
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/sysmenu]
|
|
type = custom/text
|
|
content =
|
|
|
|
content-background = ${color.secondary}
|
|
content-foreground = ${color.foreground}
|
|
content-padding = 3
|
|
|
|
click-left = ~/.config/polybar/gmg/scripts/powermenu.sh &
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/color-switch]
|
|
type = custom/text
|
|
content =
|
|
|
|
content-background = ${color.background}
|
|
content-foreground = ${color.primary}
|
|
|
|
click-left = ~/.config/polybar/gmg/scripts/color-switch.sh &
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/apps]
|
|
type = custom/text
|
|
content-foreground = ${color.foreground-alt}
|
|
content-padding = 1
|
|
|
|
[module/term]
|
|
inherit = module/apps
|
|
content =
|
|
click-left = termite &
|
|
click-middle = urxvt &
|
|
click-right = xfce4-terminal &
|
|
|
|
[module/files]
|
|
inherit = module/apps
|
|
content =
|
|
click-left = thunar &
|
|
click-right = pcmanfm &
|
|
|
|
[module/browser]
|
|
inherit = module/apps
|
|
content =
|
|
click-left = firefox &
|
|
click-right = chromium &
|
|
|
|
[module/settings]
|
|
inherit = module/apps
|
|
content =
|
|
click-left = xfce4-settings-manager &
|
|
click-right = lxappearance &
|
|
|
|
[module/notifications]
|
|
type = custom/script
|
|
exec = ~/.config/polybar/gmg/scripts/notifications.sh
|
|
label = %output%
|
|
label-foreground = ${color.foreground}
|
|
interval = 0.1
|
|
click-left = if [[ $(dunstctl count history) == "0" ]]; then play '~/Sounds/ding.ogg'; fi; dunstctl history-pop
|
|
click-middle = dunstctl set-paused toggle; if [[ $(dunstctl is-paused) == "false" ]]; then play '~/Sounds/unmute.ogg'; fi
|
|
click-right = if [[ $(dunstctl count displayed) == "0" ]]; then play '~/Sounds/ding.ogg'; fi; dunstctl close-all
|
|
|
|
[module/caveau]
|
|
inherit = module/apps
|
|
content =
|
|
content-foreground = ${color.foreground}
|
|
click-left = konsole -e cryfs /data/Caveau ~/Vaults/Caveau && dolphin ~/Vaults/Caveau
|
|
|
|
[module/showtray]
|
|
inherit = module/apps
|
|
content =
|
|
content-foreground = ${color.foreground}
|
|
click-left = xdotool keydown Super_L+s && xdotool keyup Super_L+s
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[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 = Blocca
|
|
menu-0-0-exec = play '~/Sounds/lock.ogg' & betterlockscreen -l && play '~/Sounds/unlock.ogg'
|
|
menu-0-1 = Esci
|
|
menu-0-1-exec = ~/.config/polybar/gmg/scripts/kd-esci.sh &
|
|
menu-0-2 = Sospendi
|
|
menu-0-2-exec = systemctl suspend
|
|
menu-0-3 = Riavvia
|
|
menu-0-3-exec = ~/.config/polybar/gmg/scripts/kd-riavvia.sh &
|
|
menu-0-4 = Spegni
|
|
menu-0-4-exec = ~/.config/polybar/gmg/scripts/kd-spegni.sh &
|
|
|
|
; 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>
|
|
format-background = ${color.secondary}
|
|
format-foreground = ${color.foreground}
|
|
format-padding = 3
|
|
|
|
label-open =
|
|
label-close =
|
|
|
|
; Optional item separator
|
|
; Default: none
|
|
label-separator = " "
|
|
|
|
;;label-open-foreground = ${color.foreground}
|
|
;;label-close-foreground = ${color.background}
|
|
;;label-separator-foreground = ${color.background}
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/menu]
|
|
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 = Menu
|
|
menu-0-0-exec = ~/.config/polybar/gmg/scripts/launcher.sh &
|
|
menu-0-1 = Files
|
|
menu-0-1-exec = thunar &
|
|
menu-0-2 = Terminal
|
|
menu-0-2-exec = termite &
|
|
menu-0-3 = Browser
|
|
menu-0-3-exec = firefox &
|
|
|
|
; 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>
|
|
format-background = ${color.primary}
|
|
format-foreground = ${color.module-fg}
|
|
format-padding = 2
|
|
|
|
label-open =
|
|
label-close =
|
|
|
|
; Optional item separator
|
|
; Default: none
|
|
label-separator = " | "
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|