summaryrefslogtreecommitdiffstats
path: root/.scripts
diff options
context:
space:
mode:
Diffstat (limited to '.scripts')
-rw-r--r--.scripts/remaps11
-rwxr-xr-x.scripts/webview2
2 files changed, 11 insertions, 2 deletions
diff --git a/.scripts/remaps b/.scripts/remaps
index aa5a5f2..1bfc86a 100644
--- a/.scripts/remaps
+++ b/.scripts/remaps
@@ -1 +1,10 @@
-keycode 135 = Super_R NoSymbol Super_R
+#!/bin/bash
+
+# Map the caps lock key to super...
+setxkbmap -layout us -variant altgr-intl -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/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