-- Other libraries
local lain = require("lain")
local ccwidgets = require("cryptocoin_widgets")
+local fxwidgets = require("forex_widgets")
local clocksarray = require("clocksarray")
local dbg = require("debugfunc")
local th = require("taghelpers")
layout = wibox.layout.fixed.horizontal,
})
- if s == screen.primary then
+-- if s == screen.primary then
right_widgets = gears.table.join({
make_spacer(" "),
ccwidgets.btc_widget,
make_spacer(),
ccwidgets.eth_widget,
make_spacer(),
+ fxwidgets.ecb_widget,
+ make_spacer(),
lain_bat.widget,
make_spacer(),
}, right_widgets)
- end
+-- end
s.mywibox:setup {
layout = wibox.layout.align.horizontal,
end
naughty.notify({
title = "Screen removed",
- text = "Salvaged tab " .. t.name .. " onto screen " .. t.screen.name,
+ text = "Salvaged tab " .. t.name,
})
end)
awful.key(nil, "XF86Tools", function () awful.spawn("") end),
awful.key(nil, "XF86Search", function () awful.spawn("") end),
awful.key(nil, "XF86LaunchA", function () awful.spawn("") end),
-awful.key(nil, "XF86Explorer", function () awful.spawn("") end)
+awful.key(nil, "XF86Explorer", function () awful.spawn("") end),
+
+awful.key({ cmdkey }, "Left", function () awful.spawn("xmms2 prev") end),
+awful.key({ cmdkey }, "Right", function () awful.spawn("xmms2 next") end),
+awful.key({ cmdkey }, "space", function () awful.spawn("xmms2 toggle") end),
+awful.key({ cmdkey }, "\\", function () run_output_notify("xmms2 list") end)
)
+function run_output_notify(cmd)
+ awful.spawn.easy_async(cmd, function(stdout, stderr, reason, exit_code)
+ naughty.notify({
+ preset = naughty.config.presets.low,
+ title = "XMMS2 playlist",
+ text = stdout})
+ end)
+end
+
-- Set keys
root.keys(globalkeys)
-- }}}
},
{ rule_any = { instance = {
"tridactyl-edit",
- "libreoffice"
+ "libreoffice",
+ "pdfshuffler"
}},
properties = { floating = true,
maximized = false,