From f996a044efce6590ccad0b8c660b2a9fa525db1c Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 8 Nov 2021 12:19:37 +0100 Subject: [PATCH] update i3blocks --- files/i3blocks/config | 4 ++-- files/i3blocks/wlan | 3 ++- vars/main.yml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/files/i3blocks/config b/files/i3blocks/config index 5ff1bf4..53806a6 100644 --- a/files/i3blocks/config +++ b/files/i3blocks/config @@ -3,8 +3,8 @@ separator_block_width=15 markup=pango [weather] -command=curl -Ss 'https://wttr.in?0&T' | cut -c 16- | head -4 | tail -2 | xargs echo -interval=1800 +command=curl -Ss 'wttr.in?format="%l:+%c%t+%w\n"' | xargs echo +interval=600 color=#A4C2F4 [volume] diff --git a/files/i3blocks/wlan b/files/i3blocks/wlan index 246e421..a51b6ae 100755 --- a/files/i3blocks/wlan +++ b/files/i3blocks/wlan @@ -10,7 +10,8 @@ if [[ -z "$IFACE" ]] ; then elif ( ip a s dev wlan0 ) > /dev/null 2>& 1 ; then IFACE="wlan0" else - exit 1 + # No wlan interface found + exit 0 fi fi diff --git a/vars/main.yml b/vars/main.yml index 5200357..c42b734 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -33,5 +33,5 @@ __i3_workspaces: user: "{{ i3wm_user }}" -playbook_version_number: 9020 # should be int +playbook_version_number: 9021 # should be int playbook_version_path: 'role-i3wm_chaos-bodensee_github.com.version'