summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/gtk-3.0/settings.ini3
-rw-r--r--.config/shell/profile2
-rwxr-xr-x.local/bin/prompt-git1
-rwxr-xr-x.local/bin/remaps2
4 files changed, 6 insertions, 2 deletions
diff --git a/.config/gtk-3.0/settings.ini b/.config/gtk-3.0/settings.ini
new file mode 100644
index 0000000..2891d01
--- /dev/null
+++ b/.config/gtk-3.0/settings.ini
@@ -0,0 +1,3 @@
+[Settings]
+gtk-application-prefer-dark-theme = true
+gtk-key-theme-name = Emacs
diff --git a/.config/shell/profile b/.config/shell/profile
index ad21f71..ee2e117 100644
--- a/.config/shell/profile
+++ b/.config/shell/profile
@@ -5,5 +5,5 @@ export HISTCONTROL="ignorespace"
export PS1="$(hostname):/\$(
pwd | cut -d'/' -f2- --output-delimiter '
' | cut -c1-3 | paste -sd '/'
-)\n# "
+) \$(prompt-git)\n# "
bind -m ^L=" clear^J"
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.