diff --git a/audio_mixer b/audio_mixer index 32fddb6..bff1c30 100755 --- a/audio_mixer +++ b/audio_mixer @@ -1,6 +1,8 @@ #/usr/bin/env bash # docstring=simple mixer gui app, for the desktop set -E -o pipefail +shopt -s failglob +export LC_ALL=C.UTF8 mixxc \ --anchor right \ diff --git a/battery b/battery index 736b359..eda06d7 100755 --- a/battery +++ b/battery @@ -1,5 +1,7 @@ #!/usr/bin/env bash # docstring=just shows the current capacity set -E -o pipefail +shopt -s failglob +export LC_ALL=C.UTF8 cat /sys/class/power_supply/BAT0/capacity diff --git a/brght b/brght index cc735e3..ac217a6 100755 --- a/brght +++ b/brght @@ -1,6 +1,8 @@ #!/usr/bin/env bash # docstring=simplifies the brightnessctl command set -E -o pipefail +shopt -s failglob +export LC_ALL=C.UTF8 # when invoked without parameter will print current brightness in percent # it accepts a parameter from 0 to 100 for brightness. Please ommit the % symbol. diff --git a/dlp-trnsrpt b/dlp-trnsrpt index cb6a015..f36619f 100755 --- a/dlp-trnsrpt +++ b/dlp-trnsrpt @@ -1,6 +1,8 @@ #!/usr/bin/env bash # docstring=transcript of youtube videos set -E -o pipefail +shopt -s failglob +export LC_ALL=C.UTF8 TEMP_FOLDER='/tmp/dlp-trnsrpt' mkdir -p "$TEMP_FOLDER" diff --git a/mserve b/mserve index 07123d7..7bbb7bf 100755 --- a/mserve +++ b/mserve @@ -1,15 +1,20 @@ -#!/usr/bin/env bash +#!/usr/bin/env python # docstring=serve files with http. -set -E -o pipefail -miniserve \ - --auth=guest:Super9000! \ - --color-scheme-dark=monokai \ - --qrcode \ - --dirs-first \ - --hide-version-footer \ - --show-wget-footer \ - --title="Rano's quick share" +import subprocess as sp +def run(): + sp.run(["miniserve", + "--auth=guest:Super9000!", + "--color-scheme-dark=monokai", + "--qrcode", + "--dirs-first", + "--hide-version-footer", + "--show-wget-footer", + "--title=Rano's quick share" + ]) + +if __name__ == "__main__": + run() # implement a switch for easy --upload-files=DIR diff --git a/nstore-find b/nstore-find index 27999e1..0a5820d 100755 --- a/nstore-find +++ b/nstore-find @@ -1,5 +1,7 @@ #!/usr/bin/env bash # docstring=searches the nix store with find set -E -o pipefail +shopt -s failglob +export LC_ALL=C.UTF8 find /nix/store/ -maxdepth 1 -iname '*'"$@"'*' diff --git a/nswitch b/nswitch index 4bfdec9..69c75af 100755 --- a/nswitch +++ b/nswitch @@ -2,6 +2,8 @@ # from https://github.com/0atman/noboilerplate/blob/main/scripts/38-nixos.md#dont-use-nix-env # docstring=quick edit (or ling xD) for nixos config set -E -o pipefail +shopt -s failglob +export LC_ALL=C.UTF8 cd ~/Projects/NixOS/ nvim diff --git a/rustdesk_profile b/rustdesk_profile index c2fbec3..332adff 100755 --- a/rustdesk_profile +++ b/rustdesk_profile @@ -1,6 +1,8 @@ #!/usr/bin/env bash # docstring=have and create multiple rustdesk profiles set -E -o pipefail +shopt -s failglob +export LC_ALL=C.UTF8 # define frist element in argument list as profile name RUSTDESK_PROFILE="$1" diff --git a/screenshot b/screenshot index c2c7ce2..a2af902 100755 --- a/screenshot +++ b/screenshot @@ -1,5 +1,7 @@ #!/usr/bin/env bash # docstring=do a screenshots on wayland compositors set -E -o pipefail +shopt -s failglob +export LC_ALL=C.UTF8 grim -g "$(slurp -o -r -c '#ff0000ff')" - | satty --filename - --fullscreen --output-filename ~/Media/Pictures/Screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png diff --git a/webcam b/webcam index 10e75fb..8fc6d6d 100755 --- a/webcam +++ b/webcam @@ -1,6 +1,8 @@ #!/usr/bin/env bash # docstring=open the webcam or v4l2 /dev/video* device set -E -o pipefail +shopt -s failglob +export LC_ALL=C.UTF8 if [[ "-h" == "$1" ]]; then echo "-l list devices"