aboutsummaryrefslogtreecommitdiffstats
path: root/gotrc-examples
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-09-30 22:21:04 +0200
committerMattias Andrée <maandree@operamail.com>2013-09-30 22:21:04 +0200
commit28f357a2476fa80f1fc7d84568b1d10ec5171ed9 (patch)
treec1d6d2dce208778993124236190224cc8d176411 /gotrc-examples
parentderp (diff)
downloadgates-of-tartaros-28f357a2476fa80f1fc7d84568b1d10ec5171ed9.tar.gz
gates-of-tartaros-28f357a2476fa80f1fc7d84568b1d10ec5171ed9.tar.bz2
gates-of-tartaros-28f357a2476fa80f1fc7d84568b1d10ec5171ed9.tar.xz
add +time and +battery commands to commands gotrc example
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'gotrc-examples')
-rw-r--r--gotrc-examples/commands8
1 files changed, 8 insertions, 0 deletions
diff --git a/gotrc-examples/commands b/gotrc-examples/commands
index 7bde18b..1a98b07 100644
--- a/gotrc-examples/commands
+++ b/gotrc-examples/commands
@@ -13,6 +13,14 @@ function _login_commands
shutdown -h now
elif [ "${user}" = "+reboot" ]; then
reboot
+ elif [ "${user}" = "+time" ]; then
+ echo
+ date +%Y-\(%m\)%b-%d\ %T,\ %a\ w%W/%V,\ %Z
+ read
+ elif [ "${user}" = "+battery" ]; then
+ echo
+ acpi -V
+ read
elif [ "${user}" = "+backlight" ]; then
if [ "${LANG/UTF-8/}" = "${LANG}" ]; then
export LANG="en_GB.UTF-8"