diff options
Diffstat (limited to 'bin/guiscripts')
-rwxr-xr-x | bin/guiscripts/dmhelp | 26 | ||||
-rwxr-xr-x | bin/guiscripts/locker | 4 |
2 files changed, 3 insertions, 27 deletions
diff --git a/bin/guiscripts/dmhelp b/bin/guiscripts/dmhelp deleted file mode 100755 index 6199c21..0000000 --- a/bin/guiscripts/dmhelp +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env sh -program="${1:-$(dmenu_path | dmenu -l 4 -g 5)}" -opfil="/tmp/dmh_options.txt" -test -z "${program}" && exit 1 - -if ${program} --help > "${opfil}" -then - option="$(\ - grep -E "^ *-[-a-Z]* " "${opfil}" \ - | tr -s ' ' \ - | sort | uniq \ - | column -l 2 -t \ - | dmenu -x -l 20 -g 1 -p "${program}" \ - | awk '{print $1}' \ - )" -elif man $program > "${opfil}" -then - echo lesgo -else - echo "No options found for '${program}'" > /dev/stderr - exit 1 -fi -test -z "${option}" && exit 1 - -rm -f "${opfil}" -${program} ${option} diff --git a/bin/guiscripts/locker b/bin/guiscripts/locker index 90a1ab5..0070a86 100755 --- a/bin/guiscripts/locker +++ b/bin/guiscripts/locker @@ -1,6 +1,8 @@ #!/bin/sh +which swaylock convert grim > /dev/null || + exit 1 umask 077 file=/tmp/bg.png -grim - > $file +grim -l 0 - > $file convert -resize 10% -resize 1000% $file $file swaylock -i $file |