You are not logged in.
I hope it is OK to have two separate questions in one post. I am using XMonad for a long time and decided to switch to Awesome WM.
1. Mapping Mod4-Shift-<minus>?
I used to map (modm .|. shiftMask, xK_minus) and ((modm .|. shiftMask, xK_backslash) in XMonad to take screenshots and it worked flawlessly.
Now I try to do the same in Awesome but any combination I tried doesn't work. For instance:
awful.key({ modkey, "Shift" }, "-"
awful.key({ modkey, "Shift" }, "minus"
awful.key({ modkey, "Shift" }, "xK_minus"
etc
So how do I map Mod4-Shift-minus and Mod4-Shift-backslash in Awesome?
2. awful.widget.watch coloring?
I am using awful.widget.watch to show results from a few scripts I am using. Xmobar did allow changing colors for the part of output, by adding <fc=#CCCC00></fc> combo. Looking at docs I can't find any way to specify colors in .watch on Awesome.
Do I have to write custom widget to have colors inside? Can you show me some good and simple starting example if that's the only way?
Thanks!
Offline
Answering my own question, using simple green text clock example:
- Create function that updates widget
- Create widget
- Create timer that calls update function
- Add widget to wibox
local function updateTime()
clockwidget.markup = "<span color=\"#00ff00\">" .. os.date("%a %b %d, %H:%M") .. "</span>"
end
clockwidget = wibox.widget{ markup = '---clock---', align = 'center', valign = 'center', widget = wibox.widget.textbox }
gears.timer {
timeout = 30,
autostart = true,
callback = function()
updateTime()
end
}
Now color codes work.
I haven't solved minus key problem yet.
Offline