From 77ef7ef239a6b431afaa13f821cf720762ee5bfe Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Sat, 21 Mar 2020 23:22:27 +0000 Subject: [PATCH] polybar: prefer 'systemd-run --no-block' over 'i3-msg exec' --- .config/polybar/config | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.config/polybar/config b/.config/polybar/config index ac45da5..a3a1a64 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -68,13 +68,13 @@ exec = $XDG_CONFIG_HOME/polybar/update.sh tail = true format-prefix = " " format-prefix-foreground = ${colours.icon} -click-left = i3-msg exec -- i3-sensible-terminal -r i3blocks-update-term -e "yay && kill -USR1 %pid% || kill --USR1 %pid%" +click-left = systemd-run --user --no-block -- i3-sensible-terminal -r i3blocks-update-term -e "yay && kill -USR1 %pid% || kill --USR1 %pid%" [module/weather] type = custom/script exec = $XDG_CONFIG_HOME/polybar/weather.sh interval = 120 -click-left = i3-msg exec "i3-sensible-terminal -r floating-term -e 'sh -c \"xdotool getactivewindow windowsize 910 680 && curl wttr.in && sleep infinity\"'" +click-left = systemd-run --user --no-block "i3-sensible-terminal -r floating-term -e 'sh -c \"xdotool getactivewindow windowsize 910 680 && curl wttr.in && sleep infinity\"'" [module/gateway] type = custom/script @@ -208,7 +208,7 @@ label-disconnected-foreground = ${colours.critical} type = internal/date interval = 1 -label = %{A3:i3-sensible-terminal -r i3blocks-clock-term -e "sh -c \"xdotool getactivewindow windowsize 500 600; cal -y $(date +%Y); stty -echo; exec sleep infinity\"" &:}%date% %time%%{A} +label = %{A3:systemd-run --user --no-block -- i3-sensible-terminal -r i3blocks-clock-term -e "sh -c \"xdotool getactivewindow windowsize 500 600; cal -y $(date +%Y); stty -echo; exec sleep infinity\"" &:}%date% %time%%{A} time = %H:%M time-alt = %a %e %b %Y %H:%M:%S @@ -221,8 +221,8 @@ format-prefix-foreground = ${colours.icon} type = internal/pulseaudio label-volume = %percentage% -format-volume = %{A3:pavucontrol:} %{A} -format-muted = %{A3:pavucontrol:}%{A} +format-volume = %{A3:systemd-run --user --no-block -- pavucontrol:} %{A} +format-muted = %{A3:systemd-run --user --no-block -- pavucontrol:}%{A} label-volume-foreground = ${root.foreground} format-muted-foreground = ${colours.icon}