You are not logged in.
Offline
Offline
Offline
Does somebody know if it is possible to do something like that
http://xmonad.org/xmonad-docs/xmonad-co … ation.html
with Awesome?
Offline
Offline
Pretty standard but different colors... still work to do..
awesome, conky, xterm, linm and vim running.
A tiling window manager simply manages your windows, not just letting you have em
:: Configs etc @GitHub
Offline
Pretty standard but different colors... still work to do..
awesome, conky, xterm, linm and vim running.
Would you mind to post your .vimrc?
Offline
nblock: np. guess your thinking about the colors..
Don't think I made more then a couple of changes to the 256-grayvim theme found at:
http://www.vim.org/scripts/script.php?script_id=3062
But here's mine
" Vim color file
"
" Some minor changes of Piotr Husiatyński <phusiatynski@gmail.com>
" 256-grayvim vim theme.
"
" Orignal theme is found at:
" http://www.vim.org/scripts/script.php?script_id=3062
"
set background=dark
set t_Co=256
let g:colors_name="256-grayvim"
let python_highlight_all = 1
let c_gnu = 1
hi Normal ctermfg=253 ctermbg=235 cterm=None
hi Cursor ctermfg=Red ctermbg=None cterm=None
hi SpecialKey ctermfg=27 ctermbg=None cterm=Bold
hi Directory ctermfg=76 ctermbg=None cterm=None
hi ErrorMsg ctermfg=124 ctermbg=White cterm=None
hi PreProc ctermfg=246 ctermbg=None cterm=Bold
hi Search ctermfg=160 ctermbg=232 cterm=Bold
hi Type ctermfg=75 ctermbg=None cterm=Bold
hi Statement ctermfg=75 ctermbg=None cterm=None
hi Comment ctermfg=244 ctermbg=None cterm=None
hi Identifier ctermfg=111 ctermbg=None cterm=Bold
hi DiffText ctermfg=88 ctermbg=250 cterm=None
hi Constant ctermfg=208 ctermbg=None cterm=None
hi Todo ctermfg=233 ctermbg=118 cterm=Bold
hi Error ctermfg=233 ctermbg=124 cterm=Bold
hi Special ctermfg=160 ctermbg=None cterm=Bold
hi Ignore ctermfg=220 ctermbg=None cterm=Bold
hi Underline ctermfg=244 ctermbg=None cterm=None
hi FoldColumn ctermfg=247 ctermbg=None cterm=Bold
hi StatusLineNC ctermfg=247 ctermbg=234 cterm=None
hi StatusLine ctermfg=247 ctermbg=233 cterm=Bold
hi VertSplit ctermfg=247 ctermbg=234 cterm=Bold
hi LineNr ctermfg=238 ctermbg=244 cterm=Bold
hi LineNr ctermfg=247 ctermbg=235 cterm=Bold
hi NonText ctermfg=27 ctermbg=None cterm=Bold
hi Pmenu ctermfg=White ctermbg=DarkGray cterm=None
hi PmenuSel ctermfg=None ctermbg=Gray cterm=Bold
hi PmenuSbar ctermfg=DarkGray ctermbg=DarkGray cterm=None
hi PmenuThumb ctermfg=Gray ctermbg=Gray cterm=None
"vim: sw=4
and my .vimrc
set nocompatible
set mouse-=a
set number
set novb
set cursorline
set encoding=utf-8
set termencoding=utf-8
set showmatch
set showmode
set showcmd
set magic
set nobackup
filetype plugin indent on
set expandtab
set shiftwidth=4
set tabstop=4
set smarttab
set autoindent
set smartindent
set smartcase
set nowrap
set nolazyredraw
set ttyfast
" Show tab whitespaces
set list
set listchars=tab:>.
set history=50
set noerrorbells
let mapleader = '.'
let g:mapleader = '.'
" Automatically set current directory to file's location
set autochdir
" Turn on hlsearch, put cursor on a word and type * and it highlights it everywhere
set hlsearch
" Some key mappings
map <F2> :nohlsearch<CR> " Turns of the current hlsearch
nnoremap <F3> :set invpaste paste?<CR> " Toggle paste/nopaste
set pastetoggle=<F3>
map <F12> <Esc>:NERDTreeToggle<CR> " Toggles NERDTree filebrowser
set laststatus=2
set ruler
set statusline=%<%F\ %h%m%r%=[TYPE=%Y\ %{&ff}]\ %=%{\"[\".(&fenc==\"\"?&enc:&fenc).((exists(\"+bomb\")\ &&\ &bomb)?\",B\":\"\").\"]\ \"}%k\ %-14.(%l/%L,%c%V%)\ %P
syntax on
set t_Co=256
colorscheme 256-grayvim
au BufNewFile,BufRead *conkyrc set filetype=conkyrc
" perl style # commenting
autocmd FileType php,yaml,sh noremap <F5> :s/\v^(\s*)/\1# <CR>
autocmd FileType php,yaml,sh noremap <F6> :s/\v^(\s*)# \1/ <CR>
" C style // commenting
autocmd FileType c,cpp,php noremap <F5> :s+\v^(\s*)+\1//+ <CR>
autocmd FileType c,cpp,php noremap <F6> :s+\v^(\s*)//+\1+ <CR>
" vim commenting
autocmd FileType vim noremap <F5> :s/\v^(\s*)/\1" / <CR>
autocmd FileType vim noremap <F6> :s/\v^(\s*)" /\1/ <CR>
" lua style -- commenting
" autocmd FileType lua noremap <F5> :s/\v^(\s*)/\1-- / <CR>
" autocmd FileType lua noremap <F6> :s/\v^(\s*)-- /\1/ <CR>
" autocmd BufRead *.lua setlocal makeprg=lua\ %
A tiling window manager simply manages your windows, not just letting you have em
:: Configs etc @GitHub
Offline
thx! i was particularly interested in your status line…
Offline
Mine is quite similar to the default style but with a little rebranding. I'm planning to do away with Conky as soon as I find a way to get all that info on demand without having to minimise everything.
Clean:
http://i.imgur.com/OR0u9.png
Dirty:
http://i.imgur.com/2iHAX.png
Second try...
Last edited by bunburya (2011-02-24 02:08:05)
Offline
info on demand without having to minimise everything.
Use awful.tooltip tooltips. They will close when you move away the pointer.
You need to install an RTFM interface.
Offline
http://ompldr.org/tN2Rvcw http://ompldr.org/tN2RvdA
Made this a few days back. Still using it.
Do you mind sharing your configs? ncmpcpp, Xdefaults, and irssi.conf especially interesting :3
Nice font too, doesn't look awful in bold!
Offline
If i would install awesome i should do it from pacman(pacman -s awesome)or from AUR(awesome-git),there some difference between that procedures?
Offline
Awesome is not in the official repos - only AUR.
It is straightforward to install https://wiki.archlinux.org/index.php/AU … g_packages
Offline
Awesome is not in the official repos - only AUR.
It is straightforward to install https://wiki.archlinux.org/index.php/AU … g_packages
thx so i'll install it from AUR
Offline
Awesome is not in the official repos - only AUR.
It is straightforward to install https://wiki.archlinux.org/index.php/AU … g_packages
Worth pointing out it's also in the archlinuxfr repo.
Offline
here is mine
http://ompldr.org/vN2poYg
Offline
jasonwryan wrote:Awesome is not in the official repos - only AUR.
It is straightforward to install https://wiki.archlinux.org/index.php/AU … g_packages
Worth pointing out it's also in the archlinuxfr repo.
so it's the same thing from aur or pacman
Offline
bunburya wrote:jasonwryan wrote:Awesome is not in the official repos - only AUR.
It is straightforward to install https://wiki.archlinux.org/index.php/AU … g_packages
Worth pointing out it's also in the archlinuxfr repo.
so it's the same thing from aur or pacman
Yes, but if you want to download via pacman you have to add archlinuxfr to your repositories.
Offline
info on demand without having to minimise everything.
Use awful.tooltip tooltips. They will close when you move away the pointer.
Thanks for the suggestion, I'll check it out!
Offline
Could you post your conky (bottom-right of clean) please?
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Here
~/.conky/rc
background no
override_utf8_locale no
use_xft yes
xftfont cure:size=8
text_buffer_size 2048
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_colour 191919
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 600 90
maximum_width 600
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color 909090
default_shade_color fed053
default_outline_color 7f8f9f
alignment br
gap_x 30
gap_y 50
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
color1 fff
border_inner_margin 5
border_outer_margin 5
own_window_argb_visual no
own_window_argb_value 200
lua_load ~/.conky/rings.lua
lua_draw_hook_pre main
TEXT
${voffset 3}${goto 55}CPU ${color1}${running_processes}/${processes}$color
${goto 55}${machine}-${freq_g}GHz
${voffset 1}${goto 31}${top cpu 1} ${color1}${top name 1}${color}
${goto 31}${top cpu 2} ${color1}${top name 2}${color}
${goto 31}${top cpu 3} ${color1}${top name 3}${color}
${voffset 4}${goto 55}${loadavg}
${goto 55}$kernel
${voffset -82}${goto 195}MEM $color1$memmax$color
${goto 195}Free: $color1$memfree$color
${voffset 1}${goto 170}${top_mem mem 1} ${color1}${top_mem name 1}${color}
${goto 170}${top_mem mem 2} ${color1}${top_mem name 2}${color}
${goto 170}${top_mem mem 3} ${color1}${top_mem name 3}${color}
${voffset 3}${goto 195}Cache: $color1${cached}$color
${goto 195}Buffers: $color1$buffers$color
${voffset -79}${alignr 310}/
${voffset 2}${alignr 285}${color1}${fs_size /}${color}
${voffset 1}${alignr 270}${color1}${fs_used_perc /}%$color ${fs_used /}
${voffset 1}${alignr 270}${color1}${fs_used_perc /media/Data}%$color ${fs_used /media/Data}${color}
${voffset 1}${alignr 270}DATA ${color1}${fs_size /media/Data}${color}
${voffset -41}${goto 358}Alb: ${color1}${mpd_album}$color
${goto 357}${mpd_bar 5}
${alignr}${color1}$mpd_elapsed$color - $mpd_length
${voffset 20}${font monospace:size=8:bold}${alignr}\# ! A R C H L I N U X ${font}
~/.conky/rings.lua
--[[
Ring Meters by londonali1010 (2009)
This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
lua_load ~/scripts/rings-v1.2.1.lua
lua_draw_hook_pre ring_stats
]]
-- Background settings
corner_r=20
main_bg_colour=0x060606
main_bg_alpha=0.8
-- Ring color settings
ring_background_color = 0x000000
ring_background_alpha = 0.6
ring_foreground_color = 0x909090
ring_foreground_alpha = 1
-- Rings settings
settings_table = {
--[[ {
name='time',
arg='%S',
max=60,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color,
fg_alpha=ring_foreground_alpha,
x=580, y=75,
radius=55,
thickness=4,
start_angle=-58,
end_angle=58
},
{
name='time',
arg='%I.%M',
max=12,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color,
fg_alpha=ring_foreground_alpha,
x=580, y=75,
radius=55,
thickness=12,
start_angle=-178,
end_angle=-62
},
{
name='time',
arg='%M.%S',
max=60,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color,
fg_alpha=ring_foreground_alpha,
x=580, y=75,
radius=55,
thickness=8,
start_angle=62,
end_angle=178
},]]
{
name='cpu',
arg='cpu4',
max=100,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color,
fg_alpha=ring_foreground_alpha,
x=50, y=55,
radius=23,
thickness=3,
start_angle=-180,
end_angle=0
},
{
name='cpu',
arg='cpu3',
max=100,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color,
fg_alpha=ring_foreground_alpha,
x=50, y=55,
radius=27,
thickness=3,
start_angle=-180,
end_angle=0
},
{
name='cpu',
arg='cpu2',
max=100,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color,
fg_alpha=ring_foreground_alpha,
x=50, y=55,
radius=31,
thickness=3,
start_angle=-180,
end_angle=0
},
{
name='cpu',
arg='cpu1',
max=100,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color,
fg_alpha=ring_foreground_alpha,
x=50, y=55,
radius=35,
thickness=3,
start_angle=-180,
end_angle=0
},
{
name='memperc',
arg='',
max=100,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color,
fg_alpha=ring_foreground_alpha,
x=190, y=55,
radius=32,
thickness=10,
start_angle=-180,
end_angle=-0
},
{
name='fs_used_perc',
arg='/media/Data',
max=100,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color,
fg_alpha=ring_foreground_alpha,
g_alpha=ring_foreground_alpha,
x=329, y=55,
radius=32,
thickness=7,
start_angle=90,
end_angle=220
},
{
name='fs_used_perc',
arg='/',
max=100,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color,
fg_alpha=ring_foreground_alpha,
g_alpha=ring_foreground_alpha,
x=320, y=55,
radius=32,
thickness=7,
start_angle=-10,
end_angle=120
},
}
require 'cairo'
local function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
local 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
local 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>1 then
for i in pairs(settings_table) do
setup_rings(cr,settings_table[i])
end
end
cairo_destroy(cr)
end
--[[ This is a script made for draw a transaprent background for conky ]]
local 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)
local cr=cairo_create(cs)
-- local thick=2
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(main_bg_colour,main_bg_alpha))
--cairo_set_line_width(cr,thick)
--cairo_stroke(cr)
cairo_fill(cr)
cairo_destroy(cr)
end
function conky_main()
conky_draw_bg()
conky_ring_stats()
end
Offline
Could you share the wallpaper in your screenshot by any chance or guide me to a link where you found it? It looks rather relaxing in contrast to the multiple terminal windows that might normally cover it ;-)
Offline