476 lines
12 KiB
INI
476 lines
12 KiB
INI
; vim:ft=dosini
|
|
; _ _ _ _
|
|
; |_)/ \|\_/|_) /\ |_)
|
|
; | \_/|_| |_)/--\| \
|
|
;
|
|
[colors]
|
|
;Transparent background
|
|
background = #00FFFFFF
|
|
;background = ${xrdb:color12:#AD9161}
|
|
;background = #8a8061
|
|
background-alt = ${xrdb:color2:#7B8349}
|
|
;foreground = ${xrdb:color7}
|
|
foreground = #faf0a5
|
|
foreground-alt = #a88339
|
|
highlight = #18974e
|
|
;error = ${xrdb:color9:#DD712E}
|
|
error = #18974e
|
|
red = #18974e
|
|
yellow = #477ca1
|
|
green = #8868b3
|
|
blue = #a88339
|
|
alert = #18974e
|
|
|
|
[bar/top]
|
|
monitor = ${env:MONITOR:eDP-1}
|
|
include-file = ~/.config/polybar/top-bar
|
|
modules-left = i3
|
|
modules-center = term chrome editor fm music vpn
|
|
modules-right = pkg pulseaudio-rofi-output battery backlight wlan networkmanager popup-calendar date clock
|
|
|
|
;tray-position = right
|
|
;tray-padding = 2
|
|
;tray-transparent = true
|
|
;tray-background = #0063ff
|
|
|
|
[bar/bottom]
|
|
monitor = ${env:MONITOR:eDP-1}
|
|
include-file = ~/.config/polybar/bottom-bar
|
|
modules-left = hostname vpncheck
|
|
modules-center = cpu memory temperature
|
|
modules-right = openweather
|
|
|
|
[module/pulseaudio-rofi-output]
|
|
type = custom/script
|
|
exec = ~/.config/Scripts/pulseaudio-rofi.sh --output_volume_listener
|
|
tail = true
|
|
click-right = ~/.config/Scripts/pulseaudio-rofi.sh --output
|
|
click-left = ~/.config/Scripts/pulseaudio-rofi.sh --mute
|
|
scroll-up = ~/.config/Scripts/pulseaudio-rofi.sh --volume_up
|
|
scroll-down = ~/.config/Scripts/pulseaudio-rofi.sh --volume_down
|
|
|
|
[module/pulseaudio]
|
|
type = internal/pulseaudio
|
|
sink = bluez_sink.E8_07_BF_33_4D_F2.headset_head_unit
|
|
use-ui-max = true
|
|
interval = 5
|
|
format-volume = <ramp-volume> <label-volume>
|
|
label-volume = %percentage%%
|
|
label-volume-foreground = ${root.foreground}
|
|
format-muted = <label-muted>
|
|
format-muted-foreground = ${colors.highlight}
|
|
label-muted = muted
|
|
ramp-volume-0 =
|
|
ramp-volume-1 =
|
|
ramp-volume-foreground = ${colors.foreground-alt}
|
|
ramp-headphones-0 =
|
|
ramp-headphones-1 =
|
|
|
|
[module/backlight]
|
|
type = custom/script
|
|
interval = 0.2
|
|
exec = ~/.config/Scripts/backlight.sh
|
|
scroll-up = exec light -A 5
|
|
scroll-down = exec light -U 5
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
label = %output%
|
|
label-foreground = ${colors.foreground}
|
|
format-padding = 1
|
|
|
|
;[module/backlight]
|
|
;type = internal/xbacklight
|
|
;output = eDP-1
|
|
;enable-scroll = true
|
|
;format = <ramp> <label>
|
|
;label = %percentage%%
|
|
;ramp-0 =
|
|
;ramp-1 =
|
|
;ramp-2 =
|
|
;bar-width = 10
|
|
;bar-indicator = |
|
|
;bar-fill = ─
|
|
;bar-empty = ─
|
|
|
|
[module/popup-calendar]
|
|
type = custom/script
|
|
exec = ~/.config/Scripts/popup-calendar.sh
|
|
interval = 5
|
|
click-left = ~/.config/Scripts/popup-calendar.sh --popup
|
|
|
|
[module/vpncheck]
|
|
type = custom/script
|
|
exec = pgrep openvpn
|
|
interval = 5
|
|
label = VPN
|
|
;format-underline = ${colors.alert}
|
|
format-prefix = " "
|
|
|
|
[module/hostname]
|
|
type = custom/script
|
|
interval = 256
|
|
format = "<label> "
|
|
format-prefix = " "
|
|
;format-prefix = " "
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
exec = echo "$(uname -nr)"
|
|
|
|
[module/temperature]
|
|
type = internal/temperature
|
|
thermal-zone = 0
|
|
warn-temperature = 65
|
|
format = <ramp> <label>
|
|
format-underline = ${colors.foreground-alt}
|
|
;format-underline = #f50a4d
|
|
format-warn = <ramp> <label-warn>
|
|
format-warn-underline = ${self.format-underline}
|
|
label = %temperature-c%
|
|
label-warn = %temperature-c%
|
|
label-warn-foreground = ${colors.alert}
|
|
ramp-0 =
|
|
ramp-1 =
|
|
ramp-2 =
|
|
ramp-3 =
|
|
ramp-4 =
|
|
ramp-foreground = ${colors.foreground}
|
|
|
|
[module/pkg]
|
|
type = custom/script
|
|
exec = "~/.config/Scripts/arch-updates.sh -s"
|
|
tail = true
|
|
format = <label>
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
click-left = st -e yay --noconfirm -Syu
|
|
click-right = "~/.config/Scripts/arch-updates.sh -c&"
|
|
click-middle = "~/.config/Scripts/arch-updates.sh -n"
|
|
|
|
[module/openweather]
|
|
type = custom/script
|
|
exec = ~/.config/Scripts/openweather.sh
|
|
tail = true
|
|
interval = 600
|
|
click-left = ~/.config/Scripts/wttr.sh
|
|
|
|
[module/i3]
|
|
type = internal/i3
|
|
format = <label-state> <label-mode>
|
|
index-sort = true
|
|
wrapping-scroll = false
|
|
; Only show workspaces on the same output as the bar
|
|
pin-workspaces = true
|
|
ws-icon-0 = 1:;
|
|
ws-icon-1 = 2:;
|
|
ws-icon-2 = 3:;
|
|
ws-icon-3 = 4:;
|
|
ws-icon-4 = 5:;
|
|
ws-icon-5 = 6:;
|
|
ws-icon-6 = 7:;
|
|
ws-icon-7 = 8:;
|
|
ws-icon-8 = 9:;
|
|
ws-icon-9 = 10:;
|
|
label-mode-padding = 1
|
|
label-mode-foreground = ${colors.foreground}
|
|
label-mode-background = ${colors.background}
|
|
; focused = Active workspace on focused monitor
|
|
label-focused = %icon%
|
|
label-focused-foreground = ${colors.foreground}
|
|
label-focused-background = ${colors.background}
|
|
label-focused-padding = 1
|
|
; unfocused = Inactive workspace on any monitor
|
|
label-unfocused = %icon%
|
|
label-unfocused-foreground = ${colors.foreground}
|
|
label-unfocused-background = ${colors.background}
|
|
label-unfocused-padding = 1
|
|
; urgent = Workspace with urgency hint set
|
|
label-urgent = %icon%
|
|
label-urgent-background = ${colors.alert}
|
|
label-urgent-padding = 1
|
|
|
|
[module/kraken]
|
|
type = custom/text
|
|
content =
|
|
content-foreground = ${colors.foreground}
|
|
click-left = gitkraken &
|
|
|
|
[module/fx]
|
|
type = custom/text
|
|
content =
|
|
content-foreground = ${colors.foreground}
|
|
click-left = firefox &
|
|
|
|
[module/fm]
|
|
type = custom/text
|
|
content =
|
|
content-foreground = ${colors.foreground}
|
|
click-left = st -e ranger &
|
|
click-right = pcmanfm &
|
|
|
|
[module/term]
|
|
type = custom/text
|
|
content =
|
|
content-foreground = ${colors.foreground}
|
|
click-left = st &
|
|
click-right = st -e tmux new -s tmux1 &
|
|
|
|
[module/vpn]
|
|
type = custom/text
|
|
content =
|
|
content-foreground = ${colors.foreground}
|
|
click-left = "exec expressvpn connect"
|
|
click-right = "exec expressvpn disconnect"
|
|
|
|
[module/editor]
|
|
type = custom/text
|
|
content =
|
|
content-foreground = ${colors.foreground}
|
|
click-left = st -e nvim &
|
|
click-right = leafpad &
|
|
|
|
[module/chrome]
|
|
type = custom/text
|
|
content =
|
|
content-foreground = ${colors.foreground}
|
|
click-left = google-chrome-stable &
|
|
|
|
[module/music]
|
|
type = custom/text
|
|
content =
|
|
content-foreground = ${colors.foreground}
|
|
click-left = st -e ncmpcpp &
|
|
click-right = gpmdp &
|
|
|
|
[module/gpmdp]
|
|
type = custom/script
|
|
format = <label>
|
|
;format-underline = ${xrdb:color5}
|
|
exec = ~/.config/Scripts/gpmdp-remote info
|
|
|
|
[module/workspace]
|
|
type = custom/script
|
|
interval = 1
|
|
label = %{A4:wmctrl -s "$(($(xprop -root _NET_CURRENT_DESKTOP | cut -d '=' -f 2 | cut -d ' ' -f 2)+1))":}%{A5:wmctrl -s "$(($(xprop -root _NET_CURRENT_DESKTOP | cut -d '=' -f 2 | cut -d ' ' -f 2)-1))":}%output% %{A}%{A}
|
|
exec = echo "$(($(xprop -root _NET_CURRENT_DESKTOP | cut -d '=' -f 2 | cut -d ' ' -f 2)+1))"
|
|
format = <label>
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
|
|
[module/window_count]
|
|
type = custom/script
|
|
interval = 1
|
|
label = %{A1:rofi -width 30 -location 1 -xoffset 3 -show window:}%output% %{A}
|
|
exec = echo "$(($(lsw | wc -l)-1))"
|
|
format = <label>
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
|
|
[module/xtitle]
|
|
type = custom/script
|
|
interval = 1
|
|
label = %output%
|
|
label-maxlen = 40
|
|
exec = echo "$(xtitle)"
|
|
format = <label>
|
|
format-background = ${colors.background-alt}
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.foreground}
|
|
format-padding = 1
|
|
|
|
[module/mpd]
|
|
type = internal/mpd
|
|
format-online = <icon-prev> <icon-stop> <toggle> <icon-next> <label-song>
|
|
format-online-prefix = " "
|
|
format-online-prefix-foreground = ${colors.foreground-alt}
|
|
fomat-online-foreground = ${colors.blue}
|
|
format-online-background = ${colors.background-alt}
|
|
format-online-padding = 1
|
|
icon-play =
|
|
icon-pause =
|
|
icon-stop =
|
|
icon-prev =
|
|
icon-next =
|
|
icon-random =
|
|
label-song = %title%
|
|
label-song-maxlen = 25
|
|
label-song-ellipsis = true
|
|
toggle-on-foreground = ${colors.foreground}
|
|
toggle-off-foreground = ${colors.foreground-alt}
|
|
|
|
[module/xkeyboard]
|
|
type = internal/xkeyboard
|
|
blacklist-0 = num lock
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
label-layout = %layout%
|
|
label-indicator-padding = 1
|
|
label-indicator-margin = 1
|
|
label-indicator-foreground = ${colors.red}
|
|
label-indicator-background = ${colors.background}
|
|
|
|
[module/cpu]
|
|
type = internal/cpu
|
|
interval = 1
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
label = %{A1:st --geometry 86x10 -e htop:}%percentage%%%{A}
|
|
|
|
[module/memory]
|
|
type = internal/memory
|
|
interval = 1
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
label = %{A1:st --geometry 86x10 -e htop:}%percentage_used%%%{A}
|
|
|
|
[module/date]
|
|
type = custom/script
|
|
interval = 60
|
|
exec = echo "$(date +%a) $(date +%d) $(date +%b)"
|
|
format = <label>
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
label = %{A1:gsimplecal &:}%output%%{A}
|
|
|
|
[module/clock]
|
|
type = custom/script
|
|
interval = 5
|
|
exec = echo "$(date +%R)"
|
|
format = <label>
|
|
;format-prefix = " "
|
|
format-foreground = ${colors.foreground-alt}
|
|
label = %{A1:gsimplecal &:}%output%%{A}
|
|
|
|
[module/volume]
|
|
type = internal/volume
|
|
format-volume = <ramp-volume> <label-volume>
|
|
label-volume = %percentage%%
|
|
label-volume-foreground = ${root.foreground}
|
|
format-muted = <label-muted>
|
|
format-muted-foreground = ${colors.foreground-alt}
|
|
label-muted = muted
|
|
ramp-volume-0 =
|
|
ramp-volume-1 =
|
|
ramp-volume-foreground = ${colors.foreground-alt}
|
|
|
|
[module/alsa]
|
|
type = internal/alsa
|
|
master-soundcard = default
|
|
speaker-soundcard = default
|
|
headphone-soundcard = default
|
|
master-mixer = Master
|
|
speaker-mixer = Speaker
|
|
headphone-mixer = Headphone
|
|
headphone-id = 19
|
|
mapped = true
|
|
interval = 5
|
|
format-volume = <ramp-volume> <label-volume>
|
|
label-volume = %percentage%%
|
|
label-volume-foreground = ${root.foreground}
|
|
format-muted = <label-muted>
|
|
format-muted-foreground = ${colors.foreground-alt}
|
|
label-muted = muted
|
|
ramp-volume-0 =
|
|
ramp-volume-1 =
|
|
ramp-volume-foreground = ${colors.foreground-alt}
|
|
ramp-headphones-0 =
|
|
ramp-headphones-1 =
|
|
|
|
[module/battery]
|
|
type = internal/battery
|
|
battery = BAT1
|
|
adapter = ADP1
|
|
full-at = 98
|
|
format-charging = <animation-charging> <label-charging>
|
|
format-discharging = <ramp-capacity> <label-discharging>
|
|
format-full-prefix = " "
|
|
format-full-prefix-foreground = ${colors.foreground-alt}
|
|
ramp-capacity-0-foreground = ${colors.alert}
|
|
ramp-capacity-0 =
|
|
ramp-capacity-1 =
|
|
ramp-capacity-2 =
|
|
ramp-capacity-3 =
|
|
ramp-capacity-4 =
|
|
ramp-capacity-foreground = ${colors.foreground-alt}
|
|
animation-charging-0 =
|
|
animation-charging-1 =
|
|
animation-charging-2 =
|
|
animation-charging-3 =
|
|
animation-charging-4 =
|
|
animation-charging-foreground = ${colors.foreground-alt}
|
|
animation-charging-framerate = 750
|
|
|
|
[module/networkmanager]
|
|
type = custom/text
|
|
content = net
|
|
content-foreground = ${colors.foreground}
|
|
click-left = networkmanager_dmenu
|
|
|
|
[module/eth]
|
|
type = internal/network
|
|
interface = enp0s25
|
|
interval = 3.0
|
|
format-connected = <label-connected>
|
|
format-connected-prefix = " "
|
|
format-connected-prefix-foreground = ${colors.foreground-alt}
|
|
format-disconnected = <label-disconnected>
|
|
label-connected = %{A1:networkmanager_dmenu:}%downspeed%%{A}
|
|
label-connected-foreground = ${colors.foreground}
|
|
label-disconnected =
|
|
|
|
[module/wlan]
|
|
type = internal/network
|
|
interface = wlp2s0
|
|
interval = 3.0
|
|
format-connected = <label-connected>
|
|
format-connected-prefix = " "
|
|
format-connected-prefix-foreground = ${colors.foreground-alt}
|
|
format-disconnected = <label-disconnected>
|
|
label-connected = %{A1:networkmanager_dmenu:}%downspeed%%{A} %essid%
|
|
label-connected-foreground = ${colors.foreground}
|
|
label-disconnected = %ifname% disconnected
|
|
label-disconnected-foreground = ${colors.foreground-alt}
|
|
|
|
[module/powermenu]
|
|
type = custom/menu
|
|
format-spacing = 1
|
|
label-open =
|
|
label-open-font = 2
|
|
label-open-foreground = ${colors.red}
|
|
label-close =
|
|
label-close-foreground = ${colors.foreground}
|
|
label-separator = |
|
|
label-separator-foreground = ${colors.foreground-alt}
|
|
menu-0-0 =
|
|
menu-0-0-foreground = ${colors.blue}
|
|
menu-0-0-exec = menu-open-1
|
|
menu-0-1 =
|
|
menu-0-1-foreground = ${colors.red}
|
|
menu-0-1-exec = menu-open-2
|
|
menu-1-0 = reboot?
|
|
menu-1-0-exec = /sbin/reboot
|
|
menu-1-1 =
|
|
menu-1-1-exec = menu-open-0
|
|
menu-2-0 =
|
|
menu-2-0-exec = menu-open-0
|
|
menu-2-1 = shutdown?
|
|
menu-2-1-exec = /sbin/poweroff
|
|
|
|
[module/mail]
|
|
type = custom/script
|
|
interval = 30
|
|
format = <label>
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
exec = ~/.config/Scripts/mail.sh
|
|
click-left = chromium https://inbox.google.com &
|
|
|
|
[settings]
|
|
screenchange-reload = true
|
|
;compositing-background = xor
|
|
;compositing-background = screen
|
|
;compositing-foreground = source
|
|
;compositing-border = over
|
|
|
|
;[global/wm]
|
|
;margin-top = 0
|
|
;margin-bottom = 0
|