Scripts: todo launcher thatcan be bound to an Awesome key

master
Pierre Neidhardt 2013-07-11 23:26:11 +02:00
parent 35f93e4391
commit 2d6fac0b85
3 changed files with 6 additions and 4 deletions

View File

@ -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),

2
.scripts/todo Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
$EDITOR ~/todo.org

View File

@ -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'