You are not logged in.

#1601 2011-03-05 10:32:57

SimpleKiwi
Member
From: Ashburton, New Zealand
Registered: 2010-10-11
Posts: 20

Re: Share your Openbox Desktop ! :)

I'm using Openbox with tint2 and conky with a modified lua rings script.

test

Last edited by SimpleKiwi (2011-03-06 01:39:58)

Offline

#1602 2011-03-06 01:31:37

arus7
Member
Registered: 2010-11-10
Posts: 8

Re: Share your Openbox Desktop ! :)

Barthalion wrote:

-- mod edit: read the rules and only post thumbnails https://bbs.archlinux.org/viewtopic.php?id=61754  [jwr] --
And tell me what it was, dear mod? Openbox running on phone device?

http://wstaw.org/m/2011/02/17/dirty_jpg_300x300_q85.jpg

Barthalion ,could you share your wallpaper?

Offline

#1603 2011-03-06 02:22:12

arus7
Member
Registered: 2010-11-10
Posts: 8

Re: Share your Openbox Desktop ! :)

SimpleKiwi wrote:

I'm using Openbox with tint2 and conky with a modified lua rings script.

https://docs.google.com/uc?id=0B40io8KL … load&hl=en

Can you post your tint and conky config please

Offline

#1604 2011-03-06 04:45:35

SimpleKiwi
Member
From: Ashburton, New Zealand
Registered: 2010-10-11
Posts: 20

Re: Share your Openbox Desktop ! :)

Tint2 Config:

# Tint2 config file
# Generated by tintwizard (http://code.google.com/p/tintwizard/)
# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure

# To use this as default tint2 config: save as $HOME/.config/tint2/tint2rc

# Background definitions
# ID 1
rounded = 0
border_width = 0
background_color = #000000 29
border_color = #FFFFFF 100

# Panel
panel_monitor = 1
panel_position = top left vertical
panel_size = 0 36
panel_margin = 0 0
panel_padding = 0 0 0
panel_dock = 0
wm_menu = 1
panel_layer = bottom
panel_background_id = 1

# Panel Autohide
autohide = 0
autohide_show_timeout = 0.0
autohide_hide_timeout = 0.0
autohide_height = 0
strut_policy = none

# Taskbar
taskbar_mode = single_desktop
taskbar_padding = 0 0 0
taskbar_background_id = 0
#taskbar_active_background_id = 0

# Tasks
urgent_nb_of_blink = 7
task_icon = 1
task_text = 0
task_centered = 0
task_maximum_size = 200 32
task_padding = 2 0
task_background_id = 0
task_active_background_id = 0
task_urgent_background_id = 0
task_iconified_background_id = 0

# Task Icons
task_icon_asb = 100 0 0
task_active_icon_asb = 100 0 0
task_urgent_icon_asb = 100 0 0
task_iconified_icon_asb = 100 0 0

# Fonts
task_font = typo3 12
task_font_color = #FFFFFF 47
task_active_font_color = #FFFFFF 100
task_urgent_font_color = #FFFFFF 100
task_iconified_font_color = #FFFFFF 100
font_shadow = 0

# System Tray
systray = 1
systray_padding = 0 0 0
systray_sort = ascending
systray_background_id = 0
systray_icon_size = 0
systray_icon_asb = 100 0 0

# Tooltips
tooltip = 0
tooltip_padding = 0 0
tooltip_show_timeout = 0
tooltip_hide_timeout = 0
tooltip_background_id = 0
tooltip_font = Sans 12
tooltip_font_color = #FFFFFF 100

# Mouse
mouse_middle = none
mouse_right = close
mouse_scroll_up = desktop_right
mouse_scroll_down = desktop_left

# Battery
battery = 0
battery_low_status = 20
battery_low_cmd = notify-send "battery low"
battery_hide = 90
bat1_font = Sans 12
bat2_font = Sans 12
battery_font_color = #FFFFFF 100
battery_padding = 0 0
battery_background_id = 0

# End of config

And my .conkyrc:

# — Conky settings — #
#background yes
update_interval 0.5

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 1024
imlib_cache_size 0

# — Window specifications — #

own_window yes
#own_window_type override#
own_window_type normal
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0
border_outer_margin 0

minimum_size 800 800
maximum_width 800

alignment top_middle
gap_x 1
gap_y 30

