Update 2023-01-24 08:31 OpenBSD/amd64

This commit is contained in:
c0dev0id 2023-01-24 08:31:39 +01:00
parent 6460545f25
commit 2921779271
2 changed files with 22 additions and 2 deletions

View File

@ -8,8 +8,12 @@ usage() {
[ -z "$1" ] \
&& usage
[ ! -z "$2" ] \
&& EXTRA="-q $2"
menu() {
cat <<EOF | fzf -e
cat <<EOF | fzf -e -1 $EXTRA
notifications
post
reply

18
.kshrc
View File

@ -481,8 +481,13 @@ xr_off() {
xrandr | awk '/disconnected/ { print $1 }'
}
xrandr_list() {
echo "primary: " $(xr_primary)
echo "secondary:" $(xr_secondary)
echo "offline: " $(xr_off)
}
xrandr_set() {
set -x
for scr in $(xr_secondary)
do
xrandr --output $scr --$1 $(xr_primary) --auto
@ -492,6 +497,17 @@ xrandr_set() {
xrandr --output $scr --off
done
}
xrandr_only_primary() {
pri=$(xr_primary)
sec=$(xr_secondary)
off=$(xr_off)
set -x
xrandr --output $pri --auto
for scr in $sec $off
do
xrandr --output $scr --off
done
}
xrandr_mirror() {
xrandr_set same-as
}