shell: add ~/.Xmodmap file
authorAmin Bandali <bandali@gnu.org>
Fri, 6 Sep 2019 17:52:04 +0000 (13:52 -0400)
committerAmin Bandali <bandali@gnu.org>
Fri, 6 Sep 2019 17:52:04 +0000 (13:52 -0400)
.Xmodmap [new file with mode: 0644]
.profile

diff --git a/.Xmodmap b/.Xmodmap
new file mode 100644 (file)
index 0000000..1fd986a
--- /dev/null
+++ b/.Xmodmap
@@ -0,0 +1,5 @@
+clear lock
+clear control
+keycode 66 = Control_L
+add control = Control_L Control_R
+keysym Menu = Super_R
index 0f17b9b..c0c1e45 100644 (file)
--- a/.profile
+++ b/.profile
@@ -66,10 +66,9 @@ fi
 
 setxkbmap \
     -layout us,ir \
 
 setxkbmap \
     -layout us,ir \
-    -option ctrl:nocaps \
     -option grp:shifts_toggle
 
     -option grp:shifts_toggle
 
-xmodmap -e "keysym Menu = Super_R"
+xmodmap ~/.Xmodmap
 
 xsetroot -cursor_name left_ptr
 xset r rate 200 45
 
 xsetroot -cursor_name left_ptr
 xset r rate 200 45