You are not logged in.

#351 2011-06-25 07:37:08

skrite
Member
Registered: 2009-09-07
Posts: 160

Re: June 2011 Screenshots

tOTgxMw
Compiz Standalone with xfce4-panel

Offline

#352 2011-06-25 08:04:38

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: June 2011 Screenshots

Nice work. Could you share your .conkyrc?


no place like /home
github

Offline

#353 2011-06-25 10:39:04

sam87
Member
From: down the rabbit hole
Registered: 2009-09-26
Posts: 141

Re: June 2011 Screenshots

oh..my...GOD! that is just awesome dude! i want it all, your wallpaper, your .conkyrc...snap! just github your whole setup i wanna pimp my lil netbook, please? smile


what i cannot build, i do not understand

Offline

#354 2011-06-25 12:01:42

anabolikas
Member
Registered: 2010-05-05
Posts: 45

Re: June 2011 Screenshots

skrite wrote:

http://ompldr.org/tOTgxMw
Compiz Standalone with xfce4-panel

Can you please tell me what is your vim theme and post colors?

Last edited by anabolikas (2011-06-25 12:01:58)

Offline

#355 2011-06-25 12:15:32

Draucia
Member
Registered: 2011-06-05
Posts: 128

Re: June 2011 Screenshots

desktolcl.png

Getting used to gnome-shell.

Last edited by Draucia (2011-06-25 12:16:11)

Offline

#356 2011-06-25 15:16:04

grobar87
Member
From: Македонија
Registered: 2010-08-25
Posts: 174

Re: June 2011 Screenshots

demian wrote:

Nice work. Could you share your .conkyrc?

Thanks smile
Conky:

background no
use_xft yes
xftfont AvantGardeLTMedium:size=10
xftalpha 1
update_interval 2
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 300 300
maximum_width 500
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color 303030
default_shade_color 303030
default_outline_color 000000
alignment top_left
gap_x 30
gap_y 30
no_buffers yes
uppercase yes
cpu_avg_samples 2
override_utf8_locale no

TEXT

${font AvantGardeLTMedium:size=120}${color #303030}${time %H}${font AvantGardeLTMedium:size=120}${color #707070}:${color #303030}${time %M}${font AvantGardeLTMedium:size=40}${color #707070}${voffset -80}:${color #303030}${time %S}
${voffset 60}${font AvantGardeLTMedium:size=20}${color #707070}${time %A} ${color #303030}${time %d} ${color #707070}${time %b} ${color #303030}${time %Y}
${font AvantGardeLTMedium:size=10}${execi 600 sed -n '1p' /home/dejan/conky_weather/weather1}

${font AvantGardeLTMedium:size=10}${color #707070}CPU:${color #303030}${cpu cpu0}% ${goto 100}${color #707070}Root:${color 303030}${fs_used_perc /}% ${goto 200}${color #707070}Swap:${color #303030}$swapperc% ${goto 300}${color #707070}TD:${color #303030}${totaldown wlan0} ${goto 400}${color #707070}DS:${color #303030}${downspeed wlan0}
${color #707070}RAM:${color #303030}$memperc% ${goto 100}${color #707070}Home:${color #303030}${fs_used_perc /home}% ${goto 200}${color #707070}UT:${color #303030}$uptime_short ${goto 300}${color #707070}TU:${color #303030}${totalup wlan0} ${goto 400}${color #707070}US:${color #303030}${upspeed wlan0}

And... here... we... go!

Offline

#357 2011-06-25 15:31:48

grobar87
Member
From: Македонија
Registered: 2010-08-25
Posts: 174

Re: June 2011 Screenshots

sam87 wrote:

oh..my...GOD! that is just awesome dude! i want it all, your wallpaper, your .conkyrc...snap! just github your whole setup i wanna pimp my lil netbook, please? smile

Thanks man! big_smile Glad you like it,here is everything you need:
Openbox & GTK Theme
Icons
Mouse Cursor
Wallpaper
Font is AvantGardeLTMedium Caps.
Conky:

background no
use_xft yes
xftfont AvantGardeLTMedium:size=10
xftalpha 1
update_interval 2
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 300 300
maximum_width 500
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color 303030
default_shade_color 303030
default_outline_color 000000
alignment top_left
gap_x 30
gap_y 30
no_buffers yes
uppercase yes
cpu_avg_samples 2
override_utf8_locale no

TEXT

${font AvantGardeLTMedium:size=120}${color #303030}${time %H}${font AvantGardeLTMedium:size=120}${color #707070}:${color #303030}${time %M}${font AvantGardeLTMedium:size=40}${color #707070}${voffset -80}:${color #303030}${time %S}
${voffset 60}${font AvantGardeLTMedium:size=20}${color #707070}${time %A} ${color #303030}${time %d} ${color #707070}${time %b} ${color #303030}${time %Y}
${font AvantGardeLTMedium:size=10}${execi 600 sed -n '1p' /home/dejan/conky_weather/weather1}

${font AvantGardeLTMedium:size=10}${color #707070}CPU:${color #303030}${cpu cpu0}% ${goto 100}${color #707070}Root:${color 303030}${fs_used_perc /}% ${goto 200}${color #707070}Swap:${color #303030}$swapperc% ${goto 300}${color #707070}TD:${color #303030}${totaldown wlan0} ${goto 400}${color #707070}DS:${color #303030}${downspeed wlan0}
${color #707070}RAM:${color #303030}$memperc% ${goto 100}${color #707070}Home:${color #303030}${fs_used_perc /home}% ${goto 200}${color #707070}UT:${color #303030}$uptime_short ${goto 300}${color #707070}TU:${color #303030}${totalup wlan0} ${goto 400}${color #707070}US:${color #303030}${upspeed wlan0}

Tint2 Panel:

#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
# ID 1
rounded = 0
border_width = 0
background_color = #303030 100
border_color = #000000 00

# ID 2
rounded = 0
border_width = 0
background_color = #636363 00
border_color = #000000 00

# ID 3
rounded = 0
border_width = 0
background_color = #ff0000 00
border_color = #000000 00

# ID 4
rounded = 0
border_width = 1
background_color = #181818 00
border_color = #0f0f0f 00

#---------------------------------------------
# PANEL
#---------------------------------------------
panel_monitor = all
panel_position = top center horizontal
panel_size = 100% 19
panel_margin = 0 0
panel_padding = 0 0
font_shadow = 0
panel_background_id = 1
wm_menu = 0
panel_dock = 0
panel_layer = top

#---------------------------------------------
# TASKBAR
#---------------------------------------------
#taskbar_mode = multi_desktop
taskbar_mode = single_desktop
taskbar_padding = 4 2 2
taskbar_background_id = 1
#taskbar_active_background_id = 0

#---------------------------------------------
# TASKS
#---------------------------------------------
task_icon = 0
task_text = 1
task_maximum_size = 0 19
task_centered = 0
task_padding = 4 2
task_font = AvantGardeLTMedium 10
task_font_color = #707070 100
task_background_id = 1
task_icon_asb = 100 0 0
task_urgent_background_id = 3
task_urgent_font_color = #ffffff 100
task_urgent_icon_asb = 100 0 0
task_active_background_id = 2
task_active_font_color = #c0c0c0 100
task_active_icon_asb = 100 0 0
urgent_nb_of_blink = 8

#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray = 1
systray_padding = 4 2 2
systray_background_id = 1
systray_sort = left2right
systray_icon_size = 0
systray_icon_asb = 100 0 0

#---------------------------------------------
# CLOCK
#---------------------------------------------
time1_format = %a %d %b %Y - %H:%M
time1_font = AvantGardeLTMedium 10
#time2_format = %A %d %B
#time2_font = sans 6
clock_font_color = #707070 100
clock_padding = 4 2
clock_background_id = 1
clock_lclick_command = gsimplecal
#clock_rclick_command = orage
#clock_tooltip = %A, %B %d, %Y
#time1_timezone = :US/Hawaii
#time2_timezone = :Europe/Berlin
#clock_tooltip_timezone = :/usr/share/zoneinfo/Europe/Paris

#---------------------------------------------
# BATTERY
#---------------------------------------------
battery = 0
battery_hide = 98
battery_low_status = 10
battery_low_cmd = notify-send "battery low"
bat1_font = AvantGardeLTMedium 10
bat2_font = AvantGardeLTMedium 10
battery_font_color = #707070 100
battery_padding = 1 0
battery_background_id = 1

#---------------------------------------------
# TOOLTIP
#---------------------------------------------
tooltip = 1
tooltip_padding = 2 2
tooltip_show_timeout = 0.7
tooltip_hide_timeout = 0.3
tooltip_background_id = 4
tooltip_font_color = #707070 100
tooltip_font = AvantGardeLTMedium 10

#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle_iconify
mouse_scroll_down = toggle_iconify

#---------------------------------------------
# AUTOHIDE OPTIONS
#---------------------------------------------
#autohide = 0
#autohide_show_timeout = 0.3
#autohide_hide_timeout = 2
#autohide_height = 4
#strut_policy = minimum

And... here... we... go!

Offline

#358 2011-06-25 17:56:27

skrite
Member
Registered: 2009-09-07
Posts: 160

Re: June 2011 Screenshots

anabolikas wrote:

Can you please tell me what is your vim theme and post colors?

the color theme for vim is called solarized.

Offline

#359 2011-06-25 21:19:32

MrMars
Member
Registered: 2011-05-06
Posts: 57

Re: June 2011 Screenshots

tOThheg

Offline

#360 2011-06-26 01:23:20

tacticalbread
Member
From: Bay Area, CA
Registered: 2011-04-09
Posts: 127
Website

Re: June 2011 Screenshots

Cross post from Awesome WM thread:

Finally got my theme to look the way I wanted:
Screenshot00-thumb.png Screenshot01-thumb.png

But then I got bored of the grey, so I redid it:

Screenshot00-thumb.png Screenshot01-thumb.png

\o/


don't save us from the flames

Offline

#361 2011-06-26 07:58:11

syre
Member
From: Denmark
Registered: 2009-08-04
Posts: 100

Re: June 2011 Screenshots

Draucia wrote:

http://piclion.com/thumbs/desktolcl.png

Getting used to gnome-shell.

Can i just ask? how did you get your Activities bar transparent and so slim?

EDIT: found out, enabling theme shell extension and finding another gnome-shell theme wink

Last edited by syre (2011-06-26 11:12:17)

Offline

#362 2011-06-26 10:54:50

lswest
Member
From: Munich, Germany
Registered: 2008-06-14
Posts: 456
Website

Re: June 2011 Screenshots

Finally got around to changing up my theme.

WM: WMFS
Wallpaper is a Les Paul wallpaper by vusak11 (dA username)
Visible: Conky

LbqlI.jpg

(Link takes you to my deviantArt page).

I'll be happy to share any settings you may be interested in.


Lswest <- the first letter of my username is a lowercase "L".
"...the Linux philosophy is "laugh in the face of danger". Oops. Wrong one. "Do it yourself". That's it." - Linus Torvalds

Offline

#363 2011-06-26 12:17:50

ivoarch
Member
Registered: 2011-03-31
Posts: 436

Re: June 2011 Screenshots


I love GnuEmacs, GnuScreen, ratpoison, and conkeror.
Github )||( Weblog

Offline

#364 2011-06-26 15:03:39

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

Re: June 2011 Screenshots

lswest wrote:

Finally got around to changing up my theme.

WM: WMFS
Wallpaper is a Les Paul wallpaper by vusak11 (dA username)
Visible: Conky

http://i.imgur.com/LbqlI.jpg

(Link takes you to my deviantArt page).

I'll be happy to share any settings you may be interested in.

I'm interested smile

Pls share the configs....
Thx

Sven

Offline

#365 2011-06-26 15:41:46

lswest
Member
From: Munich, Germany
Registered: 2008-06-14
Posts: 456
Website

Re: June 2011 Screenshots

killerturtle wrote:

I'm interested smile

Pls share the configs....
Thx

Sven

wmfsrc
conky clock
conky background (this was also implemented in the clock file)
conky in wmfs bar
mpd-cover script
I use the following code for the random wallpaper.  It requires fluxbox to be installed for the fbsetbg wrapper script.

#!/bin/bash
while true 
do
    fbsetbg -R ~/Pictures/Hyperion/Wallpapers/Guitars
    sleep 15m
done

That should get you started for the first part.  I have another 4 or so conky files, but they mainly just call the lua programs and print a bit of text.  Was there anything in particular you wanted to know that I skipped?

Last edited by lswest (2011-06-26 15:43:07)


Lswest <- the first letter of my username is a lowercase "L".
"...the Linux philosophy is "laugh in the face of danger". Oops. Wrong one. "Do it yourself". That's it." - Linus Torvalds

Offline

#366 2011-06-26 17:23:18

Lich
Member
Registered: 2009-09-13
Posts: 437

Re: June 2011 Screenshots

I had some spare time today so I played around with my Ratpoison setup. Status is provided by piping output from a script that I made to dzen2.
tOThuNg

Last edited by Lich (2011-06-26 17:24:37)


Archlinux | ratpoison + evilwm | urxvtc | tmux

Offline

#367 2011-06-26 17:49:29

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

Re: June 2011 Screenshots

lswest wrote:
killerturtle wrote:

I'm interested smile

Pls share the configs....
Thx

Sven

wmfsrc
conky clock
conky background (this was also implemented in the clock file)
conky in wmfs bar
mpd-cover script
I use the following code for the random wallpaper.  It requires fluxbox to be installed for the fbsetbg wrapper script.

#!/bin/bash
while true 
do
    fbsetbg -R ~/Pictures/Hyperion/Wallpapers/Guitars
    sleep 15m
done

That should get you started for the first part.  I have another 4 or so conky files, but they mainly just call the lua programs and print a bit of text.  Was there anything in particular you wanted to know that I skipped?

This should get me started!

Thx for the info and help.

Sven

Offline

#368 2011-06-26 17:51:18

dipilibupap
Member
Registered: 2011-02-05
Posts: 47

Re: June 2011 Screenshots

@Lich, mind sharing the dzen2 script? Just what i have been looking for !

Cheers


http://dotshare.it    >>    #dotshare@freenode

Offline

#369 2011-06-26 19:01:53

kex
Member
From: secret
Registered: 2011-06-04
Posts: 26

Re: June 2011 Screenshots

Lich wrote:

I had some spare time today so I played around with my Ratpoison setup. Status is provided by piping output from a script that I made to dzen2.
http://ompldr.org/tOThuNg

mind sharing your .vimrc mate? tongue

Offline

#370 2011-06-26 19:03:24

nixfag
Member
From: Romania
Registered: 2011-03-03
Posts: 73

Re: June 2011 Screenshots

kex wrote:
Lich wrote:

I had some spare time today so I played around with my Ratpoison setup. Status is provided by piping output from a script that I made to dzen2.
http://ompldr.org/tOThuNg

mind sharing your .vimrc mate? tongue

I might be wrong,but I only see 2 emacs windows there...

Offline

#371 2011-06-26 19:08:00

sam87
Member
From: down the rabbit hole
Registered: 2009-09-26
Posts: 141

Re: June 2011 Screenshots

grobar87 wrote:
sam87 wrote:

oh..my...GOD! that is just awesome dude! i want it all, your wallpaper, your .conkyrc...snap! just github your whole setup i wanna pimp my lil netbook, please? smile

Thanks man! big_smile Glad you like it,here is everything you need:
Openbox & GTK Theme
Icons
Mouse Cursor
Wallpaper
Font is AvantGardeLTMedium Caps.
Conky:

background no
use_xft yes
xftfont AvantGardeLTMedium:size=10
xftalpha 1
update_interval 2
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 300 300
maximum_width 500
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color 303030
default_shade_color 303030
default_outline_color 000000
alignment top_left
gap_x 30
gap_y 30
no_buffers yes
uppercase yes
cpu_avg_samples 2
override_utf8_locale no

TEXT

${font AvantGardeLTMedium:size=120}${color #303030}${time %H}${font AvantGardeLTMedium:size=120}${color #707070}:${color #303030}${time %M}${font AvantGardeLTMedium:size=40}${color #707070}${voffset -80}:${color #303030}${time %S}
${voffset 60}${font AvantGardeLTMedium:size=20}${color #707070}${time %A} ${color #303030}${time %d} ${color #707070}${time %b} ${color #303030}${time %Y}
${font AvantGardeLTMedium:size=10}${execi 600 sed -n '1p' /home/dejan/conky_weather/weather1}

${font AvantGardeLTMedium:size=10}${color #707070}CPU:${color #303030}${cpu cpu0}% ${goto 100}${color #707070}Root:${color 303030}${fs_used_perc /}% ${goto 200}${color #707070}Swap:${color #303030}$swapperc% ${goto 300}${color #707070}TD:${color #303030}${totaldown wlan0} ${goto 400}${color #707070}DS:${color #303030}${downspeed wlan0}
${color #707070}RAM:${color #303030}$memperc% ${goto 100}${color #707070}Home:${color #303030}${fs_used_perc /home}% ${goto 200}${color #707070}UT:${color #303030}$uptime_short ${goto 300}${color #707070}TU:${color #303030}${totalup wlan0} ${goto 400}${color #707070}US:${color #303030}${upspeed wlan0}

Tint2 Panel:

#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
# ID 1
rounded = 0
border_width = 0
background_color = #303030 100
border_color = #000000 00

# ID 2
rounded = 0
border_width = 0
background_color = #636363 00
border_color = #000000 00

# ID 3
rounded = 0
border_width = 0
background_color = #ff0000 00
border_color = #000000 00

# ID 4
rounded = 0
border_width = 1
background_color = #181818 00
border_color = #0f0f0f 00

#---------------------------------------------
# PANEL
#---------------------------------------------
panel_monitor = all
panel_position = top center horizontal
panel_size = 100% 19
panel_margin = 0 0
panel_padding = 0 0
font_shadow = 0
panel_background_id = 1
wm_menu = 0
panel_dock = 0
panel_layer = top

#---------------------------------------------
# TASKBAR
#---------------------------------------------
#taskbar_mode = multi_desktop
taskbar_mode = single_desktop
taskbar_padding = 4 2 2
taskbar_background_id = 1
#taskbar_active_background_id = 0

#---------------------------------------------
# TASKS
#---------------------------------------------
task_icon = 0
task_text = 1
task_maximum_size = 0 19
task_centered = 0
task_padding = 4 2
task_font = AvantGardeLTMedium 10
task_font_color = #707070 100
task_background_id = 1
task_icon_asb = 100 0 0
task_urgent_background_id = 3
task_urgent_font_color = #ffffff 100
task_urgent_icon_asb = 100 0 0
task_active_background_id = 2
task_active_font_color = #c0c0c0 100
task_active_icon_asb = 100 0 0
urgent_nb_of_blink = 8

#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray = 1
systray_padding = 4 2 2
systray_background_id = 1
systray_sort = left2right
systray_icon_size = 0
systray_icon_asb = 100 0 0

#---------------------------------------------
# CLOCK
#---------------------------------------------
time1_format = %a %d %b %Y - %H:%M
time1_font = AvantGardeLTMedium 10
#time2_format = %A %d %B
#time2_font = sans 6
clock_font_color = #707070 100
clock_padding = 4 2
clock_background_id = 1
clock_lclick_command = gsimplecal
#clock_rclick_command = orage
#clock_tooltip = %A, %B %d, %Y
#time1_timezone = :US/Hawaii
#time2_timezone = :Europe/Berlin
#clock_tooltip_timezone = :/usr/share/zoneinfo/Europe/Paris

#---------------------------------------------
# BATTERY
#---------------------------------------------
battery = 0
battery_hide = 98
battery_low_status = 10
battery_low_cmd = notify-send "battery low"
bat1_font = AvantGardeLTMedium 10
bat2_font = AvantGardeLTMedium 10
battery_font_color = #707070 100
battery_padding = 1 0
battery_background_id = 1

#---------------------------------------------
# TOOLTIP
#---------------------------------------------
tooltip = 1
tooltip_padding = 2 2
tooltip_show_timeout = 0.7
tooltip_hide_timeout = 0.3
tooltip_background_id = 4
tooltip_font_color = #707070 100
tooltip_font = AvantGardeLTMedium 10

#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle_iconify
mouse_scroll_down = toggle_iconify

#---------------------------------------------
# AUTOHIDE OPTIONS
#---------------------------------------------
#autohide = 0
#autohide_show_timeout = 0.3
#autohide_hide_timeout = 2
#autohide_height = 4
#strut_policy = minimum

PEW PEW!!! you r teh pwnz dude!


what i cannot build, i do not understand

Offline

#372 2011-06-26 19:14:59

tacticalbread
Member
From: Bay Area, CA
Registered: 2011-04-09
Posts: 127
Website

Re: June 2011 Screenshots

ivoarch wrote:

which one? tongue

first one:

!black
*color0:#282828
*color8:#363636
!red
*color1:#8A2F58
*color9:#CF4F88
!green
*color2:#287373
*color10:#53A6A6
!yellow
*color3:#914E89
*color11:#BF85CC
!blue
*color4:#18618f
*color12:#1C86C5
!magenta
*color5:#5E468C
*color13:#7F62B3
!cyan
*color6:#8CAFF0
*color14:#9BBAF1
!white
*color7:#EDD8D1
*color15:#FCEDE3

and the second one is just a bit different:

!black
*color0:#020A10
*color8:#030304
!red
*color1:#8A2F58
*color9:#CF4F88
!green
*color2:#5D7582
*color10:#566D7A
!yellow
*color3:#914E89
*color11:#BF85CC
!blue
*color4:#1b3f4d
*color12:#274350
!magenta
*color5:#471C38
*color13:#4A1738
!cyan
*color6:#8CAFF0
*color14:#9BBAF1
!white
*color7:#C1C6B0
*color15:#E4E3C7

don't save us from the flames

Offline

#373 2011-06-26 19:33:08

ivoarch
Member
Registered: 2011-03-31
Posts: 436

Re: June 2011 Screenshots

The second most.
thanks for the color theme.


I love GnuEmacs, GnuScreen, ratpoison, and conkeror.
Github )||( Weblog

Offline

#374 2011-06-27 00:10:41

Lich
Member
Registered: 2009-09-13
Posts: 437

Re: June 2011 Screenshots

dipilibupap wrote:

@Lich, mind sharing the dzen2 script? Just what i have been looking for !

Cheers


Sure dude, here you go.
Be advised that I actually learned Python while writing this script, so I'm sure that a lot of adjustments can and should be done

#!/usr/bin/env python
#coding: utf-8
import sys,time,subprocess, datetime

color_green = "^fg(#bdc48f)"
color_red = '^fg(#cd5f0e)'
color_blue = '^fg(#66b3cc)'

while(True):
    volume = '^fg(#e0e0e0)' + subprocess.Popen(['amixer -c 0 sget Master'], stdout=subprocess.PIPE, shell=True).communicate()[0].splitlines()[4].split()[3][1:3] + '^fg()'
    f = open('/proc/loadavg', 'r')
    load = f.read(4)
    f.close()
    if load[0:1] == '0':
        load = color_green + load + '^fg()'
    else:
        load = color_red + load + '^fg()'
        
    now = datetime.datetime.now()
    date = time.strftime('%b %d, ^fg(#e0e0e0)%I^fg():^fg(#e0e0e0)%M^fg():^fg(#e0e0e0)%S^fg() %p', time.localtime())
    hdd1 = color_blue + subprocess.Popen(['df -h'], stdout=subprocess.PIPE, shell=True).communicate()[0].splitlines()[1].split()[3] + '^fg()'

    temp0 = subprocess.Popen(['sensors'], stdout=subprocess.PIPE, shell=True).communicate()[0].splitlines()[2].split()[2]
    if int(temp0[1:2]) < 5:
        temp0 = color_green + temp0 + '^fg()'
    else:
        temp0 = color_red + temp0 + '^fg()'
     
    temp1 = subprocess.Popen(['sensors'], stdout=subprocess.PIPE, shell=True).communicate()[0].splitlines()[4].split()[2]
    if int(temp1[1:2]) < 5:
        temp1 = color_green + temp1 + '^fg()'
    else:
        temp1 = color_red + temp1 + '^fg()'

    rp = subprocess.Popen(['ratpoison -c windows | grep "*"'], stdout=subprocess.PIPE, shell=True).communicate()[0]
    ratpoison = ''
    if len(rp) > 0:
        ratpoison = '[^fg(#e0e0e0)' + rp.split()[0] + '^fg()] ' + color_blue + rp.split()[2][0:10] + '^fg()'
    else:
        ratpoison = '[^fg(#e0e0e0)-^fg()] ' + color_blue + 'no windows^fg()'
    status = '{0} ▪ cpu[^fg(#e0e0e0)0^fg()] {1} ▪ core[^fg(#e0e0e0)0^fg()] {2} ▪ core[^fg(#e0e0e0)1^fg()] {3} ▪ hdd[^fg(#e0e0e0)0^fg()] {4} ▪ vol[^fg(#e0e0e0)0^fg()] {5} ▪ {6}'.format(ratpoison, load, temp0, temp1, hdd1, volume, date)
    print status
    sys.stdout.flush()
    time.sleep(1)

Reagarding my vimrc, indeed, all you see is the one and only editor: emacs smile


Archlinux | ratpoison + evilwm | urxvtc | tmux

Offline

#375 2011-06-27 12:12:43

upsidaisium
Member
From: Vietnam
Registered: 2006-09-16
Posts: 263
Website

Re: June 2011 Screenshots

@Lich: So you wrote that script in Python as a learning exercise? It would look a lot less ugly as a shell script! wink

You could at least do something like..

from subprocess import Popen, PIPE

..to avoid having to type 'subprocess' so much.

And the bit where you open a file might look nicer as..

with open('/proc/loadavg', 'r') as f:
    load = f.read(4)

..and let Python take care of closing the file for you.

Also the string concatenation looks a bit ugly to me. What about..

load = '%s %s ^fg()' % (color_green, load) # load = color_green + load + '^fg()'

..? You could also use this instead of '...'.format(...), I suppose.

Also, for the sake of readability, you might want to keep this in a variable..? Ex

status_tmpl = '{0} ▪ cpu[^fg(#e0e0e0)0^fg()] {1} ▪ core[^fg(#e0e0e0)0^fg()] {2} ▪ core[^fg(#e0e0e0)1^fg()] {3} ▪ hdd[^fg(#e0e0e0)0^fg()] {4} ▪ vol[^fg(#e0e0e0)0^fg()] {5} ▪ {6}'

And then this would read more easily:

status = status_tmpl.format( ... )

Last edited by upsidaisium (2011-06-27 12:28:25)


I've seen young people waste their time reading books about sensitive vampires. It's kinda sad. But you say it's not the end of the world... Well, maybe it is!

Offline

Board footer

Powered by FluxBB