|
|
|
|
@ -51,7 +51,7 @@ Each environment has slightly different setups, which will be tangled |
|
|
|
|
to different files according to the function `org-tags-to-filenames', |
|
|
|
|
defined in the previous section. |
|
|
|
|
|
|
|
|
|
*** Include :daily:android: |
|
|
|
|
*** Include :daily:android: |
|
|
|
|
First, include a script that sets a number of confidential data (e.g. API keys and such) |
|
|
|
|
#+begin_src sh |
|
|
|
|
source ~/.config/confidential.sh |
|
|
|
|
@ -64,7 +64,7 @@ Then, add helper directory to fpath |
|
|
|
|
#+begin_src sh |
|
|
|
|
fpath=(~/clones/zshrc/ $fpath) |
|
|
|
|
#+end_src |
|
|
|
|
*** KDE helpers :daily: |
|
|
|
|
*** KDE helpers :daily: |
|
|
|
|
Define a number of KDE helpers. |
|
|
|
|
- ~kde-current-activity~ returns the id of the current activity |
|
|
|
|
- ~kde-current-activity-name~ returns the name of the current activity |
|
|
|
|
@ -97,7 +97,7 @@ The other two swap between build and src dirs on my local git checkout |
|
|
|
|
source ~/scripts/kde-utils.sh |
|
|
|
|
#+end_src |
|
|
|
|
|
|
|
|
|
*** Android helpers :daily: |
|
|
|
|
*** Android helpers :daily: |
|
|
|
|
|
|
|
|
|
These are various helpers to drive my current Android phone when connected to the box. |
|
|
|
|
|
|
|
|
|
@ -148,7 +148,7 @@ These are various helpers to drive my current Android phone when connected to th |
|
|
|
|
|
|
|
|
|
**** TODO The last bit is really pi material |
|
|
|
|
|
|
|
|
|
*** Misc helpers :pi:daily:android: |
|
|
|
|
*** Misc helpers :pi:daily:android: |
|
|
|
|
- tmux guard |
|
|
|
|
This function checks if we are in a tmux session before |
|
|
|
|
executing the command; otherwise print an error and bail out |
|
|
|
|
@ -184,7 +184,7 @@ BIG FAT WARNING: this needs to specify an actual file as a destination |
|
|
|
|
ln $2 $1 |
|
|
|
|
} |
|
|
|
|
#+end_src |
|
|
|
|
*** konsole helpers :daily: |
|
|
|
|
*** konsole helpers :daily: |
|
|
|
|
#+begin_src sh |
|
|
|
|
function set-terminal-title() { |
|
|
|
|
echo -en "\e]2;$@\a" |
|
|
|
|
@ -207,7 +207,7 @@ BIG FAT WARNING: this needs to specify an actual file as a destination |
|
|
|
|
set-konsole-title ${previous_title} |
|
|
|
|
} |
|
|
|
|
#+end_src |
|
|
|
|
*** shell helpers :daily:pi:android: |
|
|
|
|
*** shell helpers :daily:pi:android: |
|
|
|
|
Underscore filename |
|
|
|
|
#+begin_src sh |
|
|
|
|
# this function is a poor-man eselect for configuration files |
|
|
|
|
@ -225,7 +225,7 @@ Underscore filename |
|
|
|
|
fi |
|
|
|
|
} |
|
|
|
|
#+end_src |
|
|
|
|
*** emacs helpers :daily:pi: |
|
|
|
|
*** emacs helpers :daily:pi: |
|
|
|
|
#+begin_src sh |
|
|
|
|
SOLARIZED="true" |
|
|
|
|
export EMACS="emacsclient" |
|
|
|
|
@ -270,7 +270,7 @@ Underscore filename |
|
|
|
|
export EMACS="/home/jacopods/.emacs.d/emacsclient-activities" |
|
|
|
|
export EMACS_DEF_ARGUMENTS="" |
|
|
|
|
#+end_src |
|
|
|
|
*** oh-my-zsh setup :daily:pi:android: |
|
|
|
|
*** oh-my-zsh setup :daily:pi:android: |
|
|
|
|
#+begin_src sh |
|
|
|
|
# Path to your oh-my-zsh configuration. |
|
|
|
|
ZSH=$HOME/.oh-my-zsh |
|
|
|
|
@ -383,7 +383,7 @@ further reference |
|
|
|
|
bindkey -M isearch . self-insert |
|
|
|
|
fi |
|
|
|
|
#+end_src |
|
|
|
|
*** TODO editor env variables :daily: |
|
|
|
|
*** TODO editor env variables :daily: |
|
|
|
|
This needs to be diff'd among the versions |
|
|
|
|
#+begin_src sh |
|
|
|
|
# editor stuff |
|
|
|
|
@ -393,7 +393,7 @@ This needs to be diff'd among the versions |
|
|
|
|
export GIT_EDITOR=$EMACS |
|
|
|
|
export SUDO_EDITOR=$EMACS |
|
|
|
|
#+end_src |
|
|
|
|
*** git helpers :daily: |
|
|
|
|
*** git helpers :daily: |
|
|
|
|
#+begin_src sh |
|
|
|
|
git-create-pi-remote () { |
|
|
|
|
REPO_NAME=$(basename "`pwd`") |
|
|
|
|
@ -414,7 +414,7 @@ This needs to be diff'd among the versions |
|
|
|
|
|
|
|
|
|
**** TODO Create a script to add an arbitrary remote |
|
|
|
|
|
|
|
|
|
*** Aliases :pi:android:daily: |
|
|
|
|
*** Aliases :pi:android:daily: |
|
|
|
|
#+begin_src sh |
|
|
|
|
## Aliases |
|
|
|
|
alias e="eca" |
|
|
|
|
@ -433,7 +433,7 @@ This needs to be diff'd among the versions |
|
|
|
|
#+begin_src sh |
|
|
|
|
alias hugo="/snap/bin/hugo" |
|
|
|
|
#+end_src |
|
|
|
|
*** Pomodoro aliases :daily:pi:android: |
|
|
|
|
*** Pomodoro aliases :daily:pi:android: |
|
|
|
|
These aliases help setting up termdown to countdown for the pomodoro |
|
|
|
|
technique |
|
|
|
|
#+begin_src sh |
|
|
|
|
@ -446,13 +446,13 @@ technique |
|
|
|
|
alias pomo-break="$termdown_bin 5m -aW -f 3x5 -c 60 -b -q 10 $@" |
|
|
|
|
alias pomodorino-break="$termdown_bin 2m30s -aW -f 3x5 -c 45 -b -q 10 $@" |
|
|
|
|
#+end_src |
|
|
|
|
*** Android aliases :daily: |
|
|
|
|
*** Android aliases :daily: |
|
|
|
|
#+begin_src sh |
|
|
|
|
alias android-unlock='~/scripts/unlock-android.sh' #$(cat ~/scripts/unlock-android.gpg | gpg 2>/dev/null)' |
|
|
|
|
alias android-kbd="android-remote-keyboard" |
|
|
|
|
alias dock="~/scripts/dock-a3.sh" |
|
|
|
|
#+end_src |
|
|
|
|
*** Misc helpers :daily: |
|
|
|
|
*** Misc helpers :daily: |
|
|
|
|
#+begin_src sh |
|
|
|
|
alias K=/home/jacopods/tmp/keymaps/remap-keyboard |
|
|
|
|
|
|
|
|
|
@ -479,7 +479,7 @@ technique |
|
|
|
|
|
|
|
|
|
alias -g C='| xclip' |
|
|
|
|
#+end_src |
|
|
|
|
*** Named directories :daily: |
|
|
|
|
*** Named directories :daily: |
|
|
|
|
Add frequently accessed directories to the hash for quicker |
|
|
|
|
reference |
|
|
|
|
#+begin_src sh |
|
|
|
|
@ -488,7 +488,7 @@ technique |
|
|
|
|
hash -d kde="/scratch/src/kde" |
|
|
|
|
hash -d kwin="/scratch/src/kde/kde/workspace/kwin" |
|
|
|
|
#+end_src |
|
|
|
|
*** Un-colemak bindings :daily: |
|
|
|
|
*** Un-colemak bindings :daily: |
|
|
|
|
Mitigate muscle memory typos by changing the bindings for the |
|
|
|
|
keys ~t~ and ~f~ in colemak |
|
|
|
|
#+begin_src sh |
|
|
|
|
|