From 412514eff3512b35cc4f32a4ba3767fbb2eab054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Dudr?= Date: Fri, 6 May 2022 11:39:54 +0200 Subject: [PATCH] oneline input + local stuff --- dot_config/herbstluftwm/executable_panel-handler | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dot_config/herbstluftwm/executable_panel-handler b/dot_config/herbstluftwm/executable_panel-handler index 29a2cb3..ce7085d 100644 --- a/dot_config/herbstluftwm/executable_panel-handler +++ b/dot_config/herbstluftwm/executable_panel-handler @@ -56,7 +56,7 @@ hc --idle | { #count-mails; #charge=$(battery | awk '{print $2}') while true ; do - + res= ### prepare by monitor tags displaying for monitor in "${monitors[@]}" ; do output_tags[$monitor]="%{A4:herbstclient use_index +1 --skip-visible:}%{A5:herbstclient use_index -1 --skip-visible:}" @@ -104,19 +104,19 @@ hc --idle | { monitor=${monitors[$m]} ### set monitor - echo -n "%{S$m}" + res="$res%{S$m}" #echo -en "%{S$((${#monitors[@]} - monitor))}" ### print the left - echo -n "%{l}${output_tags[$monitor]}$separator ${windowtitle:0:150}" + res="$res%{l}${output_tags[$monitor]}$separator ${windowtitle:0:150}" ### center #echo -n "%{c}%{U${colors[bright_orange]}}${windowtitle:0:150}%{U-}" ### print the right - echo -n "%{r}$playing $separator $volume $separator $wifi $separator $network $separator $temperature $separator $load $separator $date $separator %{U#f2f229}$charge%{U-} $separator" + res="$res%{r}$playing $separator $volume $separator $load $separator $date " #echo -en "%{r}$right $separator %{U#f2f229}$charge%{U-} $separator" done ### end the output - echo + echo -e "$res" ### Data handling ### # This part handles the events generated in the event loop, and sets