From b17ce65446aec453005a6c08bc7c0713a92eeda5 Mon Sep 17 00:00:00 2001 From: Frost-Phoenix <67cyril6767@gmail.com> Date: Sat, 11 Nov 2023 22:57:06 +0100 Subject: [PATCH] scripts clean up --- modules/home/scripts/dsize | 7 ------- modules/home/scripts/music | 9 --------- modules/home/scripts/runbg | 15 --------------- 3 files changed, 31 deletions(-) delete mode 100755 modules/home/scripts/dsize delete mode 100755 modules/home/scripts/music delete mode 100755 modules/home/scripts/runbg diff --git a/modules/home/scripts/dsize b/modules/home/scripts/dsize deleted file mode 100755 index 48a75cf..0000000 --- a/modules/home/scripts/dsize +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -if [ "$#" -eq 1 ]; then - du -hs $1 -else - echo "[ERROR] => Wrong number of parameters" -fi diff --git a/modules/home/scripts/music b/modules/home/scripts/music deleted file mode 100755 index a37c0ba..0000000 --- a/modules/home/scripts/music +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -if [[ $# == 0 ]]; then - runbg audacious -t -elif [[ $1 == -s ]]; then - pkill audacious -else - echo "[ERROR] => Wrong argument..." -fi diff --git a/modules/home/scripts/runbg b/modules/home/scripts/runbg deleted file mode 100755 index be0df9f..0000000 --- a/modules/home/scripts/runbg +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -[ $# -eq 0 ] && { # $# is number of args - echo "$(basename $0): missing command" >&2 - exit 1 -} -prog="$(which "$1")" # see below -[ -z "$prog" ] && { - echo "$(basename $0): unknown command: $1" >&2 - exit 1 -} -shift # remove $1, now $prog, from args -tty -s && exec /dev/null # if stdout is a terminal, redirect to null -tty -s <&2 && exec 2>&1 # stderr to stdout (which might not be null) -"$prog" "$@" & # $@ is all args