diff options
| author | Mike Vink <ivi@vinkies.net> | 2025-02-09 16:32:56 +0100 |
|---|---|---|
| committer | Mike Vink <ivi@vinkies.net> | 2025-02-09 16:32:56 +0100 |
| commit | 8fdb45927ee1dec908b455b517f9c0dd893df2b4 (patch) | |
| tree | 7e9a93274020bb7d9c591062d02f5228a80d076d | |
| parent | e8dfd1cfb2981a3d0b4d120c0ca3043816ca7f6d (diff) | |
gtk theme and prompt
| -rw-r--r-- | .config/gtk-3.0/settings.ini | 3 | ||||
| -rw-r--r-- | .config/shell/profile | 2 | ||||
| -rwxr-xr-x | .local/bin/prompt-git | 1 | ||||
| -rwxr-xr-x | .local/bin/remaps | 2 |
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. |
