From b6aa33509c7681b5067de1f9c567ecb36a4f2573 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 8 Dec 2019 19:28:42 +0100 Subject: [PATCH] various updates --- battery-check.sh | 3 +-- notebook-stats | 4 +++- start-post-i3 | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/battery-check.sh b/battery-check.sh index abe4400..f4f9483 100755 --- a/battery-check.sh +++ b/battery-check.sh @@ -4,8 +4,7 @@ acpi=$(acpi) # Nothing to be done if we are charging if echo "$acpi" | grep -q Charging; then - # exit 0 - : + exit 0 fi percent=$(echo $acpi | cut -d, -f2 | sed 's/%//') diff --git a/notebook-stats b/notebook-stats index e91bb40..baa09c0 100755 --- a/notebook-stats +++ b/notebook-stats @@ -3,7 +3,9 @@ exec 2>&1 if [ $# -ge 1 ]; then - printf "Estimated location\n\n$@\n\n" + printf 'Estimated location\n\n' + echo "$@" + printf '\n\n' fi printf 'My IP addresses\n\n' diff --git a/start-post-i3 b/start-post-i3 index f0a6af4..42feae2 100755 --- a/start-post-i3 +++ b/start-post-i3 @@ -6,8 +6,8 @@ i3-msg 'workspace 2; append_layout ~/.i3/workspace-2.json' i3-msg 'workspace 10' # Start programs afterwards and watch matching -#if command -v firefox; then -# firefox & +if command -v firefox; then + firefox & if command -v chromium; then chromium & elif command -v chromium-browser; then