yeets my yotes ya know
This commit is contained in:
parent
e26830fd40
commit
f4d083bc3e
10
bread
10
bread
@ -1,3 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
book=$(ls $HOME/Books/ | dmenu -l 15)
|
book=$(ls $HOME/Books/ | dmenu -i -l 15)
|
||||||
zathura "$HOME/Books/$book"
|
if [ -z "$book" ]
|
||||||
|
then
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
zathura "$HOME/Books/$book"
|
||||||
|
fi
|
||||||
|
#zathura "$HOME/Books/$book"
|
||||||
|
26
proj
Executable file
26
proj
Executable 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
1
usbm
@ -5,4 +5,5 @@ mountable=$(lsblk -lp | grep "part $" | awk '{print $1, $4 }')
|
|||||||
usb=$(echo "$mountable" |\
|
usb=$(echo "$mountable" |\
|
||||||
dmenu -i -l 5 -p "Which usb drive should we mount?" |\
|
dmenu -i -l 5 -p "Which usb drive should we mount?" |\
|
||||||
awk '{print $1}')
|
awk '{print $1}')
|
||||||
|
mkdir -p ~/.mntpts
|
||||||
mount $(basename $usb) ~/.mntpts/$(basename $usb)
|
mount $(basename $usb) ~/.mntpts/$(basename $usb)
|
||||||
|
10
usm
Normal file
10
usm
Normal 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"
|
Loading…
Reference in New Issue
Block a user