Initial commit for public dots

This commit is contained in:
2023-07-08 15:20:41 +03:00
commit 2c53e85568
74 changed files with 5096 additions and 0 deletions

View File

@ -0,0 +1 @@
maim -s | xclip -selection clipboard -t image/png

View File

@ -0,0 +1,2 @@
#!/bin/bash
streamlink https://www.twitch.tv/$1 best --player mpv

View File

@ -0,0 +1,6 @@
#!/bin/zsh
selection=$(fzf)
selection=$(echo $selection | sed 's,/[^/]*$,,')
cd $selection

15
.config/scripts/util/cdto Normal file
View 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
View 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
View File

@ -0,0 +1,4 @@
#!/bin/bash
selection=$(fzf --preview 'mpv --no-video {}' --preview-window=up:20%)
dragon-drag-and-drop --and-exit "$selection"

View 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"