1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

changing i3blocks

This commit is contained in:
tiynger
2019-09-13 21:03:54 +02:00
parent ce084c2083
commit 27c1f621fa
6 changed files with 1057 additions and 43 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
case $BLOCK_BUTTON in
1) $TERMINAL -e nmtui ;;
@@ -14,4 +14,4 @@ esac
[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "📶", int($3 * 100 / 70) "%" }')
printf "%s %s" "$wifiicon" "$(cat /sys/class/net/e*/operstate | sed "s/down/❎/;s/up/🌐/")"
printf "%s %s\n" "$wifiicon" "$(cat /sys/class/net/e*/operstate | sed "s/down/❎/;s/up/🌐/")"