From a2e27d8fac441a62399943c6ca3b4df9b6bbc757 Mon Sep 17 00:00:00 2001 From: crater2150 <crater@qwertyuiop.de> Date: Mon, 20 Nov 2017 10:03:14 +0100 Subject: [PATCH] Add some keybindings --- mybindings.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mybindings.lua b/mybindings.lua index 3e8fcec..e2b3eb2 100644 --- a/mybindings.lua +++ b/mybindings.lua @@ -51,9 +51,10 @@ local progmap = { {"s", binder.spawn("steam"), "Steam" } } +local home = os.getenv("HOME") local docmap = { - {"u", binder.spawn("docopen ~/doc/uni pdf"), "Uni-Dokumente" }, - {"b", binder.spawn("docopen ~/books pdf epub mobi txt lit html htm"), "Bücher" }, + {"p", binder.spawn("docopen " .. home .. "/ pdf"), "Alle PDF-Dokumente" }, + {"b", binder.spawn("docopen " .. home .. "/doc/books pdf epub mobi txt lit html htm"), "Bücher" }, {"t", binder.spawn("dmtexdoc"), "Texdoc" }, {"j", binder.spawn("dmjavadoc"), "Javadoc" } } @@ -88,6 +89,7 @@ local myglobalkeys = awful.util.table.join( awful.key({ modkey }, "s", binder.spawn("dmsearch")), awful.key({ modkey }, "x", binder.spawn("dmxrandr")), awful.key({ modkey, "Shift" }, "x", binder.spawn("xd --dmenu")), + awful.key({ modkey }, "z", binder.spawn("dmumount")), --}}}