diff options
author | zachir <zachir@librem.one> | 2022-10-09 01:19:04 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2022-10-09 01:19:04 -0500 |
commit | 0ad890bae271b17a7eaf76f70b2c462e4ca10333 (patch) | |
tree | e81457c2d4cf414a66edb010b4cfbc2e0974e400 /monattach-tofi | |
parent | d36e7cd095371deb8b70115fc7817d351bcfa645 (diff) |
reorganize .local/bin folder
Diffstat (limited to 'monattach-tofi')
-rwxr-xr-x | monattach-tofi | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/monattach-tofi b/monattach-tofi deleted file mode 100755 index f796355..0000000 --- a/monattach-tofi +++ /dev/null @@ -1,22 +0,0 @@ -#!/sbin/sh - -XSTATS="$(xrandr)" - -PRIMARY="$(echo "$XSTATS" | grep "primary" | awk '{print $1}')" -RIGHT=false - -for i in $@; do - case "$i" in - "right") - RIGHT="TRUE" ;; - "left") - RIGHT="FALSE" ;; - esac -done - -OUTPUT="$(echo "$XSTATS" | grep ' connected ' | grep -v '[0-9]*x[0-9]*+[0-9]*+[0-9]' | awk '{print $1}' | tofi --height 24 --prompt 'Which output?')" -[ -z "$OUTPUT" ] && exit 2 - -[ "$RIGHT" = "TRUE" ] && ARGS="--right-of $PRIMARY" || ARGS="--left-of $PRIMARY" - -xrandr --output "$OUTPUT" --mode 1920x1080 $ARGS |