yeets my yotes ya know

This commit is contained in:
shockrahwow 2019-07-04 13:31:12 -07:00
parent e26830fd40
commit f4d083bc3e
5 changed files with 47 additions and 2 deletions

8
bread
View File

@ -1,3 +1,9 @@
#!/bin/bash
book=$(ls $HOME/Books/ | dmenu -l 15)
book=$(ls $HOME/Books/ | dmenu -i -l 15)
if [ -z "$book" ]
then
exit 0
else
zathura "$HOME/Books/$book"
fi
#zathura "$HOME/Books/$book"

26
proj Executable file
View File

@ -0,0 +1,26 @@
#!/bin/sh
# Add or remove projectors
c=`printf 'Add\nRemove' | dmenu -i -p 'Add/Remove screens'`
if [ "$c" = "Add" ]
then
# Grab the display device
out=`xrandr | grep ' connected' | awk '{print $1}' | \
dmenu -i -p 'Device to attach'`
if [ -z "$out" ]; then exit 0; fi
# what side should it go on
side=`printf 'left-of\nright-of\nabove\nbelow' | \
dmenu -i -p 'Pick side'`
if [ -z "$side" ]; then exit 0; fi
echo 'xrandr --output $out --auto $side eDP-1'
else
#
out=`xrandr | grep ' connected' | awk '{print $1}' | \
dmenu -i -p 'Device to dettach'`
if [ -z "$out" ]; then exit 0; fi
exit 0
fi

1
usbm
View File

@ -5,4 +5,5 @@ mountable=$(lsblk -lp | grep "part $" | awk '{print $1, $4 }')
usb=$(echo "$mountable" |\
dmenu -i -l 5 -p "Which usb drive should we mount?" |\
awk '{print $1}')
mkdir -p ~/.mntpts
mount $(basename $usb) ~/.mntpts/$(basename $usb)

10
usm Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# pick out the drive but not sda because thats the main drive
choice=`lsblk -lp | \
grep 'disk $' | awk '{print $1, $4}' | grep -v 'sda' | \
dmenu -i -p 'Drive to mount'`
dev=`echo $choice | awk '{print $1}'`
if [ -z "$dev" ];then exit 0;fi
# Finally we can mount the thing
mkdir -p "/mnt/`basename $dev`"
mount "$dev" "$name"

2
yes Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
ls $HOME/Books/ | dmenu -l 15 | zathura