Update 2024-02-14 07:51 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id
2024-02-14 07:54:31 +01:00
parent b55e6a3616
commit 9624895938
373 changed files with 19074 additions and 3045 deletions

23
.bin/OLD/screensort Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
PRIMARY=
SECONDARY=
OFFLINE=
update() {
PRIMARY=$(xrandr --listmonitors | awk '/ 0:/{ print $4 }')
SECONDARY=$(xrandr | awk '/ connected/ { print $1 }' | fgrep -v $PRIMARY)
OFFLINE=$(xrandr | awk '/disconnected/ { print $1 }')
}
update
menu() {
cat <<EOF | fzf -e --preview='xrandr | grep -A1 {1}'
$PRIMARY (primary)
$(for i in $SECONDARY; do echo "$i (secondary)"; done)
$(for i in $OFFLINE; do echo "$i (offline)"; done)
EOF
}
menu