# — Graphics settings — #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# — Text settings — #
use_xft yes
xftfont Neuropolitical:size=10
xftalpha 0.5

uppercase no

default_color 3E3E3E
color1 D23000

# — Lua Load — #
lua_load ~/.scripts/clock_rings.lua
lua_draw_hook_pre clock_rings

TEXT
${color 33FF5E}${voffset 0}${font Neuropolitical:size=24}${alignr}jesse@${nodename}
${alignr}Uptime: ${color FFFFFF}$uptime_short
${alignr}${color 33FF5E}IP: ${color FFFFFF}${addr wlan0}${font}
${color FFFFFF}${goto 35}${voffset 65}WLAN
${color 33FF5E}${goto 35}QUAL
${color FFFFFF}${goto 700}${voffset -35}${fs_used_perc /}%
${color 33FF5E}${goto 700}HDD
${color FFFFFF}${goto 675}${font Neuropolitical:size=24}${voffset 100}${cpu cpu0}%
${color 33FF5E}${goto 675}CPU
${color FFFFFF}${goto 15}${voffset -80}${battery_percent BAT1 /}%
${color 33FF5E}${goto 15}BAT
${color FFFFFF}${goto 35}${font}${voffset 70}${swapperc}%
${color 33FF5E}${goto 35}SWAP
${color FFFFFF}${goto 700}${voffset -35}${memperc}%
${color 33FF5E}${goto 700}RAM
${voffset -515}${goto 0}${font Neuropolitical:size=24}${time %H:%M:%S}
${color FFFFFF}${goto 0}${time %D}
${color 33FF5E}${goto 0}${time %A}

And my rings script (.scripts/clock_rings.lua):

--[[
Clock Rings by londonali1010 (2009) , mod by arpinux

This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua script.

IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num>5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num>3; conversely if you update Conky every 0.5s, you should use update_num>10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.

To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
   lua_load ~/scripts/clock_rings.lua
   lua_draw_hook_pre clock_rings
   
Changelog:
+ v1.0 -- Original release (30.09.2009)
]]

settings_table = {
   {
           name='time',
           arg='%S',
           max=60,
           bg_colour=0xffffff,
           bg_alpha=0.2,
           fg_colour=0x33ff5e,
           fg_alpha=0.4,
           x=400, y=270,
           radius=50,
           thickness=20,
           start_angle=290,
           end_angle=430
   },
   {
           name='time',
           arg='%M',
           max=60,
           bg_colour=0xffffff,
           bg_alpha=0.2,
           fg_colour=0x33ff5e,
           fg_alpha=0.4,
           x=400, y=270,
           radius=100,
           thickness=20,
           start_angle=290,
           end_angle=430
   },
   {
           name='time',
           arg='%H',
           max=24,
           bg_colour=0xffffff,
           bg_alpha=0.2,
           fg_colour=0x33ff5e,
           fg_alpha=0.4,
           x=400, y=270,
           radius=150,
           thickness=20,
           start_angle=290,
           end_angle=430
   },
   {
           name='swapperc',
           arg='',
           max=100,
           bg_colour=0xffffff,
           bg_alpha=0.2,
           fg_colour=0x33ff5e,
           fg_alpha=0.4,
           x=60, y=500,
           radius=50,
           thickness=10,
           start_angle=90,
           end_angle=360
   },
   {
          name='wireless_link_qual_perc',
       arg='wlan0',
       max=100,
       bg_colour=0xffffff,
           bg_alpha=0.2,
           fg_colour=0x33ff5e,
           fg_alpha=0.4,
           x=60, y=200,
           radius=50,
           thickness=10,
           start_angle=180,
           end_angle=450
   },
   {
       name='battery_percent',
       arg='BAT1',
       max=100,
       bg_colour=0xffffff,
           bg_alpha=0.2,
           fg_colour=0x33ff5e,
           fg_alpha=0.4,
           x=60, y=350,
           radius=100,
           thickness=10,
           start_angle=0,
           end_angle=180
       
   },
   {
           name='cpu',
           arg='cpu0',
           max=100,
           bg_colour=0xffffff,
           bg_alpha=0.2,
           fg_colour=0x33ff5e,
           fg_alpha=0.4,
           x=720, y=350,
           radius=100,
           thickness=10,
           start_angle=180,
           end_angle=360
   },
   {
           name='memperc',
           arg='',
           max=100,
           bg_colour=0xffffff,
           bg_alpha=0.2,
           fg_colour=0x33ff5e,
           fg_alpha=0.4,
           x=720, y=500,
           radius=50,
           thickness=10,
           start_angle=0,
           end_angle=270
   },
   
   {
           name='fs_used_perc',
           arg='/',
           max=100,
           bg_colour=0xffffff,
           bg_alpha=0.2,
           fg_colour=0x33ff5e,
           fg_alpha=0.4,
           x=720, y=200,
           radius=50,
           thickness=10,
           start_angle=-90,
           end_angle=180
   },
}



require 'cairo'

function rgb_to_r_g_b(colour,alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
    local w,h=conky_window.width,conky_window.height
   
    local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
    local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

    local angle_0=sa*(2*math.pi/360)-math.pi/2
    local angle_f=ea*(2*math.pi/360)-math.pi/2
    local t_arc=t*(angle_f-angle_0)

    -- Draw background ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    cairo_set_line_width(cr,ring_w)
    cairo_stroke(cr)
   
    -- Draw indicator ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    cairo_stroke(cr)       
end

function conky_clock_rings()
    local function setup_rings(cr,pt)
        local str=''
        local value=0
       
        str=string.format('${%s %s}',pt['name'],pt['arg'])
        str=conky_parse(str)
       
        value=tonumber(str)
        pct=value/pt['max']
       
        draw_ring(cr,pct,pt)
    end
   
    -- Check that Conky has been running for at least 5s

    if conky_window==nil then return end
    local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
   
    local cr=cairo_create(cs)   
   
    local updates=conky_parse('${updates}')
    update_num=tonumber(updates)
   
    if update_num>5 then
        for i in pairs(settings_table) do
            setup_rings(cr,settings_table[i])
        end
    end
end

Also a 1024x600 screenshot of my desktop is here: 1024x600

Offline

#1605 2011-03-06 06:50:27

Barthalion
Forum Fellow
From: Poland
Registered: 2010-02-26
Posts: 111

Re: Share your Openbox Desktop ! :)

Offline

#1606 2011-03-06 10:24:02

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 752

Re: Share your Openbox Desktop ! :)

screenshot-1.jpg

I test some bmpanel2 themes...

Offline

#1607 2011-03-06 10:37:35

bilgee0629
Member
Registered: 2011-01-29
Posts: 57

Re: Share your Openbox Desktop ! :)

na12 wrote:

configs please?

Offline

#1608 2011-03-06 10:49:32

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 752

Re: Share your Openbox Desktop ! :)

bilgee0629 wrote:
na12 wrote:

configs please?

What configs?
There is only conky configs,and you can look for conky_HUD on gnome-look.org.

Offline

#1609 2011-03-07 08:48:54

Pyntux
Member
From: Serbia
Registered: 2008-12-21
Posts: 393

Re: Share your Openbox Desktop ! :)

@Na12

What about conky weather config? smile


I do not speak English, but I understand...

Online

#1610 2011-03-07 08:57:12

Jelle
Member
From: Netherlands
Registered: 2011-01-30
Posts: 84

Re: Share your Openbox Desktop ! :)

More and more I've been going back to simple, clean setup (although I love playing with lua):

tN3A2ZQ

Offline

#1611 2011-03-07 21:21:14

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 752

Re: Share your Openbox Desktop ! :)

Pyntux wrote:

@Na12

What about conky weather config? smile

this is template for conkyforecast from AUR

${color ffff00}${goto 94}Now ${goto 168}[--datatype=DW --startday=1 --shortweekday]${goto 260}[--datatype=DW --startday=2 --shortweekday]${goto 350}[--datatype=DW --startday=3 --shortweekday]${goto 440}[--datatype=DW --startday=4 --shortweekday]$color
${goto 85}${font ConkyWeather:size=30}[--datatype=WF]${goto 140}  [--datatype=WF --startday=1 --endday=4 --spaces=5]${font ProFont:size=8}${color green}
${goto 85}[--datatype=HT --hideunits --centeredwidth=3]/[--datatype=LT --hideunits --centeredwidth=3]${goto 165}[--datatype=HT --startday=1 --hideunits --centeredwidth=0]/[--datatype=LT --startday=1 --hideunits --centeredwidth=3]${goto 250}[--datatype=HT --startday=2 --hideunits --centeredwidth=3]/[--datatype=LT --startday=2 --hideunits --centeredwidth=3]${goto 342}[--datatype=HT --startday=3 --hideunits --centeredwidth=3]/[--datatype=LT --startday=3 --hideunits --centeredwidth=3]${goto 433}[--datatype=HT --startday=4 --hideunits --centeredwidth=3]/[--datatype=LT --startday=4 --hideunits --centeredwidth=3]

Offline

#1612 2011-03-08 04:13:48

codeRage
Member
Registered: 2011-02-20
Posts: 29

Re: Share your Openbox Desktop ! :)

@na12

Did you have to do anything special to getthe gauges to show up?

I am getting this non-encouraging message.

Conky: conkyrc_HUD: 47: no such configuration: 'lua_load'
Conky: conkyrc_HUD: 48: no such configuration: 'lua_draw_hook_post'

Offline

#1613 2011-03-08 04:23:11

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: Share your Openbox Desktop ! :)

@codeRage... maybe google around? I found THIS and THIS and THIS and THIS. Maybe they help? I don't use conky + lua, but it looks like you have an issue with lua/conky integration (maybe having just conky vs. the conky-lua package, a misplaced config file or something else.

Offline

#1614 2011-03-08 06:50:19

killerturtle
Member
Registered: 2010-11-12
Posts: 111

Re: Share your Openbox Desktop ! :)

Jelle wrote:

More and more I've been going back to simple, clean setup (although I love playing with lua):

http://ompldr.org/tN3A2ZQ

I love that wallpaper, where did you get that?
Mind sharing your conky files?

And how can i make my terminal look like yours?

Thx
Sven

Last edited by killerturtle (2011-03-08 06:51:20)

Offline

#1615 2011-03-08 07:01:32

codeRage
Member
Registered: 2011-02-20
Posts: 29

Re: Share your Openbox Desktop ! :)

@jwhendy You're right, I just needed to install the conky-lua package. Thanks! big_smile

Last edited by codeRage (2011-03-08 07:01:57)

Offline

#1616 2011-03-08 14:08:41

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: Share your Openbox Desktop ! :)

@codeRage: no prob!

Offline

#1617 2011-03-08 16:45:43

Andy Mack
Member
Registered: 2008-06-16
Posts: 133

Re: Share your Openbox Desktop ! :)

Something simple, dont use a panel as I normally roll up windows.

screenshot1od.th.png

Offline

#1618 2011-03-10 01:02:30

AurosGamma
Member
From: San Cristobal,Venezuela
Registered: 2011-02-22
Posts: 132

Re: Share your Openbox Desktop ! :)

A new screenshot:

tN3FucQ

Offline

#1619 2011-03-10 15:00:30

nasosnik
Member
From: Athens - Greece
Registered: 2011-03-10
Posts: 27

Re: Share your Openbox Desktop ! :)

Mate, can you please post the name of the GTK theme, Openbox theme and Fonts that you are using?

Offline

#1620 2011-03-10 16:01:25

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: Share your Openbox Desktop ! :)

tN3F3ZA
Might look bit bright without redshift.

Offline

#1621 2011-03-10 21:40:32

codeRage
Member
Registered: 2011-02-20
Posts: 29

Re: Share your Openbox Desktop ! :)

@Cloudef

Very pretty, what are you using to display music playing?

Offline

#1622 2011-03-10 22:48:54

hwkiller
Member
Registered: 2009-07-21
Posts: 56

Re: Share your Openbox Desktop ! :)

XOclAs.jpg

Offline

#1623 2011-03-11 11:24:43

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: Share your Openbox Desktop ! :)

codeRage wrote:

@Cloudef

Very pretty, what are you using to display music playing?

It's just plain conky

Offline

#1624 2011-03-12 14:37:06

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: Share your Openbox Desktop ! :)

a suggest: trayicon for controlling pulseaudio volume ?


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#1625 2011-03-14 19:02:48

tolga9009
Member
From: Germany
Registered: 2010-01-08
Posts: 62

Re: Share your Openbox Desktop ! :)

Cloudef wrote:

http://ompldr.org/tN3F3ZA
Might look bit bright without redshift.

Wow, this is pure awesomeness. Everything fits in beautifully, especially the very nice, high quality background image. Are you using tint2 and nautilus or is it something different?

Last edited by tolga9009 (2011-03-14 19:04:39)

Offline

Board footer

Powered by FluxBB