diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/linux/dmenu-wl | 5 | ||||
-rwxr-xr-x | bin/linux/dnf-needs-restarting | 26 | ||||
-rwxr-xr-x | bin/linux/setbright | 23 | ||||
-rwxr-xr-x | bin/linux/setvol | 23 |
4 files changed, 0 insertions, 77 deletions
diff --git a/bin/linux/dmenu-wl b/bin/linux/dmenu-wl deleted file mode 100755 index 7ac2273..0000000 --- a/bin/linux/dmenu-wl +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -set -euo pipefail - -wofi -d "$@" diff --git a/bin/linux/dnf-needs-restarting b/bin/linux/dnf-needs-restarting deleted file mode 100755 index a080649..0000000 --- a/bin/linux/dnf-needs-restarting +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -set -eo pipefail - -if command -v dnf > /dev/null; then - DNFCMD="dnf" -fi -if command -v jq > /dev/null; then - JQCMD="jq" -fi -if [ -z "$DNFCMD" ] || [ -z "$JQCMD" ]; then - echo "{\"tooltip\": \"requires 'jq' and 'dnf'\", \"text\": \"\"}" - exit 1 -fi - -set -u - -if ! output="$($DNFCMD needs-restarting -r)"; then - icon="" -else - icon="" -fi - -# this is a literal expression for `jq` -# shellcheck disable=SC2016 -$JQCMD --unbuffered -n -c '{tooltip: $ARGS.positional[0], text: $ARGS.positional[1]}' --args "$output" "$icon" diff --git a/bin/linux/setbright b/bin/linux/setbright deleted file mode 100755 index 42cd48f..0000000 --- a/bin/linux/setbright +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -set -euo pipefail - -current=$(brightnessctl -m info | cut -d, -f4 | tr --delete '%') -case $1 in - up) - increment=$(( 5 - ( current % 5 ) )) - new=$(( current + increment )) - if [ $new -gt 100 ]; then - new=100 - fi - brightnessctl set $new% > /dev/null 2>&1 - echo $new;; - down) - increment=$(( ( ( current - 1 ) % 5 ) + 1 )) - new=$(( current - increment )) - if [ $new -lt 0 ]; then - new=0 - fi - brightnessctl set $new% > /dev/null 2>&1 - echo $new;; -esac diff --git a/bin/linux/setvol b/bin/linux/setvol deleted file mode 100755 index bf9cbed..0000000 --- a/bin/linux/setvol +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -set -euo pipefail - -current_volume=$(pactl get-sink-volume @DEFAULT_SINK@ | grep Volume | sed -e 's/.* \([0-9][0-9]*\)%.*/\1/') -case $1 in - up) - increment=$(( 5 - ( current_volume % 5 ) )) - newvol=$(( current_volume + increment )) - if [ $newvol -gt 100 ]; then - newvol=100 - fi - pactl set-sink-volume @DEFAULT_SINK@ $newvol% - echo $newvol;; - down) - increment=$(( ( ( current_volume - 1 ) % 5 ) + 1 )) - newvol=$(( current_volume - increment )) - if [ $newvol -lt 0 ]; then - newvol=0 - fi - pactl set-sink-volume @DEFAULT_SINK@ $newvol% - echo $newvol;; -esac |