402 lines
11 KiB
INI
402 lines
11 KiB
INI
;; ┌──────────────────────────────────────────────────────────────────────────────-----┐
|
|
;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█░█░█▀▀░█▀▀░█▀▄░░░█▄█░█▀█░█▀▄░█░█░█░░░█▀▀░█▀▀ │
|
|
;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░█░▀▀█░█▀▀░█▀▄░░░█░█░█░█░█░█░█░█░█░░░█▀▀░▀▀█ │
|
|
;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀▀▀░▀░▀░░░▀░▀░▀▀▀░▀▀░░▀▀▀░▀▀▀░▀▀▀░▀▀▀ │
|
|
;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│
|
|
;; │░Modified By Raven @raven2cz░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│
|
|
;; └──────────────────────────────────────────────────────────────────────────────-----┘
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/launcher]
|
|
type = custom/text
|
|
|
|
content =
|
|
content-foreground = ${color.purple}
|
|
|
|
; "click-(left|middle|right)" will be executed using "/usr/bin/env sh -c $COMMAND"
|
|
click-left = ~/.config/polybar/scripts/launcher.sh &
|
|
;;click-middle = ~/.config/polybar/scripts/launcher-full
|
|
click-right = ~/.config/polybar/scripts/style-switch.sh &
|
|
|
|
; "scroll-(up|down)" will be executed using "/usr/bin/env sh -c $COMMAND"
|
|
;;scroll-up = ~/.config/polybar/scripts/launcher.sh &
|
|
;;scroll-down = ~/.config/polybar/scripts/color-switch.sh &
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/sysmenu]
|
|
type = custom/text
|
|
|
|
content =
|
|
content-foreground = ${color.cyan}
|
|
|
|
click-left = xfce4-session-logout &
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/color-switch]
|
|
type = custom/text
|
|
|
|
content =
|
|
content-foreground = ${color.red}
|
|
|
|
click-left = ~/.config/polybar/scripts/style-switch.sh &
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/sep]
|
|
type = custom/text
|
|
content = |
|
|
|
|
content-foreground = ${color.sep}
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/apps]
|
|
type = custom/text
|
|
|
|
[module/term]
|
|
inherit = module/apps
|
|
content =
|
|
content-foreground = ${color.blue-gray}
|
|
click-left = alacritty &
|
|
click-middle = urxvt &
|
|
click-right = xfce4-terminal &
|
|
|
|
[module/files]
|
|
inherit = module/apps
|
|
content =
|
|
content-foreground = ${color.blue}
|
|
click-left = dolphin &
|
|
click-right = thunar &
|
|
|
|
[module/browser]
|
|
inherit = module/apps
|
|
content =
|
|
content-foreground = ${color.orange}
|
|
click-left = firefox &
|
|
click-right = chromium &
|
|
|
|
[module/settings]
|
|
inherit = module/apps
|
|
content =
|
|
content-foreground = ${color.teal}
|
|
click-left = xfce4-settings-manager &
|
|
click-right = lxappearance &
|
|
|
|
[module/screenshot]
|
|
inherit = module/apps
|
|
content =
|
|
content-foreground = ${color.cyan}
|
|
click-left = spectacle &
|
|
click-right = xfce4-screenshooter &
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[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 = " Reboot |"
|
|
menu-0-0-exec = menu-open-1
|
|
menu-0-1 = " Shutdown "
|
|
menu-0-1-exec = menu-open-2
|
|
|
|
menu-1-0 = " Back |"
|
|
menu-1-0-exec = menu-open-0
|
|
menu-1-1 = " Reboot "
|
|
menu-1-1-exec = systemctl reboot
|
|
|
|
menu-2-0 = " Shutdown |"
|
|
menu-2-0-exec = systemctl poweroff
|
|
menu-2-1 = " Back "
|
|
menu-2-1-exec = menu-open-0
|
|
|
|
; 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.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/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/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>
|
|
|
|
label-open =
|
|
label-open-foreground = ${color.yellow}
|
|
label-open-padding = 1
|
|
label-close =
|
|
label-close-foreground = ${color.red}
|
|
label-close-padding = 1
|
|
|
|
; Optional item separator
|
|
; Default: none
|
|
;label-separator = " | "
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/polywins]
|
|
type = custom/script
|
|
exec = ~/.config/polybar/scripts/polywins.sh 2>/dev/null
|
|
format = <label>
|
|
label = %output%
|
|
label-padding = 1
|
|
tail = true
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/uptime]
|
|
;https://github.com/jaagr/polybar/wiki/User-contributed-modules#uptime
|
|
type = custom/script
|
|
exec = uptime | awk -F, '{sub(".*up ",x,$1);print $1}'
|
|
interval = 100
|
|
label = Uptime %output%
|
|
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${color.teal}
|
|
format-underline =
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/kernel]
|
|
type = custom/script
|
|
exec = uname -r
|
|
tail = false
|
|
interval = 1024
|
|
|
|
format-foreground = ${color.foreground}
|
|
format-background = ${color.background}
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${color.blue}
|
|
format-underline = ${color.gray}
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/networkspeedup]
|
|
;https://github.com/jaagr/polybar/wiki/Module:-network
|
|
type = internal/network
|
|
;interface = wlp3s0
|
|
;interface = enp14s0
|
|
;interface = enp0s31f6
|
|
;interface = enp38s0
|
|
interface = eth0
|
|
label-connected = "%upspeed:7%"
|
|
format-connected = <label-connected>
|
|
format-connected-prefix = " +"
|
|
format-connected-prefix-foreground = ${color.cyan}
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/networkspeeddown]
|
|
;https://github.com/jaagr/polybar/wiki/Module:-network
|
|
type = internal/network
|
|
;interface = wlp3s0
|
|
;interface = enp14s0
|
|
;interface = enp0s31f6
|
|
;interface = enp38s0
|
|
interface = eth0
|
|
label-connected = "%downspeed:7%"
|
|
format-connected = <label-connected>
|
|
format-connected-prefix = " "
|
|
format-connected-prefix-foreground = ${color.cyan}
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/updates]
|
|
type = custom/script
|
|
|
|
; Available tokens:
|
|
; %counter%
|
|
; Command to be executed (using "/usr/bin/env sh -c [command]")
|
|
exec = ~/.config/polybar/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 =
|
|
format-prefix-foreground = ${color.yellow}
|
|
|
|
; 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 = exo-open --launch TerminalEmulator &
|
|
click-right = exo-open --launch TerminalEmulator &
|
|
;;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/pacman-updates]
|
|
type = custom/script
|
|
;exec = pacman -Qu | wc -l
|
|
exec = checkupdates | wc -l
|
|
interval = 1000
|
|
label = Repo: %output%
|
|
format-foreground = ${color.foreground}
|
|
format-background = ${color.background}
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${color.yellow}
|
|
;format-underline = ${color.yellow}
|
|
|
|
[module/aur-updates]
|
|
type = custom/script
|
|
exec = cower -u | wc -l
|
|
interval = 1000
|
|
label = Aur: %output%
|
|
format-foreground = ${color.foreground}
|
|
format-background = ${color.background}
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${color.yellow}
|
|
format-underline = ${color.yellow}
|
|
|
|
[module/updates-common]
|
|
type = custom/script
|
|
exec = ~/.config/polybar/scripts/check-all-updates.sh
|
|
interval = 600
|
|
label = Updates: %output%
|
|
format-foreground = ${color.foreground}
|
|
format-background = ${color.background}
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${color.yellow}
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/release]
|
|
type = custom/script
|
|
exec = (lsb_release -d | awk {'print $2'} ;echo " "; lsb_release -r | awk {'print $2'}) | tr -d '\n'
|
|
interval = 6000
|
|
|
|
format-foreground = ${color.foreground}
|
|
format-background = ${color.background}
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${color.green}
|
|
;format-underline = ${color.green}
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/mpris-play-pause]
|
|
type = custom/ipc
|
|
hook-0 = echo "%{F#0f0}%{F-}"
|
|
hook-1 = echo "%{F${foreground}}%{F-}"
|
|
initial = 2
|
|
click-left = playerctl play-pause
|
|
scroll-up = playerctl previous
|
|
scroll-down = playerctl next
|
|
|
|
[module/mpris]
|
|
type = custom/script
|
|
tail = true
|
|
format = <label>
|
|
exec = ~/.config/polybar/scripts/scroll_mpris_status.sh
|
|
click-left = playerctl play-pause
|
|
scroll-up = playerctl previous
|
|
scroll-down = playerctl next
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/weather]
|
|
type = custom/script
|
|
exec = python3 ~/.config/polybar/scripts/weather.py
|
|
interval = 600
|
|
format-foreground = ${color.yellow}
|
|
cursor-click = python3 ~/.config/polybar/scripts/weather.py
|
|
|
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
|
|
|
[module/xmenu]
|
|
type = custom/script
|
|
interval = 1200
|
|
exec = echo " "
|
|
click-left = "sh ~/xmenu/xmenu.sh"
|
|
format-foreground = ${color.foreground}
|
|
format-background = ${color.background}
|