Browse Source

Add gotty, add keyboard-layout, update .Xmodmap

master
arnaucube 3 years ago
parent
commit
18191e0e38
6 changed files with 43 additions and 10 deletions
  1. +16
    -10
      .Xmodmap
  2. +3
    -0
      .tmux.conf
  3. +2
    -0
      .xinitrc
  4. +3
    -0
      i3/config
  5. +5
    -0
      install-new-server.sh
  6. +14
    -0
      launch-scripts/keyboard-layout.sh

+ 16
- 10
.Xmodmap

@ -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 30 = u U 2
keycode 31 = i I 3
keycode 43 = h H 4
keycode 44 = j J 5
keycode 45 = k K 6
keycode 57 = n N 7
keycode 58 = m M 8
keycode 59 = comma semicolon 9
keycode 60 = period colon 0
! keycode 25 = w W 1
! keycode 26 = e E 2
! keycode 27 = r R 3
! keycode 39 = s S 4
! keycode 40 = d D 5
! keycode 41 = f F 6
! keycode 53 = x X 7
! keycode 54 = c C 8
! keycode 55 = v V 9
! 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

+ 3
- 0
.tmux.conf

@ -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
- 0
.xinitrc

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

+ 3
- 0
i3/config

@ -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

+ 5
- 0
install-new-server.sh

@ -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

+ 14
- 0
launch-scripts/keyboard-layout.sh

@ -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

Loading…
Cancel
Save