diff options
| author | Mattias Andrée <maandree@operamail.com> | 2013-09-30 22:21:04 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2013-09-30 22:21:04 +0200 |
| commit | 28f357a2476fa80f1fc7d84568b1d10ec5171ed9 (patch) | |
| tree | c1d6d2dce208778993124236190224cc8d176411 | |
| parent | derp (diff) | |
| download | gates-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>
| -rw-r--r-- | gotrc-examples/commands | 8 |
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" |
