Awesome: per-user log for dwb

master
Pierre Neidhardt 2014-04-21 19:22:04 +02:00
parent 2ac1c6da7d
commit 10e6425f0a
2 changed files with 7 additions and 3 deletions

View File

@ -7,6 +7,10 @@ local f = io.popen("uname")
local ostype = f:read("*l")
f:close()
local userf = io.popen("id -u")
local uid = userf:read("*l")
userf:close()
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
@ -352,8 +356,8 @@ globalkeys = awful.util.table.join(
awful.key({ }, "XF86Mail", function () awful.util.spawn(termcmd .. "mutt") end),
-- Web browser
awful.key({ modkey, }, "w", function () awful.util.spawn_with_shell("dwb 2>>/tmp/dwb.log") end),
awful.key({ }, "XF86WWW", function () awful.util.spawn_with_shell("dwb 2>>/tmp/dwb.log") end),
awful.key({ modkey, }, "w", function () awful.util.spawn_with_shell("dwb 2>>/tmp/dwb" .. uid .. ".log") end),
awful.key({ }, "XF86WWW", function () awful.util.spawn_with_shell("dwb 2>>/tmp/dwb" .. uid .. ".log") end),
-- Music player
awful.key({ modkey, }, "a", function () awful.util.spawn(termcmd .. "cmus") end),

View File

@ -88,7 +88,7 @@ set sleep_time = 0
# macro index,pager <f2> '<enter-command>source ~/.mutt.d/$my_ac_personal<enter><change-folder>!<enter>'
# macro index,pager <f3> '<enter-command>source ~/.mutt.d/$my_ac_work<enter><change-folder>!<enter>'
## Store passwords as follows in .mutt-pwds:
## Store passwords as follows in .mutt.pwds:
# set my_pw_account = foo
##
## CCRYPT: