summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorMike Vink <ivi@vinkies.net>2025-02-09 16:32:56 +0100
committerMike Vink <ivi@vinkies.net>2025-02-09 16:32:56 +0100
commit8fdb45927ee1dec908b455b517f9c0dd893df2b4 (patch)
tree7e9a93274020bb7d9c591062d02f5228a80d076d /.local
parente8dfd1cfb2981a3d0b4d120c0ca3043816ca7f6d (diff)
gtk theme and prompt
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/prompt-git1
-rwxr-xr-x.local/bin/remaps2
2 files changed, 2 insertions, 1 deletions
diff --git a/.local/bin/prompt-git b/.local/bin/prompt-git
new file mode 100755
index 0000000..3d9b928
--- /dev/null
+++ b/.local/bin/prompt-git
@@ -0,0 +1 @@
+[ -d .git ] && git status --porcelain=v1 | { while read tag file; do case $tag in M) modified=$(( modified + 1));; ?*) untracked=$(( untracked + 1));; esac ; done; echo "git(M$modified|?$untracked)"; }
diff --git a/.local/bin/remaps b/.local/bin/remaps
index 6d7d54e..12f34d0 100755
--- a/.local/bin/remaps
+++ b/.local/bin/remaps
@@ -4,7 +4,7 @@
# Decrease key repeat delay to 300ms and increase key repeat rate to 50 per second.
xset r rate 300 50
# Map the caps lock key to super, and map the menu key to right super.
-setxkbmap -option caps:super,altwin:menu_win
+setxkbmap -option ctrl:swapcaps,altwin:menu_win
# When caps lock is pressed only once, treat it as escape.
killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape'
# Turn off caps lock if on since there is no longer a key for it.