You are not logged in.
@eightbitraptor I like your colors. Your .Xdefaults does not contain any color arguments. Did I miss something?
Most of my colours are just defaults. I just use the default vim theme with
:set background=dark
and ncmpcpp is standard out of the box stuff. The only small tweaking I've done is in my awesome theme (modified default but just made the taskbar background colours black) and in my bash prompt, which lives here https://github.com/eightbitraptor/dotfi … /prompt.sh
BOLD_BLUE="\[\033[00;34m\]"
BLUE="\[\033[00;34m\]"
YELLOW="\[\033[00;33m\]"
BOLD_CYAN="\[\033[01;36m\]"
CYAN="\[\033[00;36m\]"
LIGHT_RED="\[\033[01;31m\]"
WHITE='\[\033[0m\]'
export PROMPT_COMMAND='echo -ne "\033]0;${PWD}\007"'
export PS1="$LIGHT_RED\h: $CYAN\W $YELLOW\$(parse_git_branch)$WHITE ➤ "
export CLICOLOR=1
export LSCOLORS=gxFxCxDxBxegedabagacad
Offline
"Finally" i got my perfect archsome!-system (there are little things i have to fix, like the the googlecalendar-widget(work in progress))! my setup: vim w/ molokai-colors, ranger, urxvt, moc w/ vim-like keybindings, googlecalendarwidget w/ gcalcli-backend, pentadactyl, pidgin w/ otr and overall molokai-colors...
Last edited by flexo3001 (2012-05-31 12:01:00)
Fight war not wars, destroy power not people!
Offline
can u share some infos about this calendar ? does this widget communicate with googlecalendar?
Last edited by intrntbrn (2012-05-31 15:14:55)
Offline
can u share some infos about this calendar ? does this widget communicate with googlecalendar?
the widget is just a naughty notification (on mouse hover) which prints, with the function awful.util.pread(), the given output of gcalcli (it uses the python-gdata-api). i wrote a few lines to test it (see the screenshot and code); just the agenda-output without any formatting. if there is anyone with greater lua-skills and ideas..... a "native" widget would be nicer or at least more functionality like a offset to switch weeks, months ....my lua and pythonskills at zerolevel
local gcal = nil
function remove_gcal()
if gcal~= nil then
naughty.destroy(gcal)
gcal = nil
end
end
function add_gcal()
remove_gcal()
local gcalcinfo = awful.util.pread("gcalcli --user youruser --pw yourpw --24hr --nc agenda")
gcalcinfo = string.gsub(gcalcinfo, "%$(%w+)", "%1")
gcal = naughty.notify({
text = string.format('<span font_desc="%s">%s</span>', "terminus", gcalcinfo),
timeout = 0, hover_timeout = 0.5,
})
end
mywidget:add_signal("mouse::enter", function()
add_gcal()
end)
mywidget:add_signal("mouse::leave", remove_gcal)
in addition: it will be much more better with the use of the .gcalclirc
gcalcli github:
https://github.com/insanum/gcalcli
Last edited by flexo3001 (2012-05-31 16:02:39)
Fight war not wars, destroy power not people!
Offline
thanks for sharing. it works fine for me, but defining gmail acc data in rc.lua sucks iam trying to get the data from .netrc.
Offline
thanks for sharing. it works fine for me, but defining gmail acc data in rc.lua sucks iam trying to get the data from .netrc.
or just the .gcalclirc i have to configure it too
there are good options i have seen.
Last edited by flexo3001 (2012-05-31 16:28:12)
Fight war not wars, destroy power not people!
Offline
---------- google calendar
function string:split(sep)
local sep, fields = sep or " ", {}
local pattern = string.format("([^%s]+)", sep)
self:gsub(pattern, function(c) fields[#fields+1] = c
end)
return fields
end
function getgmail()
local netrc = io.open("/home/intrntbrn/.netrc", "r")
local gmailstr = netrc:read("*all")
netrc:close()
-- remove all unimportant strings
gmailstr = string.gsub(string.gsub(gmailstr, "machine mail.google.com login ", ""), "password ", "")
gmaildata = { }
-- token this string
gmaildata = gmailstr:split(" ")
guser = string.gsub(gmaildata[1], "\0", "")
gpw = string.gsub(gmaildata[2], "\n", "")
return nil
end
getgmail()
local gcal = nil
function remove_gcal()
if gcal~= nil then
naughty.destroy(gcal)
gcal = nil
end
end
function add_gcal()
if (guser and gpw) then
remove_gcal()
local gcalcinfo = awful.util.pread("gcalcli --user " .. guser .. " --pw " .. gpw .. " --24hr --nc agenda")
gcalcinfo = string.gsub(gcalcinfo, "%$(%w+)", "%1")
gcalcinfo = gcalcinfo:match( "(.-)%s*$") -- removed trailing whitespace
today = os.date("%A, %d. %B") .. "\n"
gcal = naughty.notify({
title = today,
text = gcalcinfo,
timeout = 0,
fg = white,
bg = blue,
screen = mouse.screen,
ontop = true,
border_color = black,
})
end
end
mytextclock:add_signal("mouse::enter", add_gcal)
mytextclock:add_signal("mouse::leave", remove_gcal)
it isnt very elegant, but works for me. the gmail line (machine mail.google.com bla bla) must be at first line at .netrc.
if your interested in getting notified (via naughy) on emails, check out my github. i also edited vicious/gmail.lua to store all subjects of unread mails. this combination of both really rocks. thank you
Last edited by intrntbrn (2012-06-01 16:58:46)
Offline
So I been a tweakin!
Single monitor only this time but It's starting to turn into more of what I am after.
Fake Dirty:
http://dl.dropbox.com/u/5686945/Screens … 66x768.png
Clean:
http://dl.dropbox.com/u/5686945/Screens … 66x768.png
Last edited by eightbitraptor (2012-05-31 21:40:54)
Offline
Offline
Offline
frank.rehfeld wrote:What have you done with firefox. It looks great! And what is this bar on the left?
Two major extensions:
Pentadactyl - vim-type keybinds, bar on the bottom, all kinds of neat stuff. Try it and seeTree Style Tab - hierarchical tab bar; I have mine set to the left side, narrow to only show icons unless hovered by the mouse.
Long time Pentadactyl user, and this just blew my mind. I'm a slut for maximizing my screen real estate, and this tag setup is amazing. Thanks for the great find.
arch.kde | arch.i3
Offline
Oh rite, I forgot one other fairly neat thing my config does: I generally don't want to hit swap or oom but I sometimes do things that very quickly escalate to that point, so I have awesome set up to automatically spawn a naughty popup and make the RAM status indicator much more eye catching; there's a warning threshold and a BG Red FG White critical threshold.
Here's a shot of the warning autopoup:
Offline
@intrntbrn what is in the window on the right side of the music player?
:wq
Offline
its that script:
#!/bin/sh
declare -i f=75 s=13 r=2000 t=0 c=1 n=0 l=0
declare -ir w=$(tput cols) h=$(tput lines)
declare -i x=$((w/2)) y=$((h/2))
declare -ar v=( [00]="\x83" [01]="\x8f" [03]="\x93"
[10]="\x9b" [11]="\x81" [12]="\x93"
[21]="\x97" [22]="\x83" [23]="\x9b"
[30]="\x97" [32]="\x8f" [33]="\x81" )
OPTIND=1
while getopts "f:s:r:h" arg; do
case $arg in
f) ((f=($OPTARG>19 && $OPTARG<101)?$OPTARG:$f));;
s) ((s=($OPTARG>4 && $OPTARG<16 )?$OPTARG:$s));;
r) ((r=($OPTARG>0)?$OPTARG:$r));;
h) echo -e "Usage: pipes [OPTION]..."
echo -e "Animated pipes terminal screensaver.\n"
echo -e " -f [20-100]\tframerate (D=75)."
echo -e " -s [5-15]\tprobability of a straight fitting (D=13)."
echo -e " -r LIMIT\treset after x characters (D=2000)."
echo -e " -h\t\thelp (this screen).\n"
exit 0;;
esac
done
tput smcup
tput reset
tput civis
while ! read -t0.0$((1000/$f)) -n1; do
# New position:
(($l%2)) && ((x+=($l==1)?1:-1))
((!($l%2))) && ((y+=($l==2)?1:-1))
# Loop on edges (change color on loop):
((c=($x>$w || $x<0 || $y>$h || $y<0)?($RANDOM%7-1):$c))
((x=($x>$w)?0:(($x<0)?$w:$x)))
((y=($y>$h)?0:(($y<0)?$h:$y)))
# New random direction:
((n=$RANDOM%$s-1))
((n=($n>1||$n==0)?$l:$l+$n))
((n=($n<0)?3:$n%4))
# Print:
tput cup $y $x
echo -ne "\033[1;3${c}m\xe2\x94${v[$l$n]}"
(($t>$r)) && tput reset && tput civis && t=0 || ((t++))
l=$n
done
tput rmcup
Last edited by intrntbrn (2012-06-03 11:24:22)
Offline
@intrntbrn very nice thanks. you wrote the code?
:wq
Offline
nope, found it here.
but i just wrote this:
function getBrowserBookmarks()
local dwbbookmarks = io.open("/home/intrntbrn/.config/dwb/default/bookmarks")
local bm = dwbbookmarks:read("*all")
dwbbookmarks:close()
local bmfield = { }
bmfield = bm:split("\n")
local mytable = { }
mymenu = { }
for i,v in ipairs(bmfield) do
table.insert(mytable, bmfield[i]:split(" "))
mytable[i][2], mytable[i][1] = bmfield[i]:match("(.-)%s+(.*)")
table.insert(mymenu, { mytable[i][1], function () sexec(browser .. mytable[i][2]) end })
end
return mymenu
end
function getGtkBookmarks()
local gtkbookmarks = io.open("/home/intrntbrn/.gtk-bookmarks")
local bm = gtkbookmarks:read("*all")
gtkbookmarks:close()
local bmfield = { }
bmfield = bm:split("\n")
local mytable = { }
mygtkmenu = { }
for i,v in ipairs(bmfield) do
table.insert(mytable, bmfield[i]:split(" "))
mytable[i][2], mytable[i][1] = bmfield[i]:match("(.-)%s+(.*)")
string.gsub(mytable[i][2], "file://", "")
table.insert(mygtkmenu, { mytable[i][1], function () sexec(fm .. mytable[i][2]) end })
end
return mygtkmenu
end
function showGtkBookmarkMenu(menu, args)
if not menu then
menu = {}
end
menu.items = getGtkBookmarks()
local m = awful.menu.new(menu)
m:show(args)
return m
end
function showBrowserBookmarkMenu(menu, args)
if not menu then
menu = {}
end
menu.items = getBrowserBookmarks()
local m = awful.menu.new(menu)
m:show(args)
return m
end
function string:split(sep)
local sep, fields = sep or " ", {}
local pattern = string.format("([^%s]+)", sep)
self:gsub(pattern, function(c) fields[#fields+1] = c
end)
return fields
end
this reads the bookmarks from the best browser around here (dwb) and shows a menu with it. you can also do this with your gtk-bookmarks, so can u just bookmark a folder (in thunar, etc) and its in your awesome menu // gtk-code added
Last edited by intrntbrn (2012-06-03 12:29:20)
Offline
My configuration:
Floating only layout
Few keyboard shortcuts
No menus
Ontop clients are not shown in taskbar
Clock, volume, battery and wi-fi widgets
dmenu with xft and height patches from AUR
https://github.com/ecmel/awesome.git
Last edited by ecmel (2012-06-21 12:56:13)
Offline
Almost the same configuration:
http://s13.postimage.org/bqu259o2r/2012_06_06_002454_1600x900_scrot.jpg
Any chance you could upload this to your deviant art collection ? I can't seem to locate it Looks very good!
Offline
Almost the same configuration:
http://s13.postimage.org/bqu259o2r/2012_06_06_002454_1600x900_scrot.jpg
Could I see your mutt config, please? I love the way it looks!
Offline
TheImmortalPhoenix wrote:Almost the same configuration:
http://s13.postimage.org/bqu259o2r/2012_06_06_002454_1600x900_scrot.jpg
Any chance you could upload this to your deviant art collection ? I can't seem to locate it Looks very good!
I just have a similar shot in my gallery...tell me what you want and i'll provide it to you
@ ibrunton: here you go:
muttrc
set charset = UTF8
set header_cache =~/.mutt/cache/headers
set message_cachedir =~/.mutt/cache/bodies
set certificate_file =~/.mutt/certificates
set mailcap_path = $HOME/.mutt/mailcap
mailboxes =/INBOX
folder-hook 'gmail1' 'source ~/.mutt/accounts/gmail1'
folder-hook 'gmail2' 'source ~/.mutt/accounts/gmail2'
folder-hook 'yahoo' 'source ~/.mutt/accounts/yahoo'
# switch to default account on startup
source ~/.mutt/accounts/gmail1
macro index <f2> '<sync-mailbox><enter-command>source ~/.mutt/accounts/gmail1<enter><change-folder>!<enter>'
macro index <f3> '<sync-mailbox><enter-command>source ~/.mutt/accounts/gmail2<enter><change-folder>!<enter>'
macro index <f4> '<sync-mailbox><enter-command>source ~/.mutt/accounts/yahoo<enter><change-folder>!<enter>'
account-hook gmail1 'set imap_user=**** imap_pass=*****'
account-hook gmail2 'set imap_user=**** imap_pass=*****'
account-hook yahoo 'set imap_user=***** imap_pass=*****'
bind editor <space> noop
macro index gi "<change-folder>=INBOX<enter>" "Go to inbox"
macro index gs "<change-folder>=[Gmail]/sent<enter>" "Go to Sent Mail"
set move = no #Stop asking to "move read messages to mbox"!
set imap_keepalive = 300
set mail_check = 120
# View
set date_format="%d %b %y ◦ %H:%M"
set index_format="%Z ◦ %{%d %b %y}, %{%H:%M} │ %-32.32L ◦ (%4c) │ %s"
set nostrict_threads # Lets have some fuzzy threading.
set pager_context=2 # Paging down a message leaves 5 lines of overlap, so you don't get lost
set pager_index_lines=8 # Show 8 messages on either side of the message I'm reading.
set pager_stop # Don't skip msgs on next page.
set sort=threads # Sort by threads
set sort_aux=date-received # Sort threads by date received.
# URL & HTML
macro index,pager \cb "<enter-command> set my_pdsave=\$pipe_decode<enter>\
<enter-command> unset pipe_decode<enter>\
<pipe-message>extract_url<enter>\
<enter-command> set pipe_decode=\$my_pdsave<enter>" "get URLs"
alternative_order text/enriched text/plain text/html
auto_view text/html
# Header stuff
ignore "Authentication-Results:"
ignore "DomainKey-Signature:"
ignore "DKIM-Signature:"
hdr_order Date From To Cc
ignore *
unignore from: date subject to cc
unignore x-mailing-list: posted-to:
unignore x-mailer:
# For better looks
set markers=no # don't put '+' at the beginning of wrapped lines
set pager_index_lines= 10 # how large is the index window?
set sort = 'threads'
set sort_aux = 'last-date-received'
# My Editor
set editor='vim + -c "set textwidth=72" -c "set wrap" -c "set nocp" -c "?^$"'
set include = yes # Include Message In Replies
set fcc_attach # Forward Attachments
unset reply_self # Don't Include Myself When Replying To A Group
set attribution="On %d, %n wrote:"
set forward_format="Fwd: %s"
set indent_str="> " # Indented Text Prefaced By This String.
source ~/.mutt/dark.color # Colors
account config example
set from = "example@gmail.com"
set realname = "Your Name"
set hostname = "What you want"
set imap_user = "example@gmail.com"
set imap_pass = "Pass"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set record="imaps://imap.gmail.com/[Gmail]/sent"
set smtp_url = "smtp://example@smtp.gmail.com:587/"
set smtp_pass = "Pass"
set ssl_force_tls = yes
colors
# -[ DEFAULT COLOR DEFINITIONS ]-----------------------------------------------
color hdrdefault yellow default
color quoted cyan default
color quoted1 magenta default
color quoted2 yellow default
color quoted3 red default
color quoted4 cyan default
color signature red default
color indicator default black
color attachment black default
color error yellow default
color message white default
color search white default
color status yellow default
color tree yellow default
color normal white default
color tilde black default
color bold white default
color markers red default
# -[ COLOUR DEFINITIONS WHEN ON A MONO SCREEN ]--------------------------------
mono bold bold
mono underline underline
mono indicator reverse
# -[ COLOURS FOR ITEMS IN THE READER ]-----------------------------------------
color header red default "^X-Junked-Because:"
mono header bold "^(From|Subject|X-Junked-Because):"
color header white default '^(status|lines|date|received|sender|references):'
color header magenta default '^from:'
color header white default '^(to|cc|bcc):'
color header magenta default '^(subject):.*$'
# -[ COLOURS FOR ITEMS IN THE INDEX ]------------------------------------------
# Regular new messages
color index cyan default "~N !~T !~F !~p !~P"
# Regular tagged messages
color index red default "~T !~F !~p !~P"
# Regular flagged messages
color index magenta default "~F !~p !~P"
# Messages to me
color index white default "~p !~N !~T !~F !~P"
color index brightcyan default "~p ~N !~T !~F !~P"
color index white default "~p ~T !~F !~P"
color index white default "~p ~F !~P"
# Messages from me
color index white default "~P !~N !~T !~F"
color index white default "~P ~N !~T !~F"
color index white default "~P ~T !~F"
color index white default "~P ~F"
# Messages which mention my name in the body
color index yellow default "~b \"phil(_g|\!| gregory| gold)|pgregory\" !~N !~T !~F !~p !~P"
color index yellow default "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~N !~T !~F !~p !~P"
color index yellow default "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~T !~F !~p !~P"
color index yellow default "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~F !~p !~P"
# Messages which are in reference to my mails
color index magenta default "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" !~N !~T !~F !~p !~P"
color index magenta default "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~N !~T !~F !~p !~P"
color index magenta default "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~T !~F !~p !~P"
color index magenta default "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~F !~p !~P"
# Messages to root, etc.
color index cyan default "~C \"(root|postmaster|abuse|mailer-daemon)@\" !~N !~P !~p"
color index cyan default "~C \"(root|postmaster|abuse|mailer-daemon)@\" ~N !~P !~p"
# Big messages
color index cyan default "!~N ~z 102400-"
color index cyan default "~T !~F !~p !~P ~z 102400-"
color index cyan default "~N ~z 102400-"
# Deleted messages
color index red default "!~N ~D"
color index red default "~N ~D"
# -[ HIGHLIGHTS INSIDE THE BODY OF A MESSAGE. ]--------------------------------
color body brightmagenta default "(http|https|ftp|news|telnet|finger)://[^ \">\t\n]*"
color body brightgreen default "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
color body brightyellow default "news:[^ \">\t\n]*"
mono body bold "(http|https|ftp|news|telnet|finger)://[^ \">\t\n]*"
mono body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
mono body bold "news:[^ \">\t\n]*"
# -[ EMAIL ADDRESSES ]---------------------------------------------------------
color body brightblue default "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
mono body bold "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
# -[ VARIOUS SMILIES AND THE LIKE ]--------------------------------------------
color body brightgreen default "<[Gg]>" # <g>
color body brightgreen default "<[Bb][Gg]>" # <bg>
color body brightgreen default " [;:]-*[)>(<|]" # :-) etc...
color body brightgreen default "(^|[[:space:]])\\*[^[:space:]]+\\*([[:space:]]|$)" # *Bold* text.
color body brightgreen default "(^|[[:space:]])_[^[:space:]]+_([[:space:]]|$)" # _Underlined_ text.
color body brightgreen default "(^|[[:space:]])/[^[:space:]]+/([[:space:]]|$)" # /Italic/ text.
Xdefaults
urxvt*colorMode: on
urxvt*cursorBlink: true
urxvt*cursorUnderline: false
!urxvt*cursorColor: #ff6233
urxvt*cursorColor: #8ebdde
urxvt*underlineColor: #8ebdde
urxvt*highlightColor: #8ebdde
urxvt*highlightTextColor: #070707
*background: #000000
*foreground: #ffffff
!Black
*color0: #343639
*color8: #404040
!Red
*color1: #2f4d80
*color9: #7791e0
!Green
*color2: #424242
*color10: #828a8c
!Yellow
*color3: #6b8ba3
*color11: #8ebdde
!Blue
*color4: #273a87
*color12: #3955c4
!Magenta
*color5: #74637d
*color13: #927d9e
!Cyan
*color6: #556c85
*color14: #6e98b8
!White
*color7: #b2b2b2
*color15: #bdbdbd
urxvt*scrollBar: false
urxvt*borderless: true
urxvt*geometry: 103x20
urxvt*saveLines: 1000000000
urxvt*buffered: true
Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.autohint: false
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
urxvt*font: xft:tamsyn:pixelsize=13
URxvt*perl-lib: /usr/lib/urxvt/perl
URxvt*perl-ext-common: default,matcher,keyboard-select
URxvt.keysym.M-Escape: perl:keyboard-select:activate
URxvt.keysym.M-s: perl:keyboard-select:search
urxvt*urlLauncher: /usr/bin/chromium
urxvt.underlineURLs: false
urxvt*matcher.button: 1
URxvt*matcher.pattern.1: \\bwww\\.[\\w-]\\.[\\w./?&@#-]*[\\w/-]
URxvt*matcher.rend.0: fg15
Xcursor.theme: Adwaita
Xcursor.size: 16
Offline
jnor wrote:TheImmortalPhoenix wrote:Almost the same configuration:
http://s13.postimage.org/bqu259o2r/2012_06_06_002454_1600x900_scrot.jpg
Any chance you could upload this to your deviant art collection ? I can't seem to locate it Looks very good!
I just have a similar shot in my gallery...tell me what you want and i'll provide it to you
Your screenshot looks like this: http://theimmortalphoenix.deviantart.co … /#/d4wgrp0
Except widgets are change around quite a bit
Offline
Yes, indeed...however this is my new rc.lua, now i use dmenu, dnetcfg and dpm for menu, connection and shutdown...i like them so far...
Offline