Add gotty, add keyboard-layout, update .Xmodmap

This commit is contained in:
arnaucube
2020-11-22 17:34:03 +01:00
parent 50133535a7
commit 18191e0e38
6 changed files with 43 additions and 10 deletions

View File

@@ -12,13 +12,19 @@ add Lock = Caps_Lock
add Control = Control_L add Control = Control_L
! map numbers to more ergonomic position ! map numbers to more ergonomic position
keycode 29 = y Y 1 ! keycode 25 = w W 1
keycode 30 = u U 2 ! keycode 26 = e E 2
keycode 31 = i I 3 ! keycode 27 = r R 3
keycode 43 = h H 4 ! keycode 39 = s S 4
keycode 44 = j J 5 ! keycode 40 = d D 5
keycode 45 = k K 6 ! keycode 41 = f F 6
keycode 57 = n N 7 ! keycode 53 = x X 7
keycode 58 = m M 8 ! keycode 54 = c C 8
keycode 59 = comma semicolon 9 ! keycode 55 = v V 9
keycode 60 = period colon 0 ! keycode 65 = space space 0
! map arrows to more ergonomic position
keycode 43 = h H Left
keycode 44 = j J Down
keycode 45 = k K Up
keycode 46 = l L Right

View File

@@ -6,3 +6,6 @@ set -g status-fg white
# maximize current pane # maximize current pane
bind + run 'cut -c3- ~/.tmux.conf | sh -s _maximize_pane "#{session_name}" #D' bind + run 'cut -c3- ~/.tmux.conf | sh -s _maximize_pane "#{session_name}" #D'
# on bind + Ctrl+t open a new window and launch there gotty with a 'random' url
bind-key C-t new-window "gotty -r tmux attach -t `tmux display -p '#S'`"

2
.xinitrc Normal file
View File

@@ -0,0 +1,2 @@
xmodmap .Xmodmap
setxkbmap -layout us -option

View File

@@ -185,3 +185,6 @@ bindsym $mod+Control+k move workspace to output HDMI-2
bindsym $mod+Control+j move workspace to output eDP-1 bindsym $mod+Control+j move workspace to output eDP-1
bindsym $mod+Control+1 exec xrandr && xrandr --auto bindsym $mod+Control+1 exec xrandr && xrandr --auto
bindsym $mod+Control+2 exec xrandr --auto && xrandr --output HDMI-2 --above eDP-1 bindsym $mod+Control+2 exec xrandr --auto && xrandr --output HDMI-2 --above eDP-1
# keyboard language layout
bindsym $mod+Control+0 exec sh ~/bin/keyboard-layout.sh

View File

@@ -74,6 +74,11 @@ cargo install git-delta
echo "append .gitconfig of this repo lines to the .gitconfig system file to use delta gitdiff tool" echo "append .gitconfig of this repo lines to the .gitconfig system file to use delta gitdiff tool"
cat .gitconfig >> ~/.gitconfig cat .gitconfig >> ~/.gitconfig
# install gotty (for terminal visualization sharing)
wget https://github.com/yudai/gotty/releases/download/v1.0.1/gotty_linux_amd64.tar.gz
tar -zxvf gotty_linux_amd64.tar.gz
mv gotty /usr/gotty /usr/local/bin/
# nginx # nginx
apt install nginx -y apt install nginx -y

View File

@@ -0,0 +1,14 @@
#!/bin/sh
curr=$(setxkbmap -print | awk -F"+" '/xkb_symbols/ {print $2}')
if [[ $curr = "us" ]];
then
setxkbmap -layout es -variant ',cat' -option
echo "keyboard layout set to Catalan"
else
setxkbmap -layout us -option
echo "keyboard layout set to English (US)"
fi
xmodmap ~/.Xmodmap