Update tako config
This commit is contained in:
parent
bdbdbae8f5
commit
e9c2831a14
1 changed files with 22 additions and 11 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
$TAKO_SETTINGS.show_traceback = True
|
$TAKO_SETTINGS.show_traceback = True
|
||||||
$TAKO_SETTINGS.traceback_logfile = $HOME + '/tmp/tako.log'
|
$TAKO_SETTINGS.traceback_logfile = $HOME + '/tmp/tako.log'
|
||||||
|
|
||||||
|
import datetime
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
|
|
@ -41,6 +42,14 @@ def _reminder(args, stdin=None):
|
||||||
atq
|
atq
|
||||||
rm @(filename)
|
rm @(filename)
|
||||||
|
|
||||||
|
def _screenshot(args, stdin=None):
|
||||||
|
if not args:
|
||||||
|
timestamp = datetime.datetime.now().isoformat()
|
||||||
|
fname = '{}/images/screenshots/{}.png'.format($HOME, timestamp)
|
||||||
|
args = [fname]
|
||||||
|
|
||||||
|
/usr/bin/import @(args)
|
||||||
|
|
||||||
$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',
|
||||||
|
|
@ -53,6 +62,8 @@ $TAKO_SETTINGS.aliases.update({
|
||||||
'bc': 'bc -l',
|
'bc': 'bc -l',
|
||||||
'sympy': _sympy,
|
'sympy': _sympy,
|
||||||
'reminder': _reminder,
|
'reminder': _reminder,
|
||||||
|
'enscript': 'enscript -M Letter',
|
||||||
|
'screenshot': _screenshot,
|
||||||
})
|
})
|
||||||
|
|
||||||
if 'TERM' in ${...}:
|
if 'TERM' in ${...}:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue