#!/bin/sh shebang. newline after universalized.

This commit is contained in:
Luke Smith
2020-02-08 18:43:37 -05:00
parent a25e8b640a
commit 2b5df860de
62 changed files with 88 additions and 61 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/sh
# Give a battery name (e.g. BAT0) as an argument.
case $BLOCK_BUTTON in

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/sh
date '+%Y %b %d (%a) %I:%M%p'

View File

@@ -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)" ;;

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/sh
# Status bar module for disk space
# $1 should be drive mountpoint

View File

@@ -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 ;;

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/sh
case $BLOCK_BUTTON in
1) $TERMINAL -e nmtui ;;

View File

@@ -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

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/sh
# i3blocks mail module.
# Displays number of unread mail and an loading icon if updating.

View File

@@ -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)" ;;

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/sh
filter() {
sed "/^volume:/d" | tac | sed -e "s/\\&/&amp;/g;s/\\[paused\\].*/<span color=\"gray\" font_style=\"italic\">/g;s/\\[playing\\].*/<span>/g" | tr -d '\n' | sed -e "s/$/<\\/span>\n/g"

View File

@@ -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.

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/sh
# i3blocks module for pacman upgrades.
# Displays number of upgradeable packages.

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/sh
printf "Beginning upgrade.\\n"

View File

@@ -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

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/sh
case $BLOCK_BUTTON in
1) setsid "$TERMINAL" -e alsamixer & ;;

View File

@@ -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