shit
This commit is contained in:
commit
01a9e86575
64 changed files with 2284 additions and 0 deletions
8
scripts/MacOSScript.sh
Normal file
8
scripts/MacOSScript.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
defaults write com.apple.finder CreateDesktop false
|
||||
killall Finder
|
||||
|
||||
sudo spctl --master-disable
|
||||
|
||||
sudo scutil --set ComputerName $1
|
||||
sudo scutil --set LocalHostName $1
|
||||
sudo scutil --set HostName $1
|
12
scripts/aur
Normal file
12
scripts/aur
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
case $1 in
|
||||
install|in|i)
|
||||
cd ~/.aur
|
||||
[[ ! -d ~/.aur/$2 ]] && git clone https://aur.archlinux.org/$2.git
|
||||
cd ~/.aur/$2
|
||||
makepkg -si ;;
|
||||
|
||||
*) curl https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=$1 ;;
|
||||
|
||||
esac
|
8
scripts/bookmarks
Normal file
8
scripts/bookmarks
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
[[ ! -f ~/.bookmarks ]] && touch ~/.bookmarks/bookmarks
|
||||
|
||||
dupa=$(awk '{print $1}' ~/.bookmarks/bookmarks | dmenu -l 15 -p "Bookmarks")
|
||||
|
||||
while read p; do
|
||||
[[ $(echo $p | awk '{print $1}') == $dupa ]] && xdotool type $(echo $p | awk '{print $2}')
|
||||
done < ~/.bookmarks/bookmarks
|
5
scripts/bookmarksMacOS.sh
Normal file
5
scripts/bookmarksMacOS.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
[[ ! -f ~/.bookmarks ]] && touch ~/.bookmarks
|
||||
|
||||
dupa=$(awk '{print $1}' ~/.bookmarks | dmenu-mac)
|
||||
cliclick t:$(cat ~/.bookmarks | grep $dupa | awk '{print $2}')
|
7
scripts/bookmarksWaylandWofi.sh
Normal file
7
scripts/bookmarksWaylandWofi.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
[[ ! -f ~/.bookmarks ]] && touch ~/.bookmarks
|
||||
|
||||
dupa=$(awk '{print $1}' ~/.bookmarks | wofi --lines 15 --show dmenu)
|
||||
x=$(cat ~/.bookmarks | grep $dupa | awk '{print $2}')
|
||||
echo "type $x" | dotool
|
2
scripts/dupa
Normal file
2
scripts/dupa
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
for i in *.$1; do ffmpeg -i "$i" "$3/${i%.*}.$2"; done
|
1
scripts/irc
Normal file
1
scripts/irc
Normal file
|
@ -0,0 +1 @@
|
|||
st -c "weechat" -e "weechat"
|
29
scripts/lfimg
Normal file
29
scripts/lfimg
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
set -euf
|
||||
|
||||
if [ -n "${DISPLAY-}" ] && [ -z "${FIFO_UEBERZUG-}" ]; then
|
||||
export FIFO_UEBERZUG="${TMPDIR:-/tmp}/lf-ueberzug-$$"
|
||||
|
||||
cleanup() {
|
||||
exec 3>&-
|
||||
rm -- "$FIFO_UEBERZUG"
|
||||
}
|
||||
|
||||
mkfifo -- "$FIFO_UEBERZUG"
|
||||
# Execute ueberzug in a loop in case it crashes. Ueberzug dies if its
|
||||
# associated window is closed. This breaks image previews when using tmux and
|
||||
# reattaching to an existing session.
|
||||
while ! ueberzug layer -s <"$FIFO_UEBERZUG"; do :; done &
|
||||
# Open the FIFO for writing. FIFO readers receive an EOF once all writers
|
||||
# have closed their respective file descriptors. Holding a file descriptor
|
||||
# will effectively keep ueberzug alive as long as lf lives.
|
||||
exec 3>"$FIFO_UEBERZUG"
|
||||
trap cleanup EXIT
|
||||
|
||||
# Start lf without passing in the file descriptor. This is done to avoid the
|
||||
# lf server being passed the file descriptor, which would cause ueberzug to
|
||||
# live longer than is strictly necessary.
|
||||
lf "$@" 3>&-
|
||||
else
|
||||
exec lf "$@"
|
||||
fi
|
17
scripts/mouseControll.sh
Normal file
17
scripts/mouseControll.sh
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
eval $(xdotool getmouselocation --shell)
|
||||
|
||||
|
||||
case $1 in
|
||||
# mouse moving
|
||||
"left" | "l") xdotool mousemove $(($X-25)) $Y ;;
|
||||
"right" | "r") xdotool mousemove $(($X+25)) $Y ;;
|
||||
"up" | "u") xdotool mousemove $X $(($Y-25)) ;;
|
||||
"down" | "d") xdotool mousemove $X $(($Y+25)) ;;
|
||||
|
||||
|
||||
# mouse buttons pressing
|
||||
1) xdotool click 1 ;;
|
||||
2) xdotool click 3 ;;
|
||||
esac
|
10
scripts/nvimPluginsManagerInstaller.sh
Normal file
10
scripts/nvimPluginsManagerInstaller.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
echo "installing vim plug..."
|
||||
sleep 1
|
||||
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
|
||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||
echo "----------------------"
|
||||
echo "installing packer..."
|
||||
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
|
||||
~/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||||
|
||||
echo "all done!"
|
3
scripts/record
Normal file
3
scripts/record
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
[[ ! -d ~/videos/records ]] && mkdir ~/videos/records
|
||||
ffmpeg -f x11grab -s 1920x1080 -i :0.0 -f pulse -i 2 ~/videos/records/$(date +"%H-%M-%S__%d-%m-%y").mp4
|
8
scripts/screenshoot.sh
Normal file
8
scripts/screenshoot.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
[[ ! -d ~/images/screenshots ]] && mkdir ~/images/screenshots
|
||||
echo "you want to take screenshot of?"
|
||||
c=$(printf "screen\nselected area" | dmenu)
|
||||
dir="/home/$USER/images/screenshots"
|
||||
id=$(openssl rand -hex 7)
|
||||
|
||||
[[ $c == "screen" ]] && shotgun -s $dir/$id.png || shotgun -g $(hacksaw) $dir/$id.png
|
||||
xclip -selection clipboard -t image/png -i $dir/$id.png
|
1
scripts/sxkhdReloading
Normal file
1
scripts/sxkhdReloading
Normal file
|
@ -0,0 +1 @@
|
|||
pkill sxhkd; sxhkd &
|
18
scripts/timer
Normal file
18
scripts/timer
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
s=0
|
||||
m=0
|
||||
h=0
|
||||
|
||||
while : ; do
|
||||
sleep 1s
|
||||
if [[ $s == 60 ]]; then
|
||||
m=$((m+1)); s=0
|
||||
elif [[ $m == 60 ]]; then
|
||||
h=$((h+1)); m=0
|
||||
fi
|
||||
|
||||
s=$((s+1))
|
||||
clear
|
||||
echo "$h:$m:$s"
|
||||
done
|
6
scripts/user.sh
Normal file
6
scripts/user.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
echo "profile pic:"
|
||||
tiv -w 64 -h 64 ~/.avatar.jpg
|
||||
echo "----------------------------------------------------------------"
|
||||
echo "username: $USER"
|
||||
|
||||
[[ $1 = "r" ]] && read -p ""
|
17
scripts/uwufetch
Normal file
17
scripts/uwufetch
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
distro=$(. /etc/os-release; echo $NAME)
|
||||
kernel=$(uname -r)
|
||||
uptime=$(uptime -p | sed 's/up//')
|
||||
pkgsPacman=$(pacman -Qs | wc -l)
|
||||
pkgsAur=$(yay -Qm | wc -l)
|
||||
|
||||
cat <<END
|
||||
---
|
||||
__/ \___ os: $distro
|
||||
( > __ < ) kernel: $kernel
|
||||
( ) uptime: $uptime
|
||||
( ) pkgs: Pacman $pkgsPacman | Aur $pkgsAur
|
||||
(__________)
|
||||
|
||||
END
|
Loading…
Add table
Add a link
Reference in a new issue