mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 04:26:41 +01:00
Add gotty, add keyboard-layout, update .Xmodmap
This commit is contained in:
26
.Xmodmap
26
.Xmodmap
@@ -12,13 +12,19 @@ add Lock = Caps_Lock
|
||||
add Control = Control_L
|
||||
|
||||
! 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
|
||||
|
||||
@@ -6,3 +6,6 @@ set -g status-fg white
|
||||
|
||||
# maximize current pane
|
||||
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'`"
|
||||
|
||||
@@ -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+1 exec xrandr && xrandr --auto
|
||||
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
|
||||
|
||||
@@ -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"
|
||||
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
|
||||
apt install nginx -y
|
||||
|
||||
|
||||
14
launch-scripts/keyboard-layout.sh
Executable file
14
launch-scripts/keyboard-layout.sh
Executable 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
|
||||
Reference in New Issue
Block a user