update
This commit is contained in:
parent
a21c23ab41
commit
a3dd587df1
12 changed files with 67 additions and 0 deletions
10
.scripts/awesome_startup.sh
Executable file
10
.scripts/awesome_startup.sh
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
killall wbar
|
||||||
|
killall xbattbar
|
||||||
|
killall pasystray
|
||||||
|
killall compton
|
||||||
|
|
||||||
|
wbar &
|
||||||
|
pasystray &
|
||||||
|
compton &
|
11
.scripts/decop.sh
Executable file
11
.scripts/decop.sh
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/zsh
|
||||||
|
if [ -e /tmp/compton.lock ]
|
||||||
|
then
|
||||||
|
echo locked
|
||||||
|
else
|
||||||
|
touch /tmp/compton.lock
|
||||||
|
awk -F= '{if($1 == "shadow-opacity " && $2+0.0 < 1) {$2=$2+0.1;$2 = $2 ";";}}1' OFS="= " ~/.compton.conf > /tmp/compton.conf
|
||||||
|
cat /tmp/compton.conf > ~/.compton.conf
|
||||||
|
kill -SIGUSR1 `pidof compton`
|
||||||
|
rm /tmp/compton.lock
|
||||||
|
fi
|
4
.scripts/emulator_dev.sh
Executable file
4
.scripts/emulator_dev.sh
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
export ANDROID_SDK=/opt/android-sdk-update-manager
|
||||||
|
export PATH=$ANDROID_SDK/emulator:$ANDROID_SDK/tools:$PATH
|
||||||
|
emulator -accel on -avd Pixel_4_XL_API_28 -no-snapshot-load
|
5
.scripts/grabscreen.sh
Executable file
5
.scripts/grabscreen.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/zsh
|
||||||
|
#sudo rmmod v4l2loopback
|
||||||
|
#sudo modprobe v4l2loopback video_nr=1,2
|
||||||
|
|
||||||
|
ffmpeg -f x11grab -show_region 1 -framerate 25 $(slop -f '-video_size %wx%h -i +%x,%y') -draw_mouse 1 -f v4l2 /dev/video2
|
11
.scripts/incop.sh
Executable file
11
.scripts/incop.sh
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/zsh
|
||||||
|
if [ -e /tmp/compton.lock ]
|
||||||
|
then
|
||||||
|
echo locked
|
||||||
|
else
|
||||||
|
touch /tmp/compton.lock
|
||||||
|
awk -F= '{if($1 == "shadow-opacity " && $2+0.0 > 0) {$2=$2-0.1;$2 = $2 ";";}}1' OFS="= " ~/.compton.conf > /tmp/compton.conf
|
||||||
|
cat /tmp/compton.conf > ~/.compton.conf
|
||||||
|
kill -SIGUSR1 `pidof compton`
|
||||||
|
rm /tmp/compton.lock
|
||||||
|
fi
|
4
.scripts/loadv42l.sh
Executable file
4
.scripts/loadv42l.sh
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
rmmod v4l2loopback
|
||||||
|
modprobe v4l2loopback video_nr=1,2
|
||||||
|
|
9
.scripts/lock.sh
Executable file
9
.scripts/lock.sh
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
if `dunstctl is-paused`; then
|
||||||
|
#i3lock -n -c 222222
|
||||||
|
i3lock -n -i ~/.config/i3/locked.png
|
||||||
|
else
|
||||||
|
dunstctl set-paused true
|
||||||
|
i3lock -n -i ~/.config/i3/locked.png
|
||||||
|
dunstctl set-paused false
|
||||||
|
fi
|
||||||
|
|
3
.scripts/ocrcp.sh
Executable file
3
.scripts/ocrcp.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#maim -g `xrectsel` | png22pnm | ocrad | xsel -bi
|
||||||
|
maim -g `xrectsel` | png22pnm | tesseract - - | xsel -bi
|
4
.scripts/screencut.sh
Executable file
4
.scripts/screencut.sh
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
maim -u -g `slop -b 3 -c 1,0,0` | convert - -alpha off ~/CUTS/`date +%s`.jpg
|
||||||
|
#adb root
|
||||||
|
#adb push ~/CUTS /storage/emulated/0/Download/
|
2
.scripts/screenrec.sh
Executable file
2
.scripts/screenrec.sh
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
ffmpeg -y -threads 4 -i /dev/video2 -vcodec mpeg4 -b:v 800k MP4/`date +%s`.mp4
|
1
.scripts/screenshot.sh
Executable file
1
.scripts/screenshot.sh
Executable file
|
@ -0,0 +1 @@
|
||||||
|
maim -u -m 10 -f png ~/PNG/`date +%s`.png
|
3
.scripts/spawn_urxvt_tmux.sh
Executable file
3
.scripts/spawn_urxvt_tmux.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#TODO: add support for more parameters :D
|
||||||
|
urxvt -e tmux new $1' '$2' '$3'; $SHELL'
|
Loading…
Reference in a new issue