You are not logged in.
Hi, what's that appointment app your using, I need something to get organized
coda, looks like calcurse. good app, just wish i could stop the inverted colors on month/weekday names
Yeah, it's calcurse
Registered Linux user: #424635
Offline
dziq wrote:Jaejae wrote:dwm/thunar/rxvt-unicode/ncmpcpp
Very nice!
How did you set up this battery grap on your statusbar. Is that dzen2 + conky-cli or something else?It's a shell script, albeit a badly written one.
#!/bin/sh rembat=$(acpi | grep -o "[0-9]*%" | sed 's/%//') bars=$(expr $rembat / 10) case $bars in 1) bar='[|---------]' ;; 2) bar='[||--------]' ;; 3) bar='[|||-------]' ;; 4) bar='[||||------]' ;; 5) bar='[|||||-----]' ;; 6) bar='[||||||----]' ;; 7) bar='[|||||||---]' ;; 8) bar='[||||||||--]' ;; 9) bar='[|||||||||-]' ;; 10) bar='[||||||||||]' ;; *) bar='[You got a magic battery boy?]' esac
I have, IMO, improved your script. For some reason your sed syntax didn't work on my machine so I've edited it, as well as adding some more functionality to it. Basically (very) my script, replaces Conky's built in "battery" script.
#!/bin/sh
#battery charge level in percentage
rembat=$(acpi | grep -o "[0-9]*%" | sed s/%//)
#battery percentage divided by 10, used for bars
bars=$(expr $rembat / 10)
#gets battery's current charging status
chrg=$(acpi | grep -E -o "Discharging|Charging")
case $bars in
1)
bar='[/---------]~'
;;
2)
bar='[//--------]~'
;;
3)
bar='[///-------]~'
;;
4)
bar='[////------]~'
;;
5)
bar='[/////-----]~'
;;
6)
bar='[//////----]~'
;;
7)
bar='[///////---]~'
;;
8)
bar='[////////--]~'
;;
9)
bar='[/////////-]~'
;;
10)
bar='[//////////]~'
;;
*)
bar='[∞∞∞∞∞∞∞∞∞∞]~'
esac
#what gets printed in conky. You can edit this to whatever format you wish. Variables are: $chrg, $rembat, and $bar
echo $rembat% $bar
This isn't Ubuntu...
Offline
JaeJae and Alex,
thanks for the script i'll be using it with my eee
just an FYI though, my vim told me that with #!/bin/sh you need to switch out $(*) for `*`
again, thanks for the uber-KISS battery-mon
//github/
Offline
@coda: What gtk theme and where can I get the vimperator theme?
urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand
Offline
coda, looks like calcurse. good app, just wish i could stop the inverted colors on month/weekday names
You can use the following PKGBUILD:
pkgname=calcurse
pkgver=2.5
pkgrel=1
pkgdesc="Calcurse is a text-based personal organizer"
arch=('i686' 'x86_64')
url="http://culot.org/calcurse/"
license=('GPL2')
depends=('ncurses')
source=(ftp://ftp2.culot.org/culot/$pkgname-$pkgver.tar.gz calcurse.diff)
md5sums=('7868f67c49b426e3ab4a4d34ce16ef1d'
'3daf3e377bc50a5918bf1234fd30999e')
build() {
cd $srcdir
patch -p0 < ../calcurse.diff
cd $pkgname-$pkgver
./configure --prefix=/usr --mandir=/usr/share/man
make || return 1
make DESTDIR=$pkgdir install || return 1
}
calcurse.diff:
diff -ur calcurse-2.5/src/custom.c calcurse-2.5.diff/src/custom.c
--- calcurse-2.5/src/custom.c 2009-01-24 15:44:25.000000000 +0100
+++ calcurse-2.5.diff/src/custom.c 2009-06-05 00:55:45.000000000 +0200
@@ -167,7 +167,7 @@
custom_init_attr (void)
{
attr.color[ATTR_HIGHEST] = COLOR_PAIR (COLR_CUSTOM);
- attr.color[ATTR_HIGH] = COLOR_PAIR (COLR_HIGH);
+ attr.color[ATTR_HIGH] = COLOR_PAIR (COLR_CUSTOM);
attr.color[ATTR_MIDDLE] = COLOR_PAIR (COLR_RED);
attr.color[ATTR_LOW] = COLOR_PAIR (COLR_CYAN);
attr.color[ATTR_LOWEST] = COLOR_PAIR (COLR_YELLOW);
Offline
@dangerousHobo
http://th03.deviantart.com/fs49/300W/i/ … obar10.png
My first time with Xmonad. Don't feel like going back to wmii anytime soon...
Wallpaper please.
Last edited by M177ER (2009-06-05 02:41:27)
Offline
A simple xfce install. I must admit, I just installed it and I'm already liking it better than Gnome. Anyways, the file sizes are kinda big 'cause of my resolution; just a warning.
You can get the wallpaper at Zixpk. The theme is shiki-colors and the icons are from gnome-colors.
Offline
@dangerousHobo
dangerousHobo wrote:http://th03.deviantart.com/fs49/300W/i/ … obar10.png
My first time with Xmonad. Don't feel like going back to wmii anytime soon...
Wallpaper please.
From little-miss-megan at deviantart
http://little-miss-megan.deviantart.com … -123460247
Registered Linux user: #424635
Offline
You mind telling me how? It's always bothered me
Set the value of boldFont in .Xdefaults
urxvt.font: xft:proggycleantt:antialias=false:pixelsize=16
urxvt.boldFont: xft:proggycleantt:antialias=false:pixelsize=16
Last edited by r6 (2009-06-05 04:31:15)
Offline
Jaejae wrote:dziq wrote:Very nice!
How did you set up this battery grap on your statusbar. Is that dzen2 + conky-cli or something else?It's a shell script, albeit a badly written one.
#!/bin/sh rembat=$(acpi | grep -o "[0-9]*%" | sed 's/%//') bars=$(expr $rembat / 10) case $bars in 1) bar='[|---------]' ;; 2) bar='[||--------]' ;; 3) bar='[|||-------]' ;; 4) bar='[||||------]' ;; 5) bar='[|||||-----]' ;; 6) bar='[||||||----]' ;; 7) bar='[|||||||---]' ;; 8) bar='[||||||||--]' ;; 9) bar='[|||||||||-]' ;; 10) bar='[||||||||||]' ;; *) bar='[You got a magic battery boy?]' esac
I have, IMO, improved your script. For some reason your sed syntax didn't work on my machine so I've edited it, as well as adding some more functionality to it. Basically (very) my script, replaces Conky's built in "battery" script.
#!/bin/sh #battery charge level in percentage rembat=$(acpi | grep -o "[0-9]*%" | sed s/%//) #battery percentage divided by 10, used for bars bars=$(expr $rembat / 10) #gets battery's current charging status chrg=$(acpi | grep -E -o "Discharging|Charging") case $bars in 1) bar='[/---------]~' ;; 2) bar='[//--------]~' ;; 3) bar='[///-------]~' ;; 4) bar='[////------]~' ;; 5) bar='[/////-----]~' ;; 6) bar='[//////----]~' ;; 7) bar='[///////---]~' ;; 8) bar='[////////--]~' ;; 9) bar='[/////////-]~' ;; 10) bar='[//////////]~' ;; *) bar='[∞∞∞∞∞∞∞∞∞∞]~' esac #what gets printed in conky. You can edit this to whatever format you wish. Variables are: $chrg, $rembat, and $bar echo $rembat% $bar
If I'm reading your code right, you haven't taken the "Full" battery status into account, nor the "Unknown" status.
This is my script to set the dwm status bar, my battery meter script makes more sense when its with this
#!/bin/sh
while true
do
date=$(date +"%d %a %H:%M")
source /home/jack/bin/bm
bstat=$(acpi | awk '{print $3}' | sed 's/,//')
batt="$bstat $rembat% $bar"
stat="| $batt | $date |"
xsetroot -name "$stat"
sleep 1
done
Offline
@jaejae
Yes you are correct. I did this script while I had some free time at work. I'll look more into it tomorrow and get back to you guys.
This isn't Ubuntu...
Offline
Even a broken clock is right twice a day.
Diplomacy without force is like music without instruments.
Offline
Tema xfwm4:axiomd
Tema gtk: NOX
Tema icone: Mashup (MaXo Edition)
Last edited by ugaciaka (2009-06-05 12:26:52)
I have never bought on ebay, the macbook I do not like, I do not need facebook or myspace or secondlife
I am not a nerd or lamer or troll or geek or hacker or cracker
and I have never voted to elect berlusconi
Offline
@coda: What gtk theme and where can I get the vimperator theme?
OK the gtk theme is gommapiumalooks with some color tweaks & elementary_2.0 firefox icons.
To get vimperator looking like that use this theme file which is basically the default theme with some color tweaks by me (still more to do) and CSS from wa_sweets by
retlet (I think) >>>
" ==Vimperator_Color_Scheme==
" name: coda-slh-final
" ==Defult_Colorscheme_Settings==
hi Bell border: 0 none; background-color: black;
hi Boolean color: #6D17CF;
hi CmdLine font-family: terminus; padding: 1px;
hi CmdOutput white-space: pre;
"hi CompDesc color: gray; width: 50%;
hi CompDesc color: #000000; width: 100%;
"hi CompGroup
"hi CompGroup:not(:first-of-type) margin-top: .5em;
hi CompIcon width: 16px; min-width: 16px; display: inline-block; margin-right: .5ex;
hi CompIcon>img max-width: 16px; max-height: 16px; vertical-align: middle;
"hi CompItem
"hi CompItem>* padding: 0 .5ex;
"hi CompItem[selected] background: #CCF8DF;
"hi CompItem[selected] background: #1793D1;
hi CompItem[selected] background: #00B1ED;
hi CompLess text-align: center; height: 0; line-height: .5ex; padding-top: 1ex;
hi CompLess::after content: "\2303" /* Unicode up arrowhead */
hi CompMore text-align: center; height: .5ex; line-height: .5ex; margin-bottom: -.5ex;
hi CompMore::after content: "\2304" /* Unicode down arrowhead */
hi CompMsg font-style: bold; margin-left: 16px;
"hi CompMsg font-style: italic; margin-left: 16px;
hi CompResult width: 45%; overfloaw: hidden;
hi CompTitle color: #2E2D2B; background: #2E2D2B; font-weight: bold;
hi CompTitle>* padding: 0 .5ex;
hi ErrorMsg color: #000000; background: #00B1ED; font-weight: bold;
hi Filter font-weight: bold; color: black; background-color: #FF0066;
"hi Filter font-weight: bold;
hi FrameIndicator background-color: #6D17CF; opacity: 0.5; z-index: 999; position: fixed; top: 0; bottom: 0; left: 0; right: 0;
hi Function color: #4017CF;
hi Gradient height: 1px; margin-bottom: -1px; margin-top: -1px;
hi GradientLeft background-color: #00B1ED;
hi GradientRight background-color: #cccccc;
hi Hint font-family: snap bold; font-size: 10px; font-weight: bold; color: black; background-color: #FF0066; border-color: ButtonShadow; border-width: 0px; border-style: solid; padding 0px 1px 0px 1px;
hi Hint::after content: attr(number);
hi HintActive background: white; color: black;
hi HintElem background-color: black; color: #FF0066;
"hi HintElem background-color: white; color: black;
"hi HintElem background-color: yellow; color: black;
hi HintImage opacity: .5;
hi Indicator color: black;
hi InfoMsg color: black; background: #cccccc;
hi LineNr color: #6D17CF; background: #cccccc;
hi Message black-space: normal; min-width: 100%; padding-left: 2em; text-indent: -2em; display: block;
hi ModeMsg color: black; background: #cccccc;
hi MoreMsg color: black; background: #cccccc;
hi NonText color: black; min-height: 16px; padding-left: 2px;
hi Normal color: black; background: #cccccc;
hi Null color: #1793D1;
hi Number color: #1793D1;
hi Object color: #6D17CF;
hi Preview color: #6D17CF;
hi Question color: black; background: #1793D1; font-weight: bold;
hi Search font-size: inherit; padding: 0; color: black; background-color: #1793D1; padding: 0;
"hi Search font-size: inherit; padding: 0; color: black; background-color: #00B1ED; padding: 0;
hi StatusLine color: #cccccc; background: #555753;
"hi StatusLineBroken color: black; background: #FF6060; /* light-red */
"hi StatusLineSecure color: white; background: #4C5844; /* dark-green */
"hi StatusLineExtended color: white; background: #878443; /* gold */
hi StatusLineBroken color: black; background: #00504F; /* light-red */
"hi StatusLineSecure color: black; background: #cccccc; /* ? */
hi StatusLineSecure color: #D59517; background: #555753; /* ? */
"hi StatusLineSecure color: #1793D1; background: #555753; /* ? */
hi StatusLineExtended color: #1793D1; background: #cccccc; /* ? */
"hi String color: #E1EBB7;
hi String color: black;
"hi TabClose
"hi TabIcon
"hi TabIconNumber font-weight: normal; color: black; text-align: center; text-shadow: black -1px 0 1px, black 0 1px 1px, black 1px 0 1px, black 0 -1px 1px;
"hi TabNumber font-weight: bold; margin: 0; padding-right: .3ex;
"hi TabText
hi Tag color: #1793D1;
hi Title color: #1793D1; background: #cccccc; font-weight: bold;
hi URL text-decoration: none; color: #E1EBB7; background: inherit;
hi URL:hover text-decoration: underline; cursor: pointer;
hi WarningMsg color: #8D17CF; background: #cccccc;
" CSS {{{
style -name tab chrome://* <<EOM
#content { background-color: #ccc; } /* tabbar */
.tabs-alltabs-button { padding: 2px 0 !important; }
.tabs-container > stack { display: none; } /* remove tab selection menu */
/*.tabs-container .box-inherit.scrollbox-innerbox { border-bottom: 1px solid #404040; } /* tab bar position: top */
.tabs-container scrollbox {
background-color: #adadad;
/* border-bottom: 1px solid #333; */
}
.tabbrowser-tab {
-moz-apperance: none !important;
margin: 0 !important;
padding: 0 !important;
-moz-border-radius-topleft: 0 !important;
-moz-border-radius-topright: 0 !important;
-moz-border-radius-bottomright: 0 !important;
-moz-border-radius-bottomleft: 0 !important;
border-top: 1px solid #A89C7A !important;
border-bottom: 1px solid #3B362B !important;
background-image: none !important;
background-color: #716952 !important;
text-align: left !important;
text-shadow: none !important;
}
.tabbrowser-tab[selected=false] {
color: #ffffff !important;
border-top: 1px solid #adadad !important;
border-bottom: 1px solid #666 !important;
background: #999 !important;
}
.tabbrowser-tab[selected=true] {
color: #0E0E0E !important;
border-top: 1px solid #cccccc !important;
border-bottom: 1px solid #080611 !important;
background-color: #302833 !important;
}
.tabbrowser-tab[selected=true] .tab-text { color: #fff !important; }
.tab-icon-image { margin-bottom: 0px; }
.tab-image-left,
.tab-image-middle,
.tab-image-right {
background-image: none !important;
}
EOM
style -name statusbar chrome://* <<EOM
#status-bar statusbarpanel { padding: 5px 2px !important; }
statusbarpanel > * { margin: 0 !important; padding: 0 !important; }
EOM
" }}}
and see post #46 of this thread for the scripts to hide the command-line
EDIT
Also thanks bl1nk heres that screen of your lawn theme working with nickcolor.pl, looks great I think
Last edited by coda (2009-07-09 23:17:06)
Offline
Configs please
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
My contribution
http://omploader.org/tMXJ0dQ
nice composition. what is that font in urxvt? is it Pragmata, or another one? thank you.
Offline
http://omploader.org/tMXM4Yw
http://omploader.org/tMXM4ZATema xfwm4:axiomd
Tema gtk: NOX
Tema icone: Mashup (MaXo Edition)
wall please?
Offline
Thank you dangerousHobo.
Offline
PheniX wrote:My contribution
http://omploader.org/tMXJ0dQnice composition. what is that font in urxvt? is it Pragmata, or another one? thank you.
i think it is pragmata. anyway looking at the screen again, poor Mozart, he is with some shady company there in that playlist!
"You know what I found? Right in the kernel, in the heart of the operating system, I found a developer's comment that said, `Does this belong here?`" -- Simon Lok about Linux kernel in 2005
Reflections on the Strange and the not so Strange
http://skinwalker.wordpress.com
Offline