Initial commit for public dots
This commit is contained in:
6
.config/scripts/util/cdfzf
Normal file
6
.config/scripts/util/cdfzf
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/zsh
|
||||
selection=$(fzf)
|
||||
|
||||
selection=$(echo $selection | sed 's,/[^/]*$,,')
|
||||
|
||||
cd $selection
|
||||
15
.config/scripts/util/cdto
Normal file
15
.config/scripts/util/cdto
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
paths="
|
||||
/home/meq/hdd
|
||||
/home/meq/hdd/download
|
||||
/home/meq/hdd/prod/projects
|
||||
/home/meq/hdd/prod/ssimdsw
|
||||
/home/meq/hdd/prod/resources
|
||||
/home/meq/hdd/prod/splice
|
||||
"
|
||||
|
||||
selection=$(echo $paths | fzf)
|
||||
|
||||
if [[ ! -z $selection ]]; then
|
||||
cd $selection
|
||||
fi
|
||||
23
.config/scripts/util/dcalc
Executable file
23
.config/scripts/util/dcalc
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
choice=$(echo -e " " | dmenu -p "calc")
|
||||
|
||||
while :; do
|
||||
case $choice in
|
||||
|
||||
"exit")
|
||||
break
|
||||
;;
|
||||
|
||||
"copy")
|
||||
echo $answer | xclip -selection clipboard
|
||||
break
|
||||
;;
|
||||
|
||||
*)
|
||||
answer=$(qalc $choice)
|
||||
;;
|
||||
|
||||
esac
|
||||
choice=$(echo -e "copy\nexit " | dmenu -p "$answer")
|
||||
done
|
||||
4
.config/scripts/util/fzfsample
Executable file
4
.config/scripts/util/fzfsample
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
selection=$(fzf --preview 'mpv --no-video {}' --preview-window=up:20%)
|
||||
dragon-drag-and-drop --and-exit "$selection"
|
||||
7
.config/scripts/util/virtualdisplays.sh
Executable file
7
.config/scripts/util/virtualdisplays.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
sudo modprobe evdi initial_device_count=2
|
||||
xrandr --setprovideroutputsource 1 0 --setprovideroutputsurce 2 0
|
||||
echo "EXAMPLE"
|
||||
echo "xrandr --addmode DVI-I-1-1 1920x1080"
|
||||
echo "xrandr --output DVI-I-1-1 --mode 1920x1080 --right-of HDMI-0"
|
||||
echo "x11vnc -clip 1920x1080+2560+0 -usepw -rfbport 5901 -display :0"
|
||||
Reference in New Issue
Block a user