-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.xprofile
35 lines (29 loc) · 927 Bytes
/
.xprofile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
# List of mapping options
# `/usr/share/X11/xkb/rules/xorg.lst`
#!
#! caps as escape on release and ctrl while held down
#!
#! make CapsLock behave like Ctrl:
# setxkbmap -option ctrl:nocaps
#! make short-pressed Ctrl behave like Escape:
# xcape -e 'Control_L=Escape'
# if [$VISUAL = "nvim" ]; then
setxkbmap -option caps:escape_shifted_capslock
# else if [ $VISUAL = "emacs" ]; then
# setxkbmap -option caps:ctrl_modifier
# fi
xset r rate 170 70
if [ "$HOSTNAME" = "naad" ]; then
setxkbmap -option ctrl:swap_lwin_lctl
setxkbmap -option ctrl:swap_rwin_rctl
setxkbmap -option altwin:menu_win
setxkbmap -option grp:win_space_toggle
xrandr --output HDMI-2 --primary --mode 1920x1080 --rate 75
else
# default home computer
xrandr --output eDP-1 --off
xrandr --output HDMI-2 --primary --mode 1920x1080 --rate 75
# xrandr --output eDP-1 --mode 1920x1080
fi
setxkbmap -layout us,ir