diff --git a/.config/git/config b/.config/git/config index 93c3102..280d301 100644 --- a/.config/git/config +++ b/.config/git/config @@ -66,7 +66,6 @@ [alias] # GET INFO - st = !git stl && git stb stb = status --short --branch --show-stash stv = --paginate status -v stvv = --paginate status -vv @@ -124,7 +123,7 @@ rh = reset HEAD~ rs = reset --keep ru = reset --keep @{upstream} - unstage = reset HEAD -- + unstage = restore --staged -- format-head = !git stash && git-clang-format HEAD~ && git commit -a --amend --no-edit && git stash pop diff --git a/.local/bin/scripts/git-st b/.local/bin/scripts/git-st new file mode 100755 index 0000000..31792e9 --- /dev/null +++ b/.local/bin/scripts/git-st @@ -0,0 +1,2 @@ +#!/bin/sh +git stl && git stb "$@" diff --git a/.local/bin/scripts/update-keyboard-layout b/.local/bin/scripts/update-keyboard-layout index 0b04c97..7c93a9c 100755 --- a/.local/bin/scripts/update-keyboard-layout +++ b/.local/bin/scripts/update-keyboard-layout @@ -9,7 +9,7 @@ echo "Keyboard layout update to $id($ACTION) at $(date)" >>/tmp/scripts.log export XAUTHORITY="/run/user/1000/Xauthority" DISPLAY=:0 # setxkbmap "$id" #nodeadkeys xkbstate="$(dirname $(dirname $0))/xkblayout-state" -test "$(xkbstate print %C)" -gt 1 && xkbstate set $id +test "$($xkbstate print %C)" -gt 1 && $xkbstate set $id # Swap semicolon and colon - https://unix.stackexchange.com/questions/615799/swap-semicolon-colon-to-p-unexpected-cause-semicolon-colon-affected-by-cpas-lock # test "$id" = "eu" && xmodmap -e 'keysym semicolon = colon semicolon colon semicolon' test "$id" = "1" && xmodmap -e 'keysym semicolon = colon semicolon colon semicolon' || setxkbmap de nodeadkeys