diff options
author | Santo Cariotti <santo@dcariotti.me> | 2021-12-08 11:52:16 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2021-12-08 11:52:16 +0100 |
commit | 956df69d7496081db5e7b3621a0bcc7b9d7f7dfc (patch) | |
tree | 2c1de01541d70d1cbcb59974e42102440359f153 /i3blocks | |
parent | 1eca5dc0fe3648341e1707efc811162fc5056888 (diff) |
move to .config folder
Diffstat (limited to 'i3blocks')
-rw-r--r-- | i3blocks/config | 39 | ||||
-rwxr-xr-x | i3blocks/i3_battery.sh | 18 |
2 files changed, 0 insertions, 57 deletions
diff --git a/i3blocks/config b/i3blocks/config deleted file mode 100644 index 6653643..0000000 --- a/i3blocks/config +++ /dev/null @@ -1,39 +0,0 @@ -command=/usr/share/i3blocks/$BLOCK_NAME -separator_block_width=15 - -[weather] -command=curl -Ss 'https://wttr.in/Catania?0&T&Q' | cut -c 16- | head -2 | xargs echo -interval=3600 -color=#A4C2F4 - -[memory] -label=MEM -separator=false -interval=30 - -[disk] -label=DISK -interval=30 - -[cpu_usage] -label=CPU -interval=10 -min_width=CPU: 100.00% - -[wifi] -command=iwgetid -r | tr '\n' ' ' && grep $(iwgetid -m | awk '{ printf "%s", $1 }') /proc/net/wireless | awk '{ printf "%i%\n", int($3 * 100 / 70) }';exit 0 instance=wlp2s0 -interval=5 -label= - -[battery] -command=i3_battery.sh -interval=10 - -[volume] -command=pulsemixer --get-volume | cut -d " " -f 1; exit 0 -interval=1 -label= - -[time] -command=date -interval=1 diff --git a/i3blocks/i3_battery.sh b/i3blocks/i3_battery.sh deleted file mode 100755 index 97ea493..0000000 --- a/i3blocks/i3_battery.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -BAT=$(acpi -b | grep -E -o '[0-9][0-9]?%') -CHECK_CHARGING=$(acpi -b | grep -E -o 'Charging') - -# Full and short texts -echo "Battery: $BAT" -echo "BAT: $BAT" - -if [ "$CHECK_CHARGING" != "" ]; then - echo "#1abc9c" - exit 0 -fi -# Set urgent flag below 5% or use orange below 20% -[ ${BAT%?} -le 5 ] && exit 33 -[ ${BAT%?} -le 35 ] && echo "#d35400" - -exit 0 |