️ Polybar: Small performance changes

This commit is contained in:
Tobias Manske 2023-03-31 23:25:02 +02:00
parent 0676cd6eb3
commit 13e0d6e689
Signed by: tobias
GPG Key ID: 9164B527694A0709
1 changed files with 15 additions and 59 deletions

View File

@ -58,8 +58,8 @@ font-2 = Symbols Nerd Font:style=Regular:scale=8;size=1;1
font-3 = Noto Color Emoji:style=Regular:scale=8;size=1;1
modules-left = i3 heart spotify xwindow
modules-center = date dunst-snooze info-wifionice
modules-right = bluetooth filesystem pulseaudio cpu network-networkmanager battery temperature
modules-center = date dunst info-wifionice
modules-right = bluetooth filesystem pulseaudio network-networkmanager battery cpu temperature
tray-position = right
tray-padding = 2
@ -91,29 +91,13 @@ click-left=dunstify "Message from my Heart" "Naaww! :3"
type = internal/xwindow
label = %title:0:30:...%
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-prefix-underline = ${colors.secondary}
label-layout = %layout%
label-layout-underline = ${colors.secondary}
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.secondary}
label-indicator-underline = ${colors.secondary}
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
label-mounted = root: %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt}
@ -133,7 +117,7 @@ label-mode-background = ${colors.primary}
; focused = Active workspace on focused monitor
label-focused = %icon% %name%
label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary}
label-focused-underline = #FFFFFF
label-focused-padding = 2
; unfocused = Inactive workspace on any monitor
@ -143,7 +127,7 @@ label-unfocused-padding = 2
; visible = Active workspace on unfocused monitor
label-visible = %icon% %name%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-underline = ${colors.primary}
label-visible-padding = ${self.label-focused-padding}
; urgent = Workspace with urgency hint set
@ -160,7 +144,7 @@ type = custom/script
interval = 1
format-prefix = ""
format = <label>
exec = python3 /home/rad4day/Documents/src/polybar-spotify/spotify_status.py -f '{play_pause} {artist}: {song}' -p ,
exec = python3 /home/rad4day/Documents/src/polybar-spotify/spotify_status.py -f '{play_pause} {song} -- {artist}' -p ,
format-underline = #1db954
@ -243,7 +227,7 @@ interval = 5
type = internal/battery
battery = BAT1
adapter = ACAD
full-at = 98
full-at = 95
format-charging =  <label-charging>
format-charging-underline = #ffb52a
@ -278,7 +262,7 @@ label-discharging = %percentage%%
[module/temperature]
type = internal/temperature
thermal-zone = 4
warn-temperature = 60
warn-temperature = 80
format = <ramp> <label>
format-underline = #f50a4d
@ -294,39 +278,11 @@ ramp-1 = 
ramp-2 =
ramp-foreground = ${colors.foreground-alt}
[module/powermenu]
type = custom/menu
expand-right = true
format-spacing = 1
label-open =
label-open-foreground = ${colors.secondary}
label-close =  cancel
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}
menu-0-0 = reboot
menu-0-0-exec = menu-open-1
menu-0-1 = power off
menu-0-1-exec = menu-open-2
menu-1-0 = cancel
menu-1-0-exec = menu-open-0
menu-1-1 = reboot
menu-1-1-exec = sudo reboot
menu-2-0 = power off
menu-2-0-exec = sudo poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
[module/bluetooth]
type = custom/script
exec = rofi-bluetooth --status
interval = 3
format-underline = #0082fc
click-left = rofi-bluetooth &
[settings]
@ -345,13 +301,13 @@ margin-bottom = 5
[module/info-wifionice]
type = custom/script
exec = ~/Documents/src/polybar-scripts/polybar-scripts/info-wifionice/info-wifionice.sh
interval = 10
tail = true
[module/dunst-snooze]
type = custom/script
exec = ~/Documents/src/polybar-scripts/polybar-scripts/dunst-snooze/dunst-snooze.sh
interval = 5
click-left = ~/Documents/src/polybar-scripts/polybar-scripts/dunst-snooze/dunst-snooze.sh --toggle &
[module/dunst]
type = custom/ipc
initial = 1
hook-0 = echo "%{A1:dunstctl set-paused true && polybar-msg hook dunst 2:}%{A}" &
hook-1 = echo "%{A1:dunstctl set-paused false && polybar-msg hook dunst 1:}%{A}" &
[module/network-networkmanager]
type = custom/script