diff options
Diffstat (limited to '.scripts')
| -rw-r--r-- | .scripts/remaps | 18 | ||||
| -rwxr-xr-x | .scripts/screencast_pulse.sh | 1 | ||||
| -rwxr-xr-x | .scripts/webview | 2 |
3 files changed, 19 insertions, 2 deletions
diff --git a/.scripts/remaps b/.scripts/remaps index aa5a5f2..755ff5b 100644 --- a/.scripts/remaps +++ b/.scripts/remaps @@ -1 +1,17 @@ -keycode 135 = Super_R NoSymbol Super_R +#!/bin/bash + +# This script is called by i3 on startup. + +# Map the caps lock key to super... +setxkbmap -layout us -variant altgr-intl -option caps:super +# If you don't want a us international keyboard, rather whatever keyboard +# you set in your installation, comment out the above line and uncomment +# the one below. +#setxkbmap -option caps:super + +# But when it is pressed only once, treat it as escape. +xcape -e 'Super_L=Escape' + +# Map the menu button to right super as well. +xmodmap -e 'keycode 135 = Super_R' +#keycode 135 = Super_R NoSymbol Super_R diff --git a/.scripts/screencast_pulse.sh b/.scripts/screencast_pulse.sh index 8491606..871a5b9 100755 --- a/.scripts/screencast_pulse.sh +++ b/.scripts/screencast_pulse.sh @@ -17,6 +17,7 @@ ffmpeg -y \ -framerate 60 \ -s $(xdpyinfo | grep dimensions | awk '{print $2;}') \ -i :0.0 \ +-thread_queue_size 2048 \ -f alsa -i default \ -r 30 \ -c:v libx264 -r 30 -c:a flac $filename diff --git a/.scripts/webview b/.scripts/webview index d34be80..691e545 100755 --- a/.scripts/webview +++ b/.scripts/webview @@ -22,7 +22,7 @@ elif echo $mpvFiles | grep -w $ext > /dev/null; then mpv --loop --quiet "$1" > /dev/null & elif echo $wgetFiles | grep -w $ext > /dev/null; then wget "$1" >/dev/null & -elif echo "$1" | grep "$vidsites">/dev/null; then +elif echo "$@" | grep "$vidsites">/dev/null; then mpv -quiet "$1" > /dev/null & else $BROWSER "$1" 2>/dev/null & disown |
