updated i3 config

This commit is contained in:
Gregor Feierabend 2021-03-06 19:35:51 +02:00
parent dd9048593b
commit 52932f4d4b
6 changed files with 36 additions and 9 deletions

View file

@ -209,22 +209,18 @@ bindsym $mod+Shift+x exec i3lock -c 222222
bindsym $mod+z [class="Zathura"] scratchpad show
bindsym $mod+u [class="URxvt"] scratchpad show
bindsym $mod+c [title="Android Emulator*"] scratchpad show
bindsym $mod+Shift+w exec /scripts/simplephone.sh
bindsym $mod+Shift+f exec /scripts/devphone.sh
bindsym $mod+Shift+w exec zsh ~/.config/i3/scripts/emulator.sh
#bindsym $mod+t exec transset -n `xdotool getwindowfocus getwindowname` --dec 0.2
#bindsym $mod+Shift+t exec transset -n `xdotool getwindowfocus getwindowname` --inc 0.2
bindsym $mod+t exec /scripts/incop.sh
bindsym $mod+Shift+t exec /scripts/decop.sh
bindsym $mod+t exec zsh ~/.config/i3/scripts/incop.sh
bindsym $mod+Shift+t exec zsh ~/.config/i3/scripts/decop.sh
bindsym $mod+y exec sleep 1 && transset 0.6
bindsym $mod+Shift+y exec sleep 1 && transset 1
bindsym $mod+o exec /scripts/screenshot.sh
bindsym $mod+o exec zsh ~/.config/i3/scripts/screenshot.sh
bindsym $mod+x move absolute position center
bindsym $mod+i exec xrandr-invert-colors
#bindsym $mod+Shift+f exec firefox
#bindsym $mod+Shift+g exec typora
bindsym $mod+p exec pqiv -c -c -i ~/ANNOTATIONS
#bindsym $mod+b exec sleep 1 && /scripts/plotsel.sh
bindsym $mod+b exec /scripts/plotsel.sh
bindsym $mod+b exec zsh ~/.config/i3/scripts/screencut.sh
for_window [class="URxvt" floating] resize set 1400 850
for_window [class="URxvt"] move absolute position center

11
.config/i3/scripts/decop.sh Executable file
View 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
.config/i3/scripts/emulator.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/zsh
#emulator -accel on -avd thePhone -gpu host -camera-front webcam1 -delay-adb -no-boot-anim
emulator -accel on -avd thePhone -gpu host -delay-adb
adb kill-server

11
.config/i3/scripts/incop.sh Executable file
View 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

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

View file

@ -0,0 +1 @@
maim -u -m 10 -f png ~/PNG/`date +%s`.png