added failglob and LC_ALL
This commit is contained in:
parent
88b0833a27
commit
5adf91302a
10 changed files with 33 additions and 10 deletions
|
@ -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 \
|
||||
|
|
2
battery
2
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
|
||||
|
|
2
brght
2
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.
|
||||
|
|
|
@ -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"
|
||||
|
|
25
mserve
25
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
|
||||
|
|
|
@ -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 '*'"$@"'*'
|
||||
|
|
2
nswitch
2
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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
2
webcam
2
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"
|
||||
|
|
Loading…
Reference in a new issue