Add reminder alias to tako
This commit is contained in:
parent
b04d71e8be
commit
385a34e2f0
1 changed files with 10 additions and 0 deletions
|
|
@ -42,6 +42,15 @@ def _workon(args, stdin=None):
|
||||||
def _sympy(args, stdin=None):
|
def _sympy(args, stdin=None):
|
||||||
source @($HOME + '/.config/tako/sympy.tako')
|
source @($HOME + '/.config/tako/sympy.tako')
|
||||||
|
|
||||||
|
def _reminder(args, stdin=None):
|
||||||
|
time, text = args
|
||||||
|
command = 'notify-send {} {}'.format(time, repr(text))
|
||||||
|
filename = $(mktemp)
|
||||||
|
with open(filename, 'w') as f: f.write(command)
|
||||||
|
at -M @(time) -f @(filename) all> /dev/null
|
||||||
|
atq
|
||||||
|
rm @(filename)
|
||||||
|
|
||||||
$TAKO_SETTINGS.aliases.update({
|
$TAKO_SETTINGS.aliases.update({
|
||||||
'startx': 'ssh-agent startx ; vlock',
|
'startx': 'ssh-agent startx ; vlock',
|
||||||
'ls': 'ls --color=auto',
|
'ls': 'ls --color=auto',
|
||||||
|
|
@ -54,6 +63,7 @@ $TAKO_SETTINGS.aliases.update({
|
||||||
'octave': 'octave-cli',
|
'octave': 'octave-cli',
|
||||||
'bc': 'bc -l',
|
'bc': 'bc -l',
|
||||||
'sympy': _sympy,
|
'sympy': _sympy,
|
||||||
|
'reminder': _reminder,
|
||||||
})
|
})
|
||||||
|
|
||||||
if 'TERM' in ${...}:
|
if 'TERM' in ${...}:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue