From 2d6fac0b85fb604f772bad5cb44af5010cec4268 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Thu, 11 Jul 2013 23:26:11 +0200 Subject: [PATCH] Scripts: todo launcher thatcan be bound to an Awesome key --- .config/awesome/rc.lua | 5 ++++- .scripts/todo | 2 ++ .shell.d/alias_rc | 3 --- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100755 .scripts/todo diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 34626a99..7d4df00b 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -368,6 +368,9 @@ globalkeys = awful.util.table.join( -- Screenshot awful.key({}, "Print", function () awful.util.spawn("scrot 'screen-%Y-%m-%d-%H%M%S.png' -e 'mkdir -p ~/temp && mv $f ~/temp/'") end), + -- Screenshot + awful.key({ modkey }, "t", function () awful.util.spawn("todo") end), + -- Touchpad awful.key({ }, "XF86TouchpadToggle", function () os.execute("synclient TouchpadOff=`synclient -l | grep -c 'TouchpadOff.*=.*0'`") end), awful.key({ }, "XF86Tools", function () os.execute("synclient TouchpadOff=`synclient -l | grep -c 'TouchpadOff.*=.*0'`") end), @@ -493,7 +496,7 @@ clientkeys = awful.util.table.join( awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ), awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end), awful.key({ modkey, }, "o", awful.client.movetoscreen ), - awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end), + -- awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end), -- Floating clients move awful.key({ modkey }, "j", function () awful.client.moveresize( 0, 20, 0, 0) end), diff --git a/.scripts/todo b/.scripts/todo new file mode 100755 index 00000000..40d378ad --- /dev/null +++ b/.scripts/todo @@ -0,0 +1,2 @@ +#!/bin/sh +$EDITOR ~/todo.org diff --git a/.shell.d/alias_rc b/.shell.d/alias_rc index 46e64259..2e496e81 100644 --- a/.shell.d/alias_rc +++ b/.shell.d/alias_rc @@ -77,9 +77,6 @@ else alias halt='sudo halt -p' fi -## TODO file. -alias todo='$EDITOR ~/todo.org' - ## Start X and lock current terminal (press ENTER when back in terminal to prompt for password). [ -n "$(command -v vlock)" ] && alias sx='startx & vlock'