You are not logged in.
DotDev wrote:Your prompt looks cool! Would you share your PS1?
Sure, here you go
PS1='%B%F{red}%}%──╼%f%b '
RPS1='%B%F{green}%~%f%b'
Last edited by DotDev (2014-01-10 22:55:15)
Offline
Thanks!
Offline
This might sound a bit bold, but still - how do I get a desktop like that? What WM are you running? What theme (or simply config) are you using? Anything else I need to know?
Thank you!
• WM: Openbox
• Resolution: 1366x768
• CPU: CPU: Intel Pentium CPU B980 @ 2.4GHz
• RAM: 2931MB
Offline
I'm guessing it's Awesome.
Offline
Offline
bspwm with bar:
http://i.imgur.com/5hSnGHu.png
Last edited by 3xOSC (2014-01-11 01:58:32)
Offline
bspwm with bar:
http://i.imgur.com/5hSnGHu.png
Where did you get those icons that are in your bar?
Offline
Those icons can be found in these fonts:
https://github.com/phallus/fonts
Last edited by 3xOSC (2014-01-11 02:57:37)
Offline
Those icons can be found in these fonts:
thanks
Offline
"First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack." ~ George Carrette
Offline
bspwm with bar:
http://i.imgur.com/5hSnGHu.png
What mail notification is?
Last edited by sardina (2014-01-11 11:13:27)
Offline
bspwm with bar:
http://i.imgur.com/5hSnGHu.png
And colors please
But with your case statement for the volume: why don't just put the "\f5" or "\f1" in a variable before and then just have n*) echo "$icon" "$var----\f0---" ?
Last edited by null (2014-01-11 12:35:33)
Offline
Arch, urxvt and dwm
Offline
3xOSC wrote:bspwm with bar:
http://i.imgur.com/5hSnGHu.pngWhat mail notification is?
I think it is just notify-send or something like that. Hooked up to a script
Offline
conky please
+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
Long time monsterwm user here
Font?
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Shinryuu wrote:Long time monsterwm user here
Font?
probably montecarlo.
"First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack." ~ George Carrette
Offline
Proinsias wrote:conky please
I mashed my conky with this one from okubax.
conkyrc:
# Conky settings #
background yes
update_interval 3
cpu_avg_samples 1
net_avg_samples 1
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
temperature_unit celsius
# XFCE lightdm backround issue
own_window_argb_visual no
own_window_argb_value 0
# Window specifications #
own_window_class Conky
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
minimum_size 300 1000
maximum_width 300
alignment tr
# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
#default_color gray
default_shade_color red
default_outline_color green
# Text settings #
use_xft yes
override_utf8_locale yes
xftfont Play:normal:size=8
xftalpha 0.9
uppercase no
default_color 333333
color0 b2ff34
color1 efefef
color2 1994D1
#color3 1994D1
# Lua Load ##${voffset 750}
lua_load ~/.conky.lua
#lua_draw_hook_pre ring_stats
lua_draw_hook_pre conky_main
TEXT
${font Play:normal:size=8}${voffset 16}${color0}${freq_g cpu0} Ghz/${acpitemp}°C
${voffset 0}${color0}CPU1: ${color0}${cpu cpu0}%
${voffset 2}${color0}CPU2: ${color0}${cpu cpu1}%
${voffset 2}${color0}CPU3: ${color0}${cpu cpu2}%
${voffset 2}${color0}CPU4: ${color0}${cpu cpu3}%
${goto 25}${voffset 135}Root${color0}${alignr 290} / ${fs_size /}
${goto 25}${voffset 1}Storage${alignr 290} / ${fs_size /home/gary/storage}
${goto 25}${voffset 1}Home${alignr 290} / ${fs_size /home}
${voffset 7}${goto 240}${color0}SWAP
${voffset 3}${goto 240}${color0}RAM
${font Michroma:bold:size=8}${color0}${voffset 60}${nodename}${kernel}
${hr}
${font Play:normal:size=8}${voffset 20}${mpd_status}${goto 70}${mpd_artist}
${voffset 50}Download $color1 ${downspeedgraph enp2s0 30,150 b2ff34 efefef -l -t}
${voffset 5}${color0}Upload $color1 ${upspeedgraph enp2s0 30,150 b2ff34 efefef -l -t}
${color0}${hr}
${voffset 15}${top name 1}${alignr 150}${top pid 1}
${top name 2}${alignr 150}${top pid 2}
${top name 3}${alignr 150}${top pid 3}
${top name 4}${alignr 150}${top pid 4}
.lua
-- A TESTER
--set alarm value, this is the value at which bar color will change
alarm_value=80
----set alarm bar color, 1,0,0,1 = red fully opaque
ar,ag,ab,aa=1,0,0,1
-- Un m?lange des deux
normal="0xAAF334"
warn="0xff7200"
crit="0xff000d"
-- seulement quand fond n?cessaire
corner_r=35
bg_colour=0x333333
bg_alpha=0.2
settings_table = {
{
name='acpitemp',
arg='',
max=110,
bg_colour=0xdddddd,
bg_alpha=0.8,
fg_colour=0xAAF334,
fg_alpha=0.8,
x=100, y=120,
radius=97,
thickness=4,
start_angle=0,
end_angle=240
},
{
name='cpu',
arg='cpu0',
max=100,
bg_colour=0xdddddd,
bg_alpha=0.8,
fg_colour=0xAAF334,
fg_alpha=0.8,
x=100, y=120,
radius=86,
thickness=13,
start_angle=0,
end_angle=240
},
{
name='cpu',
arg='cpu1',
max=100,
bg_colour=0xdddddd,
bg_alpha=0.7,
fg_colour=0xAAF334,
fg_alpha=0.8,
x=100, y=120,
radius=71,
thickness=12,
start_angle=0,
end_angle=240
},
{
name='cpu',
arg='cpu2',
max=100,
bg_colour=0xdddddd,
bg_alpha=0.6,
fg_colour=0xAAF334,
fg_alpha=0.8,
x=100, y=120,
radius=57,
thickness=11,
start_angle=0,
end_angle=240
},
{
name='cpu',
arg='cpu3',
max=100,
bg_colour=0xdddddd,
bg_alpha=0.5,
fg_colour=0xAAF334,
fg_alpha=0.8,
x=100, y=120,
radius=44,
thickness=10,
start_angle=0,
end_angle=240
},
{
name='memperc',
arg='',
max=100,
bg_colour=0xdddddd,
bg_alpha=0.8,
fg_colour=0xAAF334,
fg_alpha=0.8,
x=235, y=230,
radius=60,
thickness=15,
start_angle=180,
end_angle=420
},
{
name='swapperc',
arg='',
max=100,
bg_colour=0xdddddd,
bg_alpha=0.4,
fg_colour=0xAAF334,
fg_alpha=0.8,
x=235, y=230,
radius=45,
thickness=10,
start_angle=180,
end_angle=420
},
{
name='fs_used_perc',
arg='/',
max=100,
bg_colour=0xdddddd,
bg_alpha=0.8,
fg_colour=0xAAF334,
fg_alpha=0.8,
x=125, y=270,
radius=40,
thickness=10,
start_angle=0,
end_angle=240
},
{
name='fs_used_perc',
arg='/home/gary/storage',
max=100,
bg_colour=0xdddddd,
bg_alpha=0.6,
fg_colour=0xAAF334,
fg_alpha=0.8,
x=125, y=270,
radius=28,
thickness=10,
start_angle=0,
end_angle=240
},
{
name='fs_used_perc',
arg='/home',
max=100,
bg_colour=0xdddddd,
bg_alpha=0.4,
fg_colour=0xAAF334,
fg_alpha=0.8,
x=125, y=270,
radius=16,
thickness=10,
start_angle=0,
end_angle=240
},
{
name='downspeedf',
arg='',
max=2000,
bg_colour=0xdddddd,
bg_alpha=0.8,
fg_colour=0xAAF334,
fg_alpha=0.8,
x=290, y=346,
radius=0,
thickness=12,
start_angle=180,
end_angle=420
},
{
name='upspeedf',
arg='',
max=200,
bg_colour=0xdddddd,
bg_alpha=0.6,
fg_colour=0xAAF334,
fg_alpha=0.8,
x=290, y=346,
radius=0,
thickness=8,
start_angle=180,
end_angle=420
},
}
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_ring_stats()
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)
if value == nil then value = 0 end
pct=value/pt['max']
draw_ring(cr,pct,pt)
end
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
display_temp=temp_watch()
setup_rings(cr,settings_table[i])
end
end
cairo_surface_destroy(cs)
cairo_destroy(cr)
end
-- Contr?le de l'espace disque
function disk_watch()
warn_disk=93
crit_disk=98
-- poser une boucle plus tard... pas simple
disk=tonumber(conky_parse("${fs_used_perc /}"))
if disk<warn_disk then
settings_table[8]['fg_colour']=normal
elseif disk<crit_disk then
settings_table[8]['fg_colour']=warn
else
settings_table[8]['fg_colour']=crit
end
disk=tonumber(conky_parse("${fs_used_perc /home}"))
if disk<warn_disk then
settings_table[9]['fg_colour']=normal
elseif disk<crit_disk then
settings_table[9]['fg_colour']=warn
else
settings_table[9]['fg_colour']=crit
end
disk=tonumber(conky_parse("${fs_used_perc /usr}"))
if disk<warn_disk then
settings_table[10]['fg_colour']=normal
elseif disk<crit_disk then
settings_table[10]['fg_colour']=warn
else
settings_table[10]['fg_colour']=crit
end
end
-- Contr?le de la temp?rature
function temp_watch()
warn_value=70
crit_value=80
temperature=tonumber(conky_parse("${acpitemp}"))
if temperature<warn_value then
settings_table[1]['fg_colour']=normal
elseif temperature<crit_value then
settings_table[1]['fg_colour']=warn
else
settings_table[1]['fg_colour']=crit
end
end
-- Contr?le de l'interface active
--function iface_watch()
-- iface=conky_parse("${if_existing /proc/net/route eth0}eth0${else}enp2s0${endif}")
-- settings_table[11]['arg']=iface
-- settings_table[12]['arg']=iface
--end
function conky_draw_bg()
if conky_window==nil then return end
local w=conky_window.width
local h=conky_window.height
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
cr=cairo_create(cs)
cairo_move_to(cr,corner_r,0)
cairo_line_to(cr,w-corner_r,0)
cairo_curve_to(cr,w,0,w,0,w,corner_r)
cairo_line_to(cr,w,h-corner_r)
cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
cairo_line_to(cr,corner_r,h)
cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
cairo_line_to(cr,0,corner_r)
cairo_curve_to(cr,0,0,0,0,corner_r,0)
cairo_close_path(cr)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
cairo_fill(cr)
end
function conky_main()
temp_watch()
disk_watch()
--iface_watch()
conky_ring_stats()
-- quand fond n?cessaire
-- conky_draw_bg()
end
Offline
3xOSC wrote:bspwm with bar:
http://i.imgur.com/5hSnGHu.pngAnd colors please
But with your case statement for the volume: why don't just put the "\f5" or "\f1" in a variable before and then just have n*) echo "$icon" "$var----\f0---" ?
my colors are from base-16: https://github.com/chriskempson/base16
good catch on the case statements, tanks
Offline
3xOSC wrote:bspwm with bar:
http://i.imgur.com/5hSnGHu.pngWhat mail notification is?
It is a script i wrote which I assigned as a cronjob and hooked up to dunst
Offline
Time to start joining in with the screenshot thread methinks.
Last edited by Slithery (2014-01-11 22:36:42)
Offline
Offline