diff --git a/.config/i3/config b/.config/i3/config index 82620e2..df06bc9 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -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 diff --git a/.config/i3/scripts/decop.sh b/.config/i3/scripts/decop.sh new file mode 100755 index 0000000..240f80c --- /dev/null +++ b/.config/i3/scripts/decop.sh @@ -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 diff --git a/.config/i3/scripts/emulator.sh b/.config/i3/scripts/emulator.sh new file mode 100755 index 0000000..70b52ad --- /dev/null +++ b/.config/i3/scripts/emulator.sh @@ -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 diff --git a/.config/i3/scripts/incop.sh b/.config/i3/scripts/incop.sh new file mode 100755 index 0000000..42ac343 --- /dev/null +++ b/.config/i3/scripts/incop.sh @@ -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 diff --git a/.config/i3/scripts/screencut.sh b/.config/i3/scripts/screencut.sh new file mode 100755 index 0000000..f49c9b8 --- /dev/null +++ b/.config/i3/scripts/screencut.sh @@ -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/ diff --git a/.config/i3/scripts/screenshot.sh b/.config/i3/scripts/screenshot.sh new file mode 100755 index 0000000..7981afc --- /dev/null +++ b/.config/i3/scripts/screenshot.sh @@ -0,0 +1 @@ +maim -u -m 10 -f png ~/PNG/`date +%s`.png