summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-12-17 07:34:40 +0000
committerUrbain Vaes <urbain@vaes.uk>2015-12-17 07:34:40 +0000
commit870cd04ecc93924fff2fc26150ace016ca571698 (patch)
tree002073ac368cd1c0163ddb84286012c6a379b55e
parentdbd02c933b541559a9513d8cae24ff6f3f40c398 (diff)
Swap alt and meta
-rw-r--r--.Xresources/base3
-rw-r--r--.i3/config2
-rwxr-xr-xbin/keyboard6
-rwxr-xr-xbin/workspace1
4 files changed, 7 insertions, 5 deletions
diff --git a/.Xresources/base b/.Xresources/base
index 89c1c65..4f08fb1 100644
--- a/.Xresources/base
+++ b/.Xresources/base
@@ -5,7 +5,8 @@ URxvt.loginShell : true
URxvt.termName : rxvt-256color
! Custom META key
-URxvt*modifier: super
+! URxvt*modifier: super
+URxvt*modifier: alt
! Copy-paste configuration
URxvt.clipboard.copycmd: xclip -i -selection clipboard
diff --git a/.i3/config b/.i3/config
index 91546de..d0606ed 100644
--- a/.i3/config
+++ b/.i3/config
@@ -9,7 +9,7 @@
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
-set $mod Mod1
+set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
diff --git a/bin/keyboard b/bin/keyboard
index 79d7598..3c57c73 100755
--- a/bin/keyboard
+++ b/bin/keyboard
@@ -8,10 +8,10 @@ xmodmap -e "add Control = Control_L"
# Remap modifiers (Keyboard dependent)
xmodmap -e "keycode 94 = Mode_switch"
-xmodmap -e 'keycode 108 = Alt_L'
+xmodmap -e 'keycode 108 = Super_L'
# Remap modifiers (Keyboard independent)
-xmodmap -e 'keysym space = Alt_L'
+xmodmap -e 'keysym space = Super_L'
xmodmap -e 'keycode any = space'
# Numbers
@@ -33,4 +33,4 @@ xmodmap -e "keysym r = r R 9"
killall -9 xcape
xcape -e 'Control_L=Escape'
-xcape -e 'Alt_L=space'
+xcape -e 'Super_L=space'
diff --git a/bin/workspace b/bin/workspace
index f735014..5a95fde 100755
--- a/bin/workspace
+++ b/bin/workspace
@@ -7,6 +7,7 @@ largest_gap=$(echo $used_numbers | awk '$1!=p+1{print p+1}{p=$1}')
[[ -z $largest_gap ]] && new_number=$(($max_number + 1)) || new_number=$largest_gap
target=$(echo $workspaces | dmenu -i -sf green -p "Go to workspace:")
+[[ -z $target ]] && exit
[[ ! $target = [0-9]:* ]] && target=$new_number:$target
exec i3-msg workspace $target