Misc updates

This commit is contained in:
2022-12-12 18:16:54 +05:30
parent d2f4c2dc04
commit ce964b3b58
4 changed files with 95 additions and 16322 deletions
@@ -12,6 +12,11 @@ list-commands(){
typeset -F | cut -d ' ' -f 3 | grep -v '^_' | sort
}
# cmd <inputfile> .csv to json using miller cli
csvToJson(){
mlr --c2j --jlistwrap cat "$1"
}
# list available fonts for a language.
# Usage: THIS_FN <lang_code>
fonts_for_lang(){
@@ -286,6 +291,13 @@ echo "scsi remove-single-device 7 0 0 0" > /proc/scsi/scsi
EOF
}
# Put system into sleep in sway
swaysleep(){
swaylock & systemctl suspend
}
# Setup autocomplete. run eval "$(THIS_FILE setup-autocomplete)"
setup-autocomplete(){
cat<<EOF