From 0b227719b46769049e829c7034cd560ea23d9cf4 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 3 Mar 2021 21:31:06 +0100 Subject: [PATCH] update blocks --- bar/bar1.conf | 62 ++++++++++++++++++++++++----------- bar/src/acpi.php | 2 +- bar/src/app.php | 2 +- bar/src/bandwidth.php | 5 +-- bar/src/base/block.php | 29 ++++++++++++++++ bar/src/date.php | 2 +- bar/src/ip.php | 7 ++-- bar/src/ip_wan.php | 2 +- bar/src/meteo.php | 7 ++-- bar/src/mount_point_space.php | 2 +- bar/src/rss.php | 2 +- bar/src/screensaver.php | 2 +- bar/src/spotify.php | 2 +- bar/src/spotify_ctrl.php | 2 +- bar/src/time.php | 2 +- bar/src/volume.php | 2 +- 16 files changed, 94 insertions(+), 38 deletions(-) diff --git a/bar/bar1.conf b/bar/bar1.conf index 561f971..e84265c 100644 --- a/bar/bar1.conf +++ b/bar/bar1.conf @@ -1,35 +1,47 @@ [bandwidth_eth0] -command=/home/simon/.i3/bar/src/bandwidth.php eth0 +command=/home/simon/.i3/bar/src/bandwidth.php eth0 inet eth format=json markup=pango interval=5 -[bandwidth_eth1] -command=/home/simon/.i3/bar/src/bandwidth.php eth1 +[bandwidth_enx00e04cf69b06] +command=/home/simon/.i3/bar/src/bandwidth.php enx00e04cf69b06 inet eth format=json markup=pango interval=5 -[bandwidth_wlan0] -command=/home/simon/.i3/bar/src/bandwidth.php wlan0 +[bandwidth_enx00e04c68022c] +command=/home/simon/.i3/bar/src/bandwidth.php enx00e04c68022c inet eth +format=json +markup=pango +interval=5 + +[bandwidth_wlp59s0] +command=/home/simon/.i3/bar/src/bandwidth.php wlp59s0 inet wifi format=json markup=pango interval=1 [ip_eth0_inet] -command=/home/simon/.i3/bar/src/ip.php eth0 +command=/home/simon/.i3/bar/src/ip.php eth0 inet eth format=json markup=pango interval=10 -[ip_eth1_inet] -command=/home/simon/.i3/bar/src/ip.php eth1 +[ip_enx00e04cf69b06_inet] +command=/home/simon/.i3/bar/src/ip.php enx00e04cf69b06 inet eth format=json markup=pango interval=10 -[ip_wlan0_inet] -command=/home/simon/.i3/bar/src/ip.php wlan0 +[ip_enx00e04c68022c_inet] +command=/home/simon/.i3/bar/src/ip.php enx00e04c68022c inet eth +format=json +markup=pango +interval=10 + +[ip_wlp59s0_inet] +command=/home/simon/.i3/bar/src/ip.php wlp59s0 inet wifi format=json markup=pango interval=10 @@ -70,26 +82,38 @@ format=json markup=pango interval=1 +[i3remote] +command=/home/simon/.i3/bar/src/i3remote.php +format=json +markup=pango +interval=3 + [screensaver] command=/home/simon/.i3/bar/src/screensaver.php format=json markup=pango interval=3 -[meteo] -command=/home/simon/.i3/bar/src/meteo.php -format=json -markup=pango -interval=3600 +#[meteo] +#command=/home/simon/.i3/bar/src/meteo.php +#format=json +#markup=pango +#interval=3600 -[app_passwords] -command=/home/simon/.i3/bar/src/app.php app_passwords P "/home/simon/bin/deblan-passwords" '#444444' '#ffc337' +#[app_passwords] +#command=/home/simon/.i3/bar/src/app.php app_passwords P "/home/simon/bin/deblan-passwords" '#444444' '#ffc337' +#format=json +#markup=pango +#interval=1000 + +[app_otp] +command=/home/simon/.i3/bar/src/app.php app_otp "🔐" "/home/simon/bin/otpclient" '#363636' '#ffc337' format=json markup=pango interval=1000 [app_cloud] -command=/home/simon/.i3/bar/src/app.php app_cloud C "xdg-open https://deblan.cloud/" '#5d5d7d' '#fff' +command=/home/simon/.i3/bar/src/app.php app_cloud C "xdg-open https://deblan.cloud/" '#3c4e74' '#fff' format=json markup=pango interval=1000 @@ -107,7 +131,7 @@ markup=pango interval=1000 [time] -command=/home/simon/.i3/bar/src/time.php "H:i:s d/m/Y" +command=/home/simon/.i3/bar/src/time.php "H:i:s d/m" format=json markup=pango interval=1 diff --git a/bar/src/acpi.php b/bar/src/acpi.php index d872baa..309d9b5 100755 --- a/bar/src/acpi.php +++ b/bar/src/acpi.php @@ -1,4 +1,4 @@ -#!/usr/bin/php +#!/usr/bin/env php