You are not logged in.
Hi arp ! For the 64 bit, just ask on the french forum, I think I can do it
@ EnochRoot
There is also a "client-list-combined-menu", better than Meta Tab imho !
<keybind key="C-S-a">
<action name="ShowMenu">
<menu>client-list-combined-menu</menu>
</action>
</keybind>
Oh, of course you can assign a shortcut which calls notify-osd to display the time...
notify-send "Time:" "$(date)"
I choosed osd_cat instead of notify-send because when running vlc in full screen mode, and with the "above" layer option in openbox, notify-send stayed below vlc, but notify-send is more easy to use of course !
Hi,
I had exactly the same problem as you ! I found this method to display the hour and it works all the time! Even with applications running in fullscreen mode and with the "above" setup in rc.xml
Here is the script, you have to bind it to a shortcut :
#!/bin/bash
#requires xosd-bin
echo -e "$(date +%H:%M)" | osd_cat -p top -o 20 -i 20 -c yellow -d 3 -f -*-lucida-bold-r-*-*-34-*-*-*-*-*-*-*
exit 0
HTH
Holy Sh*t!
Hmm, thank you ;-)
The main features of theses scripts is that the awesome icon and the layout icons are drawn when awesome starts with colours defined in the theme.lua file, so the panel is always homogeneous and ... nice ;-)
I added two widgets last week : a vertical bar and a (single) horizontal bar :
and made some improvments (autosize for the mpd widget and for the text widget, autoscale for the y axis for the graph, alarms ... ).
The script is here : http://wlourf.deviantart.com/gallery/#/d4g6wz0
I post the README, if someone is interested to give this script a try ;-)
Some widgets for awesome wm v1.1
wlourf 14.11.2011Two scripts : icons.lua and cairowidgets.lua.
The main feature of theses scripts is that the awesome icon and the layout icons are drawn
when awesome starts with colours defined in the theme.lua fileIMPORTANT : the file icons.lua creates icons in the theme directory.
Use with care because it writes icons files without warning.
Icons created are :
- theme.awesome_icon
- theme.menu_submenu_icon
- theme.layout_tileleft
- theme.layout_tile
- theme.layout_tiletop
- theme.layout_tilebottom
- theme.layout_fairv
- theme.layout_fairh
- theme.layout_floating
- theme.layout_magnifier
- theme.layout_max
- theme.layout_fullscreen
- theme.layout_spiral
- theme.layout_dwindle
How to use it :1 . Define default colors and other stuff in your theme.lua, for example
theme.colour_bg={{0,0xC6C9CD,0.5}, {0.5,0xE1E4E8,1} , {1,0xC6C9CD,0.5}}
theme.colour_fg={{0,0x000000,0.5}, {0.5,0x000000,1} , {1,0x000000,0.5}}
theme.colour_alarm={{0,0x8383FF,1},{0.5,0x0000FF,1},{1,0x8583FF,1}}theme.panel_height=24
theme.black_bg=true
theme.panel_font="clean"
theme.panel_italic=false
theme.panel_bold=false
theme.panel_font_size=10theme.panel_thickness = 2 --line thickness in fact
If thoses parameters are missing, default values are used.
2. in the rc.lua, load the two files with
require ("icons")
local cw = require ("cairowidgets")3. In the rc.lua, create the widgets you need with one of theses :
- cairo_battery
- cairo_circle
- cairo_double_hbar
- cairo_gradient (I use it to end the bar)
- cairo_graph --Needs a table
- cairo_hbar
- cairo_mpd --requires vicious
- cairo_space
- cairo_textTo know all the available parameters, look in the cairowidgets.lua file
For example, to display the temperature of the cpu in a circle, I use :
--{{{ CPU TEMP ROUND IMAGE
local function set_cpu_temp_image()
local name="/sys/class/hwmon/hwmon1/device/temp1_input"
return cw.cairo_circle({text="Tcpu", font_weight="bold", value=cw.active_cpu_temp(name)})
end
tcpu_widget = widget({ type = "imagebox", name = "tcpu_widget" })
tcpu_widget.image = set_cpu_temp_image()
tcpu_widget_timer = timer({timeout = 10})
tcpu_widget_timer:add_signal("timeout", function() tcpu_widget.image = set_cpu_temp_image() end)
tcpu_widget_timer:start()
-- }}}And don't forget to add the widgets to the wibox
Any feedback is welcome !
http://wlourf.deviantart.com 14.11.2011
+1, really nice output Mr Peachy ! Thanks for sharing
As for issuing a challenge to the Conky Masters, I think Cr1g321 did that with this screenshot: http://ompldr.org/vYjV0ZQ
I hesitate to post that here...S11 please don't hurt yourself with that lol.
wow, at the beginning I thought it was a conky ... but in fact, it's just a wallpaper, big deception for me
Don't know if you will find that useful but you can have X session inside client window of another X session with Xephyr : more on awesome doc
Hello,
A little script for people addicted to this forum It displays in a pop-up the last messages in the forum :
--script for awesome showing the last messages on crunchbang forums
--in a popup window (naughty.notify)
--by wlourf 30 octobre 2011
--path to the scrunchbang icon
local crunch_icon="/home/wlourf/.config/awesome/crunch-white.png"
--interval = check every X seconds
local interval=600
--time_out = time to display the popup
local time_out=30
--END OF PARAMETERS
local t_msg_old={}
function check_crunch_forum_en()
local f = io.popen("curl -s http://crunchbanglinux.org/forums/search/recent/")
local return_text=""
--put all messages in table t_msg_new
local t_msg_new={}
for line in f:lines() do
if line:find("h3 class=\"hn") ~= nil then
title = line:match("/\">(.-)</a")
end
if line:find("lastpost") ~= nil then
url=line:match("href=\"(.-)\"")
dt=line:match("%d\">(.-)<")
user=line:match("by%s(.-)<")
end
if title ~=nil and url ~= nil and user ~= nil and dt ~=nil then
table.insert(t_msg_new, {url,title,user,dt})
title=nil
user=nil
dt=nil
url=nil
end
end
--first call, copy table t_msg_new in t_msg_old
--is there a better way to copy the table ?
if #t_msg_old == 0 then
for i=1,#t_msg_new do
t_msg_old[i] = {t_msg_new[i][1],t_msg_new[i][2],t_msg_new[i][3],t_msg_new[i][4]}
end
else
--compare the two tables to find new elements
if t_msg_old[1][1] ~= t_msg_new[1][1] then
for i=1,#t_msg_new do
t_msg_new[i][5]=true
for j=1,#t_msg_old do
if t_msg_old[j][1] == t_msg_new[i][1] then
t_msg_new[i][5]=false
break
end
end
--text to display
if t_msg_new[i][5] then
return_text = return_text .. t_msg_new[i][2] .. " (" .. t_msg_new[i][3] .. " " .. t_msg_new[i][4] .. ")\n"
end
end
--copy new table into old table
for i=1,#t_msg_new do
t_msg_old[i] = {t_msg_new[i][1],t_msg_new[i][2],t_msg_new[i][3],t_msg_new[i][4]}
end
end
end
if return_text ~="" then
runcrunch = naughty.notify({title = "crunchbang " .. os.date("%H:%M:%S"), text = return_text , timeout = time_out, icon=crunch_icon,
run = function ()
naughty.destroy(runcrunch)
awful.util.spawn("x-www-browser http://crunchbanglinux.org/forums/search/recent/")
end
})
end
end
--init at awesome's start
check_crunch_forum_en()
--timer
crunch2_timer = timer({timeout = interval})
crunch2_timer:add_signal("timeout", function() check_crunch_forum_en() end)
crunch2_timer:start()
And the output :
I would like to open a browser when I click on the pop-up, is it possible ---> ok fixed
Edit : little bug on the capture above (same date and poster for the 2 first posts) corrected
@ichase, Lua is not enough, you need to the Lua support in Conky and if you want to draw things, you need theses bindings :
Lua bindings:
* Cairo
* Imlib2
you don't have Lua support, look at mine :
Conky 1.8.0 compiled Fri Jul 29 20:16:26 UTC 2011 for Linux 2.6.39-2-amd64 (x86_64)
Compiled in features:
System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky
X11:
* Xdamage extension
* XDBE (double buffer extension)
* Xft
* ARGB visual
Music detection:
* MPD
* MOC
General:
* math
* hddtemp
* portmon
* Curl
* RSS
* Weather (METAR)
* Weather (XOAP)
* wireless
* support for IBM/Lenovo notebooks
* nvidia
* eve-online
* config-output
* Imlib2
* ALSA mixer support
* apcupsd
* iostats
* ncurses
* Lua
Lua bindings:
* Cairo
* Imlib2
You have to install conky-all (a debian package) or compile conky with needed options !
Edit : I've seen you are runing Arch, I don't know if you have a conky-all package
@ichase, please post the output for
conky -v
Maybe you've change something in your mpd; Vicious reads this adress to retrieve the informations : telnet://localhost:6600 with no password. I don't know how to change the defaults settings.
With this script, if everything works fine, the output should be the informations of mpd ;
#!/usr/bin/lua
local echo = "echo 'password \"\"\nstatus\ncurrentsong\nclose'"
local mpdh = "telnet://localhost:6600"
local f = io.popen(echo.." | curl --connect-timeout 1 -fsm 3 "..mpdh)
print (f)
for line in f:lines() do
print (line)
end
(it's a part of the mpd.lua widget)
@ganja, strange behaviour, I've copied the widget below and it works fine (with awesome 3.4.6-1) :
-- Initialize widget
mpdwidget = widget({ type = "textbox" })
-- Register Widget
vicious.register(mpdwidget, vicious.widgets.mpd, "<span color='#BF5C5C'> ♪</span> ${Title}, ${Artist}", 13)
a simple conky displaying a modern clock and/or a coverart for your player and/or a photo-album
Everything is written in Lua : http://my.deviantart.com/messages/#/d4dpenu
Hello !
Some widgets made with cairo for this wonderful WM :
The script is on deviantArt : http://my.deviantart.com/messages/#/d4dpete
@ichase : in your python script, try to remove all caracters (even invisibles caracters) after print newCal.
@DrakarNoir : I had sometimes cpu peaks, only with a tilling WM (awesomewm in my case) when the WM try to set the size of the conky window. Do you use a tiling WM ?
18 players, bravo ! Nobody will stop you ?!
Hi,
Post the conky and the scripts here and run your conky in a terminal, then post the errors messages. It will be more easy to help you !
Hello !
A non-obstructive conky made in Lua, 2 examples made with the same script here :
It's just a background with differents shapes : circles/ bars/ graphs or text but the main feature is the colours wth the gradients.
(the script is on deviantArt)
Happy Conkying !
Thanks wlourf! Is there a link that talks about the changing the colors in the rings and text? I will also change to urls in the how to to reflect your deviantart site
This conky is in fact a mix of 2 widgets (text.lua & rings & sectors). Theses two files had bugs and memory leaks , I've corrected them at the beginning of the year. And today I've updated the conky-music.tar on deviantArt.
I didn't add your players (because your HowTo is very descriptive) but linked to this post in the README.
Now for the colors : I wrote two HowTo when I was very enthusiastic about Lua !!!
Text Part1 : http://u-scripts.blogspot.com/2010/06/text-widget.html
Text Part2 : http://u-scripts.blogspot.com/2010/06/t … art-2.html
Rings+Sectors : http://u-scripts.blogspot.com/2010/08/r … dgets.html
HTH !
Edit : I had to run this too (debian squeeze) :
sudo ln -s /usr/bin/python2.6 /usr/bin/python2
Very nice HowTo VastOne ! Thank you. Concerning the Lua part, maybe you can mention that colours can be changed in the files rings.lua and text.lua.
And I linked to this HowTo from the original script page : http://wlourf.deviantart.com/art/conky- … -177579441
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat