config: tweak scripts

This commit is contained in:
xeruf 2021-12-02 10:35:37 +01:00
parent f6b3ad300e
commit 36c7d5b791
3 changed files with 8 additions and 5 deletions

View File

@ -43,7 +43,7 @@
"fontsize": 10,
"rowsize": 43,
"sort_fields": [
"album"
"genre"
],
"sort_reverse": false
},
@ -134,4 +134,4 @@
"Artist splitting"
]
}
}
}

View File

@ -11,7 +11,7 @@ _clean_folders=(~/.ant ~/.autopsy ~/.bundle ~/.cache ~/.cargo ~/.cpanm ~/.docker
[[ $1 =~ "i" ]] && i=-i
dir="$("$local" 2>/dev/null || echo "$HOME")"
df --output="source,avail" -h "$dir"
df --output="source,avail" -h $(test -n "$local" && echo ".") "$dir"
highlight "home"
for f in ${_clean_folders[@]}
@ -71,4 +71,4 @@ if [[ $1 =~ "o" ]]; then
nix-store --optimize
fi
df --output="source,avail" -h .
df --output="source,avail" -h $(test -n "$local" && echo ".") "$dir"

View File

@ -13,5 +13,8 @@ xkbstate="$(dirname $(dirname $0))/xkblayout-state"
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" && setxkbmap eu && xmodmap -e 'keysym semicolon = colon semicolon colon semicolon' || setxkbmap de nodeadkeys
if test "$id" = "1"
then setxkbmap eu && xmodmap -e 'keysym semicolon = colon semicolon colon semicolon'
else setxkbmap de nodeadkeys caps:swapescape
fi
} 2>&1 | tee -a /tmp/scripts.log