mirror of
https://github.com/VectorKappa/dotfiles.git
synced 2025-12-19 16:26:10 +01:00
More polybar changes. Removed temporary runpolybaronce in favor of more versatile 'toggle_run'
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
#!/bin/zsh
|
|
||||||
(pgrep -f "polybar music" >/dev/null && pkill -f "polybar music") || polybar music &
|
|
||||||
3
bin/toggle_run
Executable file
3
bin/toggle_run
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/zsh
|
||||||
|
pgrep -axf $1 >/dev/null && pkill -xf $1 || eval $1 &
|
||||||
|
exit 0
|
||||||
@@ -52,10 +52,11 @@ module-margin-left = 1
|
|||||||
module-margin-right = 1
|
module-margin-right = 1
|
||||||
|
|
||||||
font-0 = "SauceCodePro Nerd Font Mono:size=10"
|
font-0 = "SauceCodePro Nerd Font Mono:size=10"
|
||||||
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
|
font-1 = "Unifont:size=8:antialias=false;0"
|
||||||
font-2 = siji:pixelsize=10;1
|
font-2 = "Siji:pixelsize=10;1"
|
||||||
font-3 = "SauceCodePro Nerd Font Mono:size=16;4"
|
font-3 = "SauceCodePro Nerd Font Mono:size=16;4"
|
||||||
font-4 = "SauceCodePro Nerd Font Mono:size=13;2"
|
font-4 = "SauceCodePro Nerd Font Mono:size=13;2"
|
||||||
|
font-5 = "Noto Color Emoji:scale=10;2"
|
||||||
|
|
||||||
modules-left = rofi bspwm
|
modules-left = rofi bspwm
|
||||||
modules-center = mpd_icon title
|
modules-center = mpd_icon title
|
||||||
@@ -221,7 +222,7 @@ format = <label>
|
|||||||
format-foreground = ${colors.foreground-alt}
|
format-foreground = ${colors.foreground-alt}
|
||||||
format-padding = 0
|
format-padding = 0
|
||||||
|
|
||||||
click-left = bspc node -c
|
;click-left = bspc node -c
|
||||||
|
|
||||||
label = %title%
|
label = %title%
|
||||||
label-maxlen = 40
|
label-maxlen = 40
|
||||||
@@ -247,7 +248,7 @@ label-connected = %essid%
|
|||||||
;animation-connected-0 = %local_ip%
|
;animation-connected-0 = %local_ip%
|
||||||
;animation-connected-1 = %essid%
|
;animation-connected-1 = %essid%
|
||||||
;animation-connected-framerate=1000
|
;animation-connected-framerate=1000
|
||||||
format-disconnected =%{A1:alacritty -e nmtui &:}%{T4} 睊%{A}
|
format-disconnected =%{A1:alacritty -e nmtui &:}%{T4}睊%{a}
|
||||||
;format-disconnected = <label-disconnected>
|
;format-disconnected = <label-disconnected>
|
||||||
format-disconnected-underline = ${self.format-connected-underline}
|
format-disconnected-underline = ${self.format-connected-underline}
|
||||||
;label-disconnected = %ifname% disconnected
|
;label-disconnected = %ifname% disconnected
|
||||||
@@ -409,7 +410,7 @@ menu-2-1-exec = menu-open-0
|
|||||||
|
|
||||||
[module/mpd_icon]
|
[module/mpd_icon]
|
||||||
type = custom/text
|
type = custom/text
|
||||||
click-left = runpolybaronce
|
click-left = toggle_run "polybar music"
|
||||||
content =
|
content =
|
||||||
content-font = 4
|
content-font = 4
|
||||||
;content-underline = #0a6cf5
|
;content-underline = #0a6cf5
|
||||||
|
|||||||
Reference in New Issue
Block a user