diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2020-02-08 18:43:37 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2020-02-08 18:43:37 -0500 |
| commit | 2b5df860ded1412a0c0be0d140d138616e926dfc (patch) | |
| tree | 7cf2598594bfd640b61771704012c87cae154034 /.local/bin/statusbar | |
| parent | a25e8b640ac83b6eb345977e59803e999bc42202 (diff) | |
| download | eibhear-2b5df860ded1412a0c0be0d140d138616e926dfc.tar.gz eibhear-2b5df860ded1412a0c0be0d140d138616e926dfc.tar.zst eibhear-2b5df860ded1412a0c0be0d140d138616e926dfc.zip | |
#!/bin/sh shebang. newline after universalized.
Diffstat (limited to '.local/bin/statusbar')
| -rwxr-xr-x | .local/bin/statusbar/battery | 2 | ||||
| -rwxr-xr-x | .local/bin/statusbar/clock | 2 | ||||
| -rwxr-xr-x | .local/bin/statusbar/cpu | 2 | ||||
| -rwxr-xr-x | .local/bin/statusbar/disk | 2 | ||||
| -rwxr-xr-x | .local/bin/statusbar/help | 3 | ||||
| -rwxr-xr-x | .local/bin/statusbar/internet | 2 | ||||
| -rwxr-xr-x | .local/bin/statusbar/iplocate | 2 | ||||
| -rwxr-xr-x | .local/bin/statusbar/mailbox | 2 | ||||
| -rwxr-xr-x | .local/bin/statusbar/memory | 2 | ||||
| -rwxr-xr-x | .local/bin/statusbar/music | 2 | ||||
| -rwxr-xr-x | .local/bin/statusbar/news | 2 | ||||
| -rwxr-xr-x | .local/bin/statusbar/pacpackages | 2 | ||||
| -rwxr-xr-x | .local/bin/statusbar/popupgrade | 2 | ||||
| -rwxr-xr-x | .local/bin/statusbar/torrent | 2 | ||||
| -rwxr-xr-x | .local/bin/statusbar/volume | 2 | ||||
| -rwxr-xr-x | .local/bin/statusbar/weather | 3 |
16 files changed, 18 insertions, 16 deletions
diff --git a/.local/bin/statusbar/battery b/.local/bin/statusbar/battery index 677ecb4..d1631db 100755 --- a/.local/bin/statusbar/battery +++ b/.local/bin/statusbar/battery @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # Give a battery name (e.g. BAT0) as an argument. case $BLOCK_BUTTON in diff --git a/.local/bin/statusbar/clock b/.local/bin/statusbar/clock index 8b418eb..5d46359 100755 --- a/.local/bin/statusbar/clock +++ b/.local/bin/statusbar/clock @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh date '+%Y %b %d (%a) %I:%M%p' diff --git a/.local/bin/statusbar/cpu b/.local/bin/statusbar/cpu index 08078ba..3b1394a 100755 --- a/.local/bin/statusbar/cpu +++ b/.local/bin/statusbar/cpu @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh case $BLOCK_BUTTON in 1) notify-send "🖥 CPU hogs" "$(ps axch -o cmd:15,%cpu --sort=-%cpu | head)" ;; diff --git a/.local/bin/statusbar/disk b/.local/bin/statusbar/disk index d9dedf3..2ca8805 100755 --- a/.local/bin/statusbar/disk +++ b/.local/bin/statusbar/disk @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # Status bar module for disk space # $1 should be drive mountpoint diff --git a/.local/bin/statusbar/help b/.local/bin/statusbar/help index 9b88e65..d7345dc 100755 --- a/.local/bin/statusbar/help +++ b/.local/bin/statusbar/help @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + case $BLOCK_BUTTON in 1) groff -mom ~/.local/share/larbs/readme.mom -Tpdf | zathura - ;; 2) i3 restart ;; diff --git a/.local/bin/statusbar/internet b/.local/bin/statusbar/internet index 8674658..4935294 100755 --- a/.local/bin/statusbar/internet +++ b/.local/bin/statusbar/internet @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh case $BLOCK_BUTTON in 1) $TERMINAL -e nmtui ;; diff --git a/.local/bin/statusbar/iplocate b/.local/bin/statusbar/iplocate index 5362330..4ca4f10 100755 --- a/.local/bin/statusbar/iplocate +++ b/.local/bin/statusbar/iplocate @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # Gets your public ip address checks which country you are in and # displays that information in the statusbar diff --git a/.local/bin/statusbar/mailbox b/.local/bin/statusbar/mailbox index f9d3bd8..21c85ab 100755 --- a/.local/bin/statusbar/mailbox +++ b/.local/bin/statusbar/mailbox @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # i3blocks mail module. # Displays number of unread mail and an loading icon if updating. diff --git a/.local/bin/statusbar/memory b/.local/bin/statusbar/memory index c128261..dfd3d7b 100755 --- a/.local/bin/statusbar/memory +++ b/.local/bin/statusbar/memory @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh case $BLOCK_BUTTON in 1) notify-send "🧠Memory hogs" "$(ps axch -o cmd:15,%mem --sort=-%mem | head)" ;; diff --git a/.local/bin/statusbar/music b/.local/bin/statusbar/music index 663fe0f..fadc15e 100755 --- a/.local/bin/statusbar/music +++ b/.local/bin/statusbar/music @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh filter() { sed "/^volume:/d" | tac | sed -e "s/\\&/&/g;s/\\[paused\\].*/<span color=\"gray\" font_style=\"italic\">/g;s/\\[playing\\].*/<span>/g" | tr -d '\n' | sed -e "s/$/<\\/span>\n/g" diff --git a/.local/bin/statusbar/news b/.local/bin/statusbar/news index 9a0c1da..b7ca1a7 100755 --- a/.local/bin/statusbar/news +++ b/.local/bin/statusbar/news @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # i3blocks newsboat module. # Displays number of unread news items and an loading icon if updating. diff --git a/.local/bin/statusbar/pacpackages b/.local/bin/statusbar/pacpackages index e4cd479..418bc2d 100755 --- a/.local/bin/statusbar/pacpackages +++ b/.local/bin/statusbar/pacpackages @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh # i3blocks module for pacman upgrades. # Displays number of upgradeable packages. diff --git a/.local/bin/statusbar/popupgrade b/.local/bin/statusbar/popupgrade index 099b259..ba6678c 100755 --- a/.local/bin/statusbar/popupgrade +++ b/.local/bin/statusbar/popupgrade @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh printf "Beginning upgrade.\\n" diff --git a/.local/bin/statusbar/torrent b/.local/bin/statusbar/torrent index c88e354..4b559b8 100755 --- a/.local/bin/statusbar/torrent +++ b/.local/bin/statusbar/torrent @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh transmission-remote -l | grep % | sed " # This first sed command is to ensure a desirable order with sort diff --git a/.local/bin/statusbar/volume b/.local/bin/statusbar/volume index c3bf6d1..c16eded 100755 --- a/.local/bin/statusbar/volume +++ b/.local/bin/statusbar/volume @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh case $BLOCK_BUTTON in 1) setsid "$TERMINAL" -e alsamixer & ;; diff --git a/.local/bin/statusbar/weather b/.local/bin/statusbar/weather index 4241a51..4a11673 100755 --- a/.local/bin/statusbar/weather +++ b/.local/bin/statusbar/weather @@ -1,4 +1,5 @@ -#!/usr/bin/env sh +#!/bin/sh + location="$1"; [ -z "$location" ] || { location="$location+" && rm -f "$HOME/.local/share/weatherreport" ;} getforecast() { ping -q -c 1 1.1.1.1 >/dev/null || exit 1 |
