From 28f357a2476fa80f1fc7d84568b1d10ec5171ed9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 30 Sep 2013 22:21:04 +0200 Subject: add +time and +battery commands to commands gotrc example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- gotrc-examples/commands | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gotrc-examples') 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" -- cgit v1.2.3-70-g09d2