update
This commit is contained in:
parent
1cfae8a80f
commit
c6b1dbc895
21
bindings.lua
21
bindings.lua
|
@ -73,6 +73,16 @@ globalkeys = awful.util.table.join(
|
||||||
awful.key({ hyper }, "4", function () awful.util.spawn("/usr/local/bin/tabletstick 4") end),
|
awful.key({ hyper }, "4", function () awful.util.spawn("/usr/local/bin/tabletstick 4") end),
|
||||||
awful.key({ hyper }, "5", function () awful.util.spawn("/usr/local/bin/tabletstick 4") end),
|
awful.key({ hyper }, "5", function () awful.util.spawn("/usr/local/bin/tabletstick 4") end),
|
||||||
|
|
||||||
|
--}}}
|
||||||
|
|
||||||
|
--{{{ thinkpad
|
||||||
|
|
||||||
|
awful.key({ }, "XF86Sleep", function () awful.util.spawn("/usr/local/bin/s2ram")end ),
|
||||||
|
awful.key({ }, "XF86Away", function () awful.util.spawn("xlock")end ),
|
||||||
|
awful.key({ }, "XF86TouchpadToggle", function () awful.util.spawn("touchpad")end ),
|
||||||
|
|
||||||
|
--}}}
|
||||||
|
|
||||||
--{{{ Audio control
|
--{{{ Audio control
|
||||||
awful.key({ }, "Print", function () teardrop("urxvtc -e alsamixer","top","center", 0.99, 0.4)end ),
|
awful.key({ }, "Print", function () teardrop("urxvtc -e alsamixer","top","center", 0.99, 0.4)end ),
|
||||||
awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set Master 2%-")end ),
|
awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set Master 2%-")end ),
|
||||||
|
@ -110,17 +120,6 @@ globalkeys = awful.util.table.join(
|
||||||
|
|
||||||
--}}}
|
--}}}
|
||||||
|
|
||||||
--{{{ g15Keys
|
|
||||||
|
|
||||||
awful.key({ }, "XF86Word", awful.tag.viewprev ),
|
|
||||||
awful.key({ }, "XF86WebCam", awful.tag.viewnext ),
|
|
||||||
awful.key({ }, "XF86Away", awful.tag.history.restore),
|
|
||||||
|
|
||||||
awful.key({ }, "XF86iTouch", function () awful.screen.focus_relative( 1) end),
|
|
||||||
awful.key({ }, "XF86Support", function () awful.screen.focus_relative(-1) end),
|
|
||||||
|
|
||||||
--}}}
|
|
||||||
|
|
||||||
--{{{ Default
|
--{{{ Default
|
||||||
awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end),
|
awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end),
|
||||||
awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end),
|
awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end),
|
||||||
|
|
2
rc.lua
2
rc.lua
|
@ -37,4 +37,4 @@ dofile (MY_PATH .. "wibox.lua")
|
||||||
dofile (MY_PATH .. "bindings.lua")
|
dofile (MY_PATH .. "bindings.lua")
|
||||||
dofile (MY_PATH .. "rules.lua")
|
dofile (MY_PATH .. "rules.lua")
|
||||||
dofile (MY_PATH .. "signals.lua")
|
dofile (MY_PATH .. "signals.lua")
|
||||||
dofile (MY_PATH .. "uzbl.lua")
|
-- dofile (MY_PATH .. "uzbl.lua")
|
||||||
|
|
|
@ -7,6 +7,8 @@ awful.rules.rules = {
|
||||||
focus = true,
|
focus = true,
|
||||||
size_hints_honor = false,
|
size_hints_honor = false,
|
||||||
keys = clientkeys,
|
keys = clientkeys,
|
||||||
|
minimized = false,
|
||||||
|
--skip_taskbar = true,
|
||||||
buttons = clientbuttons } },
|
buttons = clientbuttons } },
|
||||||
{ rule = { class = "MPlayer" },
|
{ rule = { class = "MPlayer" },
|
||||||
properties = { floating = true,
|
properties = { floating = true,
|
||||||
|
@ -23,8 +25,7 @@ awful.rules.rules = {
|
||||||
skip_taskbar = false } },
|
skip_taskbar = false } },
|
||||||
{ rule = { class = "Firefox", instance = "Navigator" },
|
{ rule = { class = "Firefox", instance = "Navigator" },
|
||||||
properties = { tag = tags[rule_screen][2],
|
properties = { tag = tags[rule_screen][2],
|
||||||
skip_taskbar = true,
|
floating = false, minimized = false } },
|
||||||
floating = false } },
|
|
||||||
{ rule = { class = "Pidgin" },
|
{ rule = { class = "Pidgin" },
|
||||||
properties = { tag = tags[rule_screen][3]} },
|
properties = { tag = tags[rule_screen][3]} },
|
||||||
{ rule = { role = "buddy_list" },
|
{ rule = { role = "buddy_list" },
|
||||||
|
|
|
@ -79,7 +79,7 @@ vicious.register(mailwidget, vicious.widgets.mdir,
|
||||||
--}}}
|
--}}}
|
||||||
|
|
||||||
-- battery {{{
|
-- battery {{{
|
||||||
if exists("/proc/acpi/battery/BAT0") then
|
if exists("/sys/class/power_supply/BAT0") then
|
||||||
batwidget0 = widget({ type = "textbox" })
|
batwidget0 = widget({ type = "textbox" })
|
||||||
vicious.register(batwidget0, vicious.widgets.bat,
|
vicious.register(batwidget0, vicious.widgets.bat,
|
||||||
function (widget, args)
|
function (widget, args)
|
||||||
|
@ -97,7 +97,7 @@ if exists("/proc/acpi/battery/BAT0") then
|
||||||
end, 61, "BAT0")
|
end, 61, "BAT0")
|
||||||
else batwidget0 = nullwidget end
|
else batwidget0 = nullwidget end
|
||||||
|
|
||||||
if exists("/proc/acpi/battery/BAT1") then
|
if exists("/sys/class/power_supply/BAT1") then
|
||||||
batwidget1 = widget({ type = "textbox" })
|
batwidget1 = widget({ type = "textbox" })
|
||||||
vicious.register(batwidget1, vicious.widgets.bat,
|
vicious.register(batwidget1, vicious.widgets.bat,
|
||||||
function (widget, args)
|
function (widget, args)
|
||||||
|
@ -115,7 +115,7 @@ if exists("/proc/acpi/battery/BAT1") then
|
||||||
end, 61, "BAT1")
|
end, 61, "BAT1")
|
||||||
else batwidget1 = nullwidget end
|
else batwidget1 = nullwidget end
|
||||||
|
|
||||||
if exists("/proc/acpi/battery/BAT2") then
|
if exists("/sys/class/power_supply/BAT2") then
|
||||||
batwidget2 = widget({ type = "textbox" })
|
batwidget2 = widget({ type = "textbox" })
|
||||||
vicious.register(batwidget2, vicious.widgets.bat,
|
vicious.register(batwidget2, vicious.widgets.bat,
|
||||||
function (widget, args)
|
function (widget, args)
|
||||||
|
|
Loading…
Reference in a new issue