From 569646c9c4293ea3eed03f09d444305577956608 Mon Sep 17 00:00:00 2001 From: Meutel Date: Fri, 24 Nov 2017 15:45:00 +0100 Subject: [PATCH] oda: status bar brightness/online --- _i3__oda.armorique.lan/i3status.conf | 17 ++++++++++++++--- _i3__oda.armorique.lan/xbacklight_status.sh | 3 +++ 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100755 _i3__oda.armorique.lan/xbacklight_status.sh diff --git a/_i3__oda.armorique.lan/i3status.conf b/_i3__oda.armorique.lan/i3status.conf index a87f207..5536e15 100644 --- a/_i3__oda.armorique.lan/i3status.conf +++ b/_i3__oda.armorique.lan/i3status.conf @@ -13,11 +13,13 @@ general { } order += "battery all" -order += "ipv6" -order += "disk /" -order += "disk /home" +order += "online_status" +order += "external_script xbacklight_status" +#order += "ipv6" order += "wireless _first_" order += "ethernet _first_" +order += "disk /" +order += "disk /home" order += "load" order += "cpu_temperature acpitz0" order += "volume master" @@ -27,6 +29,11 @@ cpu_temperature acpitz0 { format = " %degrees ⁰C" } +online_status { + icon_on = "" + icon_off = "" +} + wireless _first_ { format_up = " (%essid) %ip" format_down = " down" @@ -60,3 +67,7 @@ disk "/home" { volume master { format = " %volume" } + +external_script "xbacklight_status" { + script_path = "/home/meutel/.i3/xbacklight_status.sh" +} diff --git a/_i3__oda.armorique.lan/xbacklight_status.sh b/_i3__oda.armorique.lan/xbacklight_status.sh new file mode 100755 index 0000000..bc5826c --- /dev/null +++ b/_i3__oda.armorique.lan/xbacklight_status.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +printf " %.0f%%" $(xbacklight)