569 lines
15 KiB
INI
569 lines
15 KiB
INI
; vim:ft=dosini
|
|
; _ _ _ _
|
|
; |_)/ \|\_/|_) /\ |_)
|
|
; | \_/|_| |_)/--\| \
|
|
;
|
|
[colors]
|
|
;Transparent background
|
|
background = #00000000
|
|
;background = ${{{{xrdb:color12:#AD9161}}}}
|
|
;background = #8a8061
|
|
background-alt = {color1}
|
|
;foreground = ${{{{xrdb:color7}}}}
|
|
foreground = {color3}
|
|
foreground-alt = {color6}
|
|
highlight = {color7}
|
|
;error = ${{{{xrdb:color9:#DD712E}}}}
|
|
error = {color2}
|
|
red = {color10}
|
|
yellow = {color12}
|
|
green = {color5}
|
|
blue = {color11}
|
|
alert = #FF0000
|
|
|
|
[bar/top]
|
|
monitor = ${{env:MONITOR:eDP-1}}
|
|
include-file = ~/.config/polybar/top-bar
|
|
modules-left = i3 xwindow
|
|
modules-center = term chrome editor fm music vpn
|
|
modules-right = workspace wlan pkg alsa battery backlight networkmanager popup-calendar
|
|
|
|
;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 filesystem
|
|
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.alert}}
|
|
label-muted = muted
|
|
ramp-volume-0 =
|
|
ramp-volume-1 =
|
|
ramp-volume-foreground = ${{colors.foreground}}
|
|
ramp-headphones-0 =
|
|
ramp-headphones-1 =
|
|
|
|
[module/filesystem]
|
|
type = internal/fs
|
|
mount-0 = /
|
|
interval = 10
|
|
fixed-values = true
|
|
spacing = 4
|
|
format-mounted = <label-mounted>
|
|
format-unmounted = <label-unmounted>
|
|
label-mounted = %percentage_used%%
|
|
label-mounted-foreground = ${{colors.foreground}}
|
|
label-unmounted = %mountpoint%: not mounted
|
|
label-unmounted-foreground = ${{colors.foreground-alt}}
|
|
|
|
[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}}
|
|
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
|
|
format-prefix = " "
|
|
|
|
[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}}
|
|
exec = echo "$(uname -nr)"
|
|
|
|
[module/temperature]
|
|
type = internal/temperature
|
|
thermal-zone = 0
|
|
;hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
|
|
warn-temperature = 65
|
|
format = <ramp> <label>
|
|
format-underline = ${{colors.foreground}}
|
|
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 = " "
|
|
format-prefix-foreground = ${{colors.foreground}}
|
|
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-alt}}
|
|
label-focused-background = ${{colors.background-alt}}
|
|
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}}
|
|
|
|
[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/xwindow]
|
|
type = internal/xwindow
|
|
;format-padding = ${{spacing.padding}}
|
|
;label = " %title%"
|
|
;label = "%title%"
|
|
label = | %title:0:30:...%
|
|
label-maxlen = 150
|
|
|
|
[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}}
|
|
;label = %{{A1:st --geometry 86x10 -e htop:}}%percentage%%%{{A}}
|
|
|
|
[module/cpu]
|
|
format-label = internal/cpu
|
|
format = <label>
|
|
type = internal/cpu
|
|
interval = 2
|
|
label = " %percentage%%"
|
|
format-foreground = ${{colors.foreground}}
|
|
|
|
[module/memory]
|
|
type = internal/memory
|
|
interval = 2
|
|
label = " %percentage_used%%"
|
|
format-foreground = ${{colors.foreground}}
|
|
|
|
[module/cputemp]
|
|
type = custom/script
|
|
exec = sensors | grep --max-count=1 "temp1" | awk '{{print substr($0,16,2)}}'
|
|
interval = 10
|
|
label = " %output%°C"
|
|
format-foreground = ${{colors.foreground-alt}}
|
|
|
|
;[module/memory]
|
|
;type = internal/memory
|
|
;interval = 1
|
|
;format-prefix = " "
|
|
;format-prefix-foreground = ${{colors.foreground}}
|
|
;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 = ${{colors.foreground}}
|
|
format-muted = <label-muted>
|
|
format-muted-foreground = ${{colors.alert}}
|
|
label-muted = muted
|
|
ramp-volume-0 =
|
|
ramp-volume-1 =
|
|
ramp-volume-foreground = ${{colors.foreground}}
|
|
ramp-headphones-0 =
|
|
ramp-headphones-1 =
|
|
|
|
[module/battery1]
|
|
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}}
|
|
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}}
|
|
animation-charging-0 =
|
|
animation-charging-1 =
|
|
animation-charging-2 =
|
|
animation-charging-3 =
|
|
animation-charging-4 =
|
|
animation-charging-foreground = ${{colors.foreground}}
|
|
animation-charging-framerate = 750
|
|
|
|
[module/battery]
|
|
type = internal/battery
|
|
battery = BAT1
|
|
adapter = ADP1
|
|
full-at = 98
|
|
time-format = %H:%M
|
|
label-charging = %percentage%%
|
|
label-discharging = %percentage%%
|
|
format-charging = <animation-charging> <label-charging>
|
|
format-discharging = <animation-discharging> <label-discharging>
|
|
format-charging-foreground = ${{colors.foreground}}
|
|
label-charging-foreground = ${{colors.foreground}}
|
|
format-discharging-foreground = ${{colors.foreground}}
|
|
label-discharging-foreground = ${{colors.foreground}}
|
|
format-full-prefix = " "
|
|
format-full-prefix-foreground = ${{colors.foreground}}
|
|
label-full-foreground = ${{colors.foreground}}
|
|
animation-charging-0 =
|
|
animation-charging-1 =
|
|
animation-charging-2 =
|
|
animation-charging-3 =
|
|
animation-charging-4 =
|
|
animation-charging-foreground = ${{colors.foreground}}
|
|
animation-charging-framerate = 500
|
|
animation-discharging-0 =
|
|
animation-discharging-1 =
|
|
animation-discharging-2 =
|
|
animation-discharging-3 =
|
|
animation-discharging-4 =
|
|
animation-discharging-framerate = 1000
|
|
animation-discharging-foreground = ${{colors.foreground}}
|
|
|
|
[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/wlan]
|
|
type = internal/network
|
|
interface = wlp2s0
|
|
interval = 3.0
|
|
format-connected = <label-connected>
|
|
label-connected = %essid% %signal% %upspeed% %downspeed%
|
|
label-disconnected = "%{{A1:connman-gtk &:}}%{{A}}"
|
|
label-disconnected-foreground = #5b
|
|
ramp-signal-0 =
|
|
ramp-signal-1 =
|
|
ramp-signal-2 =
|
|
ramp-signal-3 =
|
|
ramp-signal-4 =
|
|
ramp-signal-foreground = ${{colors.foreground}}
|
|
format-connected-foreground = ${{colors.foreground}}
|
|
|
|
[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
|