SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 Artwork & Screenshots » CB 3D wallpapers » 2012-03-02 16:36:49

wlourf
Replies: 5

Hi !

Some wallpapers with a modified CrunchBang logo :

crunchbang_and_blue_by_wlourf-d4rhuyd.jpg

fullsize

crunchbang_3d_black___black_by_wlourf-d4rhvtb.jpg

fullsize

crunchbang_black___white_3d_by_wlourf-d4rhvhm.jpg

fullsize

They are available from my dA page

I wanted them simple and clear smile Enjoy !

#2 Re: WM/DE Talk » livarp, debian with six window managers » 2011-12-08 16:05:35

Hi arp ! For the 64 bit, just ask on the french forum, I think I can do it smile

#3 Re: WM/DE Talk » Living without a panel » 2011-11-29 23:20:48

@ 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>

#4 Re: WM/DE Talk » Living without a panel » 2011-11-29 22:41:06

machinebacon wrote:

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 !

#5 Re: WM/DE Talk » Living without a panel » 2011-11-29 20:26:18

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 smile

#6 Re: WM/DE Talk » Big Ol' Awesome Config Thread! » 2011-11-14 22:20:17

SuNjACk wrote:

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 :

1cc3c6d44dca4288add08c2a19afb.png

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 ;-)

README wrote:

Some widgets for awesome wm v1.1
wlourf 14.11.2011

Two 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 file

IMPORTANT : 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=10

theme.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_text

To 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

#7 Re: Tips, Tricks & Scripts » November 2011 Conky Thread » 2011-11-14 15:53:08

+1, really nice output Mr Peachy !  Thanks for sharing smile

#8 Re: Tips, Tricks & Scripts » November 2011 Conky Thread » 2011-11-07 19:45:58

ElderV.LaCoste wrote:

  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 smile

#9 Re: Help & Support (Crunchbang 11 "Waldorf") » Multiple instances of X? » 2011-11-06 21:43:10

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

#10 Re: WM/DE Talk » Big Ol' Awesome Config Thread! » 2011-10-31 16:03:50

Hello,

A little script for people addicted to this forum big_smile 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 :

bc869cfbb7e0fa6ed0feb5e39a69c.png

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

#11 Re: Tips, Tricks & Scripts » October 2011 Conky Thread » 2011-10-27 17:35:48

@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

#12 Re: Tips, Tricks & Scripts » October 2011 Conky Thread » 2011-10-27 17:10:26

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

#13 Re: Tips, Tricks & Scripts » October 2011 Conky Thread » 2011-10-27 15:38:48

@ichase, please post the output  for

conky -v

#14 Re: WM/DE Talk » Big Ol' Awesome Config Thread! » 2011-10-26 15:14:30

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)

#15 Re: WM/DE Talk » Big Ol' Awesome Config Thread! » 2011-10-25 14:52:01

@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)

#16 Re: Tips, Tricks & Scripts » October 2011 Conky Thread » 2011-10-23 16:38:58

a simple conky displaying  a modern clock and/or a coverart for your player and/or a photo-album

conky_clock___coverart___photo_by_wlourf-d4dpenu.png

Everything is written in Lua : http://my.deviantart.com/messages/#/d4dpenu

#17 Re: WM/DE Talk » Big Ol' Awesome Config Thread! » 2011-10-23 16:20:13

Hello !

Some widgets made with cairo for this wonderful WM :

widgets_for_awesome_wm_by_wlourf-d4dpete.png

The script is on deviantArt  : http://my.deviantart.com/messages/#/d4dpete

#18 Re: Tips, Tricks & Scripts » October 2011 Conky Thread » 2011-10-21 14:47:29

@ichase : in your python script, try to remove all caracters (even invisibles caracters) after print newCal.

#19 Re: Tips, Tricks & Scripts » How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps » 2011-10-20 11:28:41

@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 ?

#20 Re: Artwork & Screenshots » October 2011 Screenshot thread » 2011-10-15 09:39:34

Hello!

awesome (top+bottom) + conky (left : photoalbum + mpd cover + clock) :

01494e00d41eb2c0ad85706cbf0a7t.jpg

in big

#22 Re: Help & Support (Crunchbang 11 "Waldorf") » lua » 2011-10-09 07:30:35

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 !

#23 Re: Tips, Tricks & Scripts » October 2011 Conky Thread » 2011-10-08 06:47:31

Hello !

A non-obstructive conky made in Lua, 2 examples made with the same script here :

conky_panel_by_wlourf-d4bs4ks.png

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 !

#24 Re: Tips, Tricks & Scripts » How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps » 2011-10-07 07:32:59

VastOne wrote:

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 roll, 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

#25 Re: Tips, Tricks & Scripts » How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps » 2011-10-05 17:16:23

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

Board footer

Powered by FluxBB

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

Debian Logo