From 92347f518ddffb5ed978b710c1b3220ffd9e0e27 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Sun, 15 Dec 2019 10:52:36 +0100 Subject: [PATCH] Use Termite as default terminal and ranger for file browser --- dotfiles/bash.org | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/dotfiles/bash.org b/dotfiles/bash.org index 39793ca..b5ad2de 100644 --- a/dotfiles/bash.org +++ b/dotfiles/bash.org @@ -310,6 +310,26 @@ function mkd() { } #+END_SRC +*** Send SMS +https://doronbehar.com/articles/using-kdeconnect-to-comfortably-send-sms-messages-from-the-shell/#kdeconnects-builtin-sms-interface +#+begin_src bash + sms(){ + local args="$@" + # local phone_number name phone_type + # khard phone --parsable | sort -u | fzf | IFS=$'\t' read -r phone_number name phone_type + local phone_number=$(khard phone --parsable | sort -u | fzf | cut -f1 -d$'\t') + if [[ -z "${phone_number}" ]]; then + echo No recipient was chosen >&2 + return + else + # echo "${name}"$'\t'"${phone_number}"$'\t'"${phone_type}" > ${_KDECONNECT_SMS_LAST_RECIPIENT} + kdeconnect-cli --send-sms "${args}" --destination "${phone_number}" --device 4de3b5de2264a17c + # kdeconnect-cli --device ${_KDECONNECT_DEFAULT_DEVICE} --send-sms "${args}" --destination "${phone_number}" && \ + # echo sent sms message to ${name} | fribidi + fi + } + +#+end_src ** Bash History Undocumented feature which sets the size to "unlimited". http://stackoverflow.com/questions/9457233/unlimited-bash-history @@ -362,10 +382,10 @@ Force prompt to write history after every command. http://superuser.com/question ** Default #+BEGIN_SRC conf export EDITOR="nvim" - export TERMINAL="st" + export TERMINAL="termite" export BROWSER="qutebrowser" export READER="zathura" - export FILE="vifm" + export FILE="ranger" #+END_SRC ** Exports