From 8fdb45927ee1dec908b455b517f9c0dd893df2b4 Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Sun, 9 Feb 2025 16:32:56 +0100 Subject: gtk theme and prompt --- .config/gtk-3.0/settings.ini | 3 +++ .config/shell/profile | 2 +- .local/bin/prompt-git | 1 + .local/bin/remaps | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .config/gtk-3.0/settings.ini create mode 100755 .local/bin/prompt-git 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. -- cgit v1.2.3