Re: [dev] How to use tabbed with surf?

2011-06-21 Thread Le Tian
On Tue, Jun 21, 2011 at 3:06 PM, Connor Lane Smith  wrote:

> On 21 June 2011 12:55, Le Tian  wrote:
> > I tried to figure out why mine tabbed didn't work, and it appears that I
> > have "ctrl+shift" to be reserved for layout change.
>
> See, how are we supposed to know what incompatible keybindings you've
> configured your window manager to use? Can't you figure things like
> that out yourself?
>
> > I've changed the hotkeys of tabbed to Mod4+shift+enter, like "#define
> MODKEY
> > Mod4Mask", but instead of starting surf, after I hit mod4+shift+enter it
> > runs "xterm".
>
> config.h
>
> cls
>
> 80% of my friends do use "ctrl+shift" layout switch, and other ppl use
windows "alt+shift". "Ctrl+shift" is even advised as default in config of
some distros.

>config.h
I'm sorry, but what am I supposed to change in to make tabbed run surf not
xterm after "mod4+shift+enter"?
"{ MODKEY|ShiftMask, XK_Return, spawn,  { .v =
(char*[]){ "surf", "-e", winid, NULL} } },"

-- 
Tian


Re: [dev] How to use tabbed with surf?

2011-06-21 Thread Le Tian
On Tue, Jun 21, 2011 at 2:47 PM, Valentin Plechinger  wrote:

> > I use dwm, through dmenu run "tabbed", get a full grey screen with
> "tabbed
> > 0.3" in the left top corner. Then I try "ctrl+shift+enter";
> > "ctrl+alt+enter", nothing happens.
> > Where I can redefine the hotkeys? Maybe its something machine specific.
> > --
> > Tian
>
> Start tabbed with a surf instance instead of empty
> something like this I guess (I don't use it myself)
>
> #!/bin/sh
> tabbed=$(tabbed -d); surf -e $tabbed "$@"
>
> Best Regards
>
>
I tried to figure out why mine tabbed didn't work, and it appears that I
have "ctrl+shift" to be reserved for layout change.
I've changed the hotkeys of tabbed to Mod4+shift+enter, like "#define MODKEY
Mod4Mask", but instead of starting surf, after I hit mod4+shift+enter it
runs "xterm".

Thankyou Valentin, your advice worked!
-- 
Tian


Re: [dev] How to use tabbed with surf?

2011-06-21 Thread Le Tian
On Tue, Jun 21, 2011 at 1:44 PM, Connor Lane Smith  wrote:

> On 21 June 2011 11:34, Le Tian  wrote:
> > As I mentioned, I did it, when I press ctrl+shift+return, nothing
> happens(
>
> You said you tried Ctrl-Alt-Return.
>
> Is surf installed?
>
> Honestly, it's unlikely we'll be able to help given the extremely
> vague report that "it didn't work". Besides which, this is very likely
> one of those things we expect users to be able to work out.
>
> cls
>
> yes, surf is installed.
I use dwm, through dmenu run "tabbed", get a full grey screen with "tabbed
0.3" in the left top corner. Then I try "ctrl+shift+enter";
"ctrl+alt+enter", nothing happens.
Where I can redefine the hotkeys? Maybe its something machine specific.
-- 
Tian


Re: [dev] How to use tabbed with surf?

2011-06-21 Thread Le Tian
On Tue, Jun 21, 2011 at 1:32 PM, Connor Lane Smith  wrote:

> Hey,
>
> On 21 June 2011 11:29, Le Tian  wrote:
> > tried "ctrl+alt+enter" to run surf, but that didn't work, neither did man
> > was informative.
>
> The man page tells you to use Ctrl-Shift-Return.
>
> cls
>
>
As I mentioned, I did it, when I press ctrl+shift+return, nothing happens(
-- 
Tian


[dev] How to use tabbed with surf?

2011-06-21 Thread Le Tian
When I run tabbed in dwm I get a grey screen with tabbed version 0.3. I
tried "ctrl+alt+enter" to run surf, but that didn't work, neither did man
was informative. Can somebody tell me how to run surf with tabs?
-- 
Tian


Re: [dev] hell with the Terminus font?

2011-06-21 Thread Le Tian
On Tue, Jun 21, 2011 at 11:09 AM, Petr Sabata  wrote:

> On Tue, Jun 21, 2011 at 11:01:35AM +0300, Le Tian wrote:
> > I wonder why does dwm refuse to use terminus font? I get "dwm missing
> > fontset" for several locales (if it is somehow related?) and a message
> that
> > dwm failed to load terminus font. Whenever I rebuild dwm for terminus I
> get
> > a crappy default font. Who does use terminus, and whats your config? My
> > terminus installed to "/usr/share/fonts/local" and I add this path in
> > .xinitrc, so everything should work.
> > My default locale is set to utf-8 and I need it as I work with several
> > languages.
>
> I have Terminus in /usr/share/fonts/terminus/, my X server uses that
> (configured
> by distribution).
>
> dwm config.def.h:
> static const char font[] =
> "-*-terminus-medium-r-normal-*-16-*-*-*-*-*-iso10646-*";
>
> And my locale is en_US.UTF-8.
>
> No issues.
>
> Can you see Terminus in xfontsel?
>
> --
> # Petr Sabata
>

no...
fixed it, well apparently I somehow forgot to add /usr/share/fonts/local to
the font path, now everything works, thanks for the tip.
-- 
Tian


[dev] hell with the Terminus font?

2011-06-21 Thread Le Tian
I wonder why does dwm refuse to use terminus font? I get "dwm missing
fontset" for several locales (if it is somehow related?) and a message that
dwm failed to load terminus font. Whenever I rebuild dwm for terminus I get
a crappy default font. Who does use terminus, and whats your config? My
terminus installed to "/usr/share/fonts/local" and I add this path in
.xinitrc, so everything should work.
My default locale is set to utf-8 and I need it as I work with several
languages.
-- 
Tian


[dev] utf-8 and custom pcf font conflict

2011-06-20 Thread Le Tian
While trying to make a custom pcf font with icons for dwm taskbar I
ultimately didn't manage to make it work under utf-8. Is there a workaround
for this problem?
-- 
Tian


Re: [dev] volume level in dwm taskbar

2011-06-20 Thread Le Tian
On Mon, Jun 20, 2011 at 12:05 PM, Nick  wrote:

> On Mon, Jun 20, 2011 at 12:00:38PM +0300, Le Tian wrote:
> > As long as "aumix -q" refuses to work after the latest update, what you
> guys
> > use to probe volume level? "amixer" could be an alternative but it
> outputs
> > crap, that is difficult to awk.
>
> It isn't great, but I use 'amixer sget PCM' and awk from
> that. Or I use a little C utility I wrote which links to the
> (rather ugly) alsa library functions.
>
> Nick
>
> you mean  "amixer sget Master", yes, that is way better, thanks!
-- 
Tian


[dev] volume level in dwm taskbar

2011-06-20 Thread Le Tian
As long as "aumix -q" refuses to work after the latest update, what you guys
use to probe volume level? "amixer" could be an alternative but it outputs
crap, that is difficult to awk.
-- 
Tian


Re: [dev] revolution

2011-06-11 Thread Le Tian
I did it, because just recently have met a guy, who was insisting that
it is better because this and that. I'm not a specialist to judge the
quality of any WM by browsing its code. So I hoped that ppl on the
mailing list do have enough competence and patience to deal with this
kind of easy and naive question.


On 6/11/11, pmarin  wrote:
> @ Le Tian, Calm down. You should have asked about our opinion about
> WMFS and why you like it instead of if It is better or worse than DWM.
> Always is interesting to know what other people are doing. I think it
> is not trolling, you simply asked the wrong question.
>
>
> Cheers.
> Pmarin.
>
>
> On Sat, Jun 11, 2011 at 10:14 AM, Le Tian  wrote:
>> Well, Kurt, would you please exersize some patience with the idiots
>> like me and stop continuously making your point in the future. Make an
>> effort to be a bit more polite. I fully admit, that it was a mistake
>> to create threads like this.
>> Thank you for your opinions.
>>
>> On 6/11/11, Kurt H Maier  wrote:
>>> On Fri, Jun 10, 2011 at 7:58 PM, Bryan Bennett 
>>> wrote:
>>>> Kurt - I think you need to rethink your definition of "Troll". He simply
>>>> asked a question.
>>>
>>> There are only two reasons to ask a question that open-ended and useless.
>>>
>>> 1) You are an idiot, who thinks that you can compare any two objects
>>> with some kind of mailing-list version of hot or not.
>>>
>>> 2) You are a troll, asking stupid questions to piss people off and start
>>> fights.
>>>
>>> I was giving him the benefit of the doubt.
>>>
>>> --
>>> # Kurt H Maier
>>>
>>>
>>
>>
>> --
>> Tian
>>
>>
>
>


-- 
Tian



Re: [dev] revolution

2011-06-11 Thread Le Tian
Well, Kurt, would you please exersize some patience with the idiots
like me and stop continuously making your point in the future. Make an
effort to be a bit more polite. I fully admit, that it was a mistake
to create threads like this.
Thank you for your opinions.

On 6/11/11, Kurt H Maier  wrote:
> On Fri, Jun 10, 2011 at 7:58 PM, Bryan Bennett  wrote:
>> Kurt - I think you need to rethink your definition of "Troll". He simply
>> asked a question.
>
> There are only two reasons to ask a question that open-ended and useless.
>
> 1) You are an idiot, who thinks that you can compare any two objects
> with some kind of mailing-list version of hot or not.
>
> 2) You are a troll, asking stupid questions to piss people off and start
> fights.
>
> I was giving him the benefit of the doubt.
>
> --
> # Kurt H Maier
>
>


-- 
Tian



Re: [dev] revolution

2011-06-10 Thread Le Tian
On Fri, Jun 10, 2011 at 11:53 AM, Kurt H Maier  wrote:

> On Fri, Jun 10, 2011 at 11:08 AM, Le Tian  wrote:
> > wasn't even thinking about trolling, I'm trying to ask people, who I
> think
> > to be more experienced, than I am. That's it.
>
> That's precisely the sort of thing a troll would say.
>
> --
> # Kurt H Maier
>
> I'm sorry. I will search the mailing lists.
-- 
Tian


Re: [dev] revolution

2011-06-10 Thread Le Tian
On Fri, Jun 10, 2011 at 11:03 AM, Kurt H Maier  wrote:

> On Fri, Jun 10, 2011 at 10:58 AM, Le Tian  wrote:
> > What do you think about WMFS, and how it is better or worse than dwm?
>
> This is a very amateurish attempt at trolling.  Please check the
> mailing list archives for examples of how you can improve.
>
>
> --
> # Kurt H Maier
>
> wasn't even thinking about trolling, I'm trying to ask people, who I think
to be more experienced, than I am. That's it.
-- 
Tian


[dev] revolution

2011-06-10 Thread Le Tian
What do you think about WMFS, and how it is better or worse than dwm?
-- 
Tian


Re: [dev] ideas on suckless file manager

2011-06-07 Thread Le Tian
On Tue, Jun 7, 2011 at 11:58 AM, Benjamin R. Haskell wrote:

> On Tue, 7 Jun 2011, Le Tian wrote:
>
>  On Tue, Jun 7, 2011 at 11:25 AM, Connor Lane Smith wrote:
>>
>>  [...] (I find inverting the colours actually helps to a worrying degree.)
>>>
>>>
>>>  Interesting... Yeah, "I find inverting the colours actually helps to a
>> worrying degree."  I think this should be a default in all linux distros,
>> due a phycological factor.)
>>
>
> Inverting the colors = light text on dark background?
>
> And the dark background is less scary?  I'd have expected the opposite, but
> maybe I've been conditioned by movies to think that dark terminals are
> 'leet'.  To me, light backgrounds feel warmer and more natural, dark ones
> feel more cold and mechanical.
>
> --
> Best,
> Ben
>
> I thought he meant light background and dark font. This actually was
implemented in opensuse, when I just started my journey with linux. Suse KDE
konsole has light background by default. And it feels less tense I guess)
-- 
Tian


Re: [dev] ideas on suckless file manager

2011-06-07 Thread Le Tian
On Tue, Jun 7, 2011 at 11:43 AM, Jakub Lach  wrote:

> pancake  wrote:
>
> > What's phycology?
> > Oh, well.. Wikipedia informs: "the scientific studies of algae"
>
> Hey! Just because they can't use terminal does not mean
> they're algae. That could be somebody's mother you
> know.
>
> lol, but anyway, the question was, whether or not suckless.org will have
its own suckless file manager.
ranger seems pretty neat choice imho.
-- 
Tian


Re: [dev] ideas on suckless file manager

2011-06-07 Thread Le Tian
On Tue, Jun 7, 2011 at 11:25 AM, Connor Lane Smith  wrote:

> Hey,
>
> On 7 June 2011 15:53, Le Tian  wrote:
> > There are occasions, when u need to see or show some lovely icons.
>
> With the exception of image thumbnails, icons are really completely
> pointless.
>
> On 7 June 2011 16:17, Le Tian  wrote:
> > like a girlfriend, she needs icons and stuff
>
> Yeah, it's well-known that females can't read, and rely on pictures
> instead... No, don't be silly, she doesn't need icons, people
> unfamiliar with shells just find the terminal intimidating. Once they
> get over that fear it's really no problem. (I find inverting the
> colours actually helps to a worrying degree.)
>
> My thoughts on a suckless file manager, though my file manager is 'ls':
>
> Orthodox: two paned, plus command line. At compile time you just
> define commands like,
>{ CTRL('m'), "mv $+ $@" }
> You select a bunch of files on the left, navigate to a directory on
> the left, and hit C-m. Simple, effective. It's not amazing, but it
> would do its job.
>
> cls
>
> Interesting... Yeah, "I find inverting the colours actually helps to a
worrying degree."  I think this should be a default in all linux distros,
due a phycological factor.)
-- 
Tian


Re: [dev] ideas on suckless file manager

2011-06-07 Thread Le Tian
On Tue, Jun 7, 2011 at 11:12 AM, pancake  wrote:

> I've never felt the need of seeing files as icons. It's just inneficient
> and useless.
>
> Many years ago i wrote 'canoe' a lightweight filemanager in gtk. I did it
> for the n770.. So clicking on icons is better than Using the shitty onscreen
> keyboard that n770 had
>
> It has some segfaults, and supports icon themes and virtual filesystems
> implemented in shellscript.
>
> Check out the source as always in my http://hg.youterm.com/canoe repo
>
> On 07/06/2011, at 17:00, Jakub Lach  wrote:
>
> >> Xfe,
> >
> > I'm waiting for suckless BonziBUDDY.
> >
> >
> >
> >
>
> Yes, icons are not efficient, but there are cases, when not only you will
use the pc, like a girlfriend, she needs icons and stuff). I think it's a
bad habit of a windows user, to see everything in rows of thumbs. But still
like clicking a video file with a mouse in a file manager, when editing
happens only in console.
-- 
Tian


[dev] ideas on suckless file manager

2011-06-07 Thread Le Tian
Continuing these threads about suckless "anything"
I've been looking quite a long time for fast and lightweight file manager
for dwm. There are occasions, when u need to see or show some lovely icons.
MC and derivatives are the last resort here. I liked pcmanfm, but it just
lacks functionality. Rox-filer is nice, but then again I needed something
else. Recently I've installed Xfe, and it looks like I'm pretty happy with
it.
Xfe has decent configuration options and decent look. So I wonder, is there
any chance that we shall see a suckless file manager in the future? Does
anybody plan or think about developing it?
(Just a thought)
-- 
Tian


Re: [dev] Distribution

2011-06-03 Thread Le Tian
On Fri, Jun 3, 2011 at 7:47 AM, pmarin  wrote:

> Linux ≠ suckless
>
> On Fri, Jun 3, 2011 at 1:41 PM, Sir Cyrus  wrote:
> > What's the most suckless Linux distribution?
> >
> >
>
> http://www.minimalinux.org/ttylinux/

Tian


Re: [dev] [st] Font issues

2011-05-31 Thread Le Tian
On Tue, May 31, 2011 at 9:33 AM, Bryan Bennett  wrote:

> So far, this font issue and the lack of a scrollback buffer are
> my only issues with st. I'm having strange problems with urxvt
> under another (inferior / floating) window manager, which has
> pushed me towards st. I could be using xterm, but...eww.
>
> Terminus drew nice and quickly for me when I was using it
> and Tamsyn works wonderfully as well. I'm just curious what
> I could be doing wrong.
>
> Well, when I got tired of urxvt, aterm and xterm, I switched to "terminal"
and then "sakura", both very lightweight and easy on your fonts, plus
transparency support. In my opinion "st" seems like not very stable now,
moreover, it is slow, when comes to lines of code, and btw, I'm not sure
there are ppl out here who actually use it that much;)
--
Tian


Re: [dev] [st] Font issues

2011-05-31 Thread Le Tian
On Tue, May 31, 2011 at 9:08 AM, Bryan Bennett  wrote:

> I'm attempting to get st to use Dina as it's font. At first, I couldn't get
> st to read the font at all (it would die upon launching, saying it couldn't
> find the font), but I've had issues with Dina before - the CP1252
> encoding was giving urxvt problems a while back so I re-encoded it
> (to ISO8859-1) and tried again. Now st will launch - but the font looks
> terrible.[1] I've uploaded my config.h[2], but the line that should be the
> problem is:
>
> #define FONT  "-*-dina-medium-r-*-*-13-*-*-*-*-*-*-*"
> #define BOLDFONT "-*-dina-bold-r-*-*-13-*-*-*-*-*-*-*"
>
> That font declaration works fine in urxvt, though - so I'm lost. Are there
> obvious changes that need to be made that I'm apparently missing? Is
> there some difference in the way that suckless is doing this that is
> affecting the way fonts are rendered or am I just doing it wrong?
>
>
>
> 1) http://ompldr.org/vOHY4OQ
> 2) http://sprunge.us/XgKe
>
> I'm sorry won't be able to help much with your issue. But is there any need
to use "st" as a terminal?. I just tried to use it, and it seems like it is
a bit slow at rendering terminus font for ex. in comparison to other
alternatives. And I found that it was buggy with some other fonts too.
-- 
Tian


Re: [dev] suckless games collection?

2011-05-26 Thread Le Tian
On Thu, May 26, 2011 at 5:16 AM, pancake  wrote:

> On 05/26/11 10:58, Le Tian wrote:
>
>>
>>
>> On Thu, May 26, 2011 at 5:01 AM, pancake > panc...@youterm.com>> wrote:
>>
>>I found this chess implementation in obfuscated C. I'm sure than
>>cleaning it up
>>(deobfuscating it) will make it ready to be in the cathegory of
>>"suckless games"
>>
>>http://nanochess.110mb.codemandm/chess1_es.html
>><http://nanochess.110mb.com/chess1_es.html>
>>
>>
>>What do you think about creating a 'sgames' project? collecting
>>minimalistic simple
>>games? I wrote a word guess game few time ago named 'wg' which can
>>be merged
>>into this project.
>>
>>--pancake
>>
>> A nice idea, I'm fond of little console games, that do not consume much of
>> your time.
>> I will give it a try if we have some.
>> Tian
>>
> well.. this is not 'suckless', but a funny text mode game i wrote many
> years ago.. dont read
> the code..as long as it's write-only. I decided to code this game only when
> I was drunk, it
> results in an interesting experiment, because when drunk all the code take
> sense and you
> can patch or add stuff without problems, but without alcohol, the code just
> sucks.
>
> It's a text based platform game. The maps are just text files that can be
> done with any
> text editor.
>
>  http://hg.youterm.com/pag/
>
> About LOCs.. it's 760LOC in C. But the code should be cleaned up and
> probably refactorized.
>
> --pancake
>
> "I decided to code this game only when I was drunk" lol!
some man or help would be nice, can't figure out the rules
-- 
Tian


Re: [dev] suckless games collection?

2011-05-26 Thread Le Tian
On Thu, May 26, 2011 at 5:01 AM, pancake  wrote:

> I found this chess implementation in obfuscated C. I'm sure than cleaning
> it up
> (deobfuscating it) will make it ready to be in the cathegory of "suckless
> games"
>
>  
> http://nanochess.110mb.codemandm/chess1_es.html
>
> What do you think about creating a 'sgames' project? collecting
> minimalistic simple
> games? I wrote a word guess game few time ago named 'wg' which can be
> merged
> into this project.
>
> --pancake
>
> A nice idea, I'm fond of little console games, that do not consume much of
your time.
I will give it a try if we have some.
Tian


Re: [dev] dwm taskbar icons via pcf font

2011-05-20 Thread Le Tian
On Fri, May 20, 2011 at 5:55 PM, Bryan Bennett  wrote:

> Eckehard is right - rehash your font library to see the changes.
>
> rehash is done via .xinitrc, I think that utf-8 locale is the reason, if I
switch to en_US.ISO-8859-1, I can echo Bryan font icons, when UTF-8 gives me
empty output or (?) marks in "terminal". By the way "terminal" is the only
emulator where I could use Bryan font (it can be selected in its
preferences).
I cant always use en_US.ISO-8859-1 locale, because I need russian. So I
guess, I will stick to non icon interface for now.
Tian


Re: [dev] dwm taskbar icons via pcf font

2011-05-20 Thread Le Tian
On Fri, May 20, 2011 at 1:01 AM, Bryan Bennett  wrote:

> I've done this previously (I have modified Tamsyn's 15pt version
> and released it on the arch forums as 'Tamsyn2') and it works
> very well - particularly in locales where you rarely use anything
> outside of the ASCII charset. The basic idea is this - find a font
> you like and change the characters you don't use in said font to
> be small glyphs. (Gbdfed and Xmbdfed work well for this - just
> convert the font to bdf and open the font in either editor. When
> you're done, you can convert it back if you like). The glyphs you
> made are now represented as the character you replaced in the
> font and can be referenced as such. I've attached the current
> version of Tamsyn2 for reference or your use.
>

Thanks Bryan, your icons work, but only in my "terminal" not "xterm" when I
choose Tamsyn2 font and echo -e "\xC1", however when I edited your font with
my gbdfed, saved, reconverted, and put it into /usr/share/fonts/local/, ran
my terminal and echo -e "\xA1"(my added icon) didn't show up, but produced
empty string, however , when I replaced your icon under "C1" index and tried
the same it did show up with my icon. So newly added icons do not work, when
modifying your icons work, ahh, this is so jinxed. This is the only way I
got it all working, do you have any ideas why)?

I should apologize for littering the mailing list with my particular
questions, but this is the only way I can get some help on this subject.
Tian


Re: [dev] dwm taskbar icons via pcf font

2011-05-19 Thread Le Tian
On Thu, May 19, 2011 at 11:04 AM, pancake  wrote:

> yay. this windings approach looks cool. Can you explain in a wiki/web
> the steps to create such font file, and how to do your setup?
>
> i will probably not use it.. but i think it can be useful for things like
> swk or dzen.
> at least it simplifies a lot the image support with X api..
>
> --pancake
>
>
> On 05/19/2011 03:28 PM, Andrew Hills wrote:
>
>> On Thu, May 19, 2011 at 4:50 AM, Le Tian  wrote:
>>
>>> yes, I checked this and when I "xterm -fn
>>> /usr/share/fonts/my_fancy_font.pcf.gz"; "echo -e "\xA1"" to get my custom
>>> icon, I get a (?) sign, so as it looks like impossible for xterm to show
>>> the
>>> value of "A1"(that is my icon index number).
>>>
>> No, you can't use the path to the font. You need to add it to the font
>> path in X and then reference it BY NAME. Set the name when you edit
>> the font, do the xset commands I listed earlier, and try again. If you
>> name your font "myfancyfont", for example, you should be able to refer
>> to it as -*-myfancyfont-*-*-*-*-*-*-*-*-*-*-*-* in xfontsel. If you
>> can't do that, you won't be able to use your font at all outside of
>> the font editor.
>>
>> --Andrew Hills
>>
>>  to pancake:
> As soon as I will make it myself, I will. This is not my method. It was
> advised by a nice guy on one of the arch forum threads.
>
   here is a link: https://bbs.archlinux.org/viewtopic.php?id=92895




-- 
Tian


Re: [dev] dwm taskbar icons via pcf font

2011-05-19 Thread Le Tian
On Wed, May 18, 2011 at 10:20 AM, Andrew Hills  wrote:

> On Wed, May 18, 2011 at 10:11 AM, Le Tian  wrote:
> > This method seems pretty nice, but somehow I still can't make my modified
> > font icons work, I made an icon under 0045 index, that replaced "E"
> letter,
> > but after setting the font in xterm via "setfont
> > /usr/share/fonts/myfancyfont.pcf.gz" and running echo -e "\x45", I still
> get
> > an "E" letter, as if nothing had been modified..(scratch).
>
> setfont is for VGA consoles, not xterm. Use `xset q' to ensure the
> font is on your font path and launch `xterm -fn [long-x-font-name]' to
> test it. You may want to use xfontsel instead, as that will let you
> browse the X server's available fonts.
>
> --Andrew Hills
>
>
yes, I checked this and when I "xterm -fn
/usr/share/fonts/my_fancy_font.pcf.gz"; "echo -e "\xA1"" to get my custom
icon, I get a (?) sign, so as it looks like impossible for xterm to show the
value of "A1"(that is my icon index number). My icon is not big, but takes
as much place as any other letter, so what could be the case in here? I also
tried to output "A1" via xsetroot, but that gave me an unreadable sign in a
taskbar.

1.So just to finish this thread, has anybody tried to make dwm taskbar icons
exactly the same way?
2.What method do you use then?
Thank you.

-- 
Tian


Re: [dev] dwm taskbar icons via pcf font

2011-05-18 Thread Le Tian
On Tue, May 17, 2011 at 3:19 PM, Robert Ransom wrote:

> On Tue, 17 May 2011 20:45:17 +0300
> Le Tian  wrote:
>
> > Recently I've bumped into a thread with a nice solution to takbar icons
> in
> > dwm via editing any pcf font. So I converted pcf to bdf and with gbdfed
> util
> > created some new icons. After that I reconverted new bdf font to pcf and
> put
> > it into a font folder, after that I modified my config.h so it grabbed
> this
> > fancy font of mine. Then I edited my config script for a dwm taskbar by
> > adding my icons index numbers
> > like this:
> >
> >  cpu_str=$(echo -e cpu:'\')
> >
> >  is my first icon number in the font table in gbdfed, but that do not
> > work, so I'm asking now if I am wrong with syntax, how do I point to
> these
> > icons that I created?
>
> You probably won't be able to display character 0, because most C
> programs use that to indicate the end of a string.
>
>
> Robert Ransom
>

well, yeah I tried, but its not the issue.
I wonder if anybody in dwm community managed to make taskbar icons this way.
I have a screenshot here http://bildr.no/view/664213
<http://bildr.no/view/664213>This method seems pretty nice, but somehow I
still can't make my modified font icons work, I made an icon under 0045
index, that replaced "E" letter, but after setting the font in xterm via
"setfont /usr/share/fonts/myfancyfont.pcf.gz" and running echo -e "\x45", I
still get an "E" letter, as if nothing had been modified..(scratch).
-- 
Tian


[dev] dwm taskbar icons via pcf font

2011-05-17 Thread Le Tian
Recently I've bumped into a thread with a nice solution to takbar icons in
dwm via editing any pcf font. So I converted pcf to bdf and with gbdfed util
created some new icons. After that I reconverted new bdf font to pcf and put
it into a font folder, after that I modified my config.h so it grabbed this
fancy font of mine. Then I edited my config script for a dwm taskbar by
adding my icons index numbers
like this:

 cpu_str=$(echo -e cpu:'\')

 is my first icon number in the font table in gbdfed, but that do not
work, so I'm asking now if I am wrong with syntax, how do I point to these
icons that I created?


Re: [dev] dwm xsetroot colorful fonts howto?

2011-05-14 Thread Le Tian
On Sat, May 14, 2011 at 6:15 PM, Kobi  wrote:

> On 14-05-2011, 17:08:00 Le Tian  wrote:
>
>  On Sat, May 14, 2011 at 1:52 PM, Le Tian  wrote:
>>
>>
>>>
>>> On Sat, May 14, 2011 at 6:45 AM, Anders Andersson >> >wrote:
>>>
>>>  On Fri, May 13, 2011 at 11:11 PM, Bogdan Ionuț 
>>>> wrote:
>>>> > On Sat, May 14, 2011 at 00:01, Le Tian  wrote:
>>>> >>
>>>> >> I'm sorry, maybe its been discussed like a lot of times, but can
>>>> anybody
>>>> >> tell me how to color taskbar fonts in dwm? There is a patch
>>>> >> (http://dwm.suckless.org/patches/statuscolors) but that I don't
>>>> like,
>>>> I need
>>>> >> fonts to be colored not a colorful bg or fg in the taskbar, and maybe
>>>> its
>>>> >> possible to change the colors on-the-fly (when monitoring high CPU
>>>> temps)?
>>>> >> Maybe somebody has it implemented already.
>>>> >>
>>>> >> --
>>>> >> Tian
>>>>
>>>> Why don't you set something up that throttles the CPU and eventually
>>>> turns it off in case it gets too hot? What use is there to show the
>>>> temperature on the status bar? Will the computer break if you're not
>>>> there to turn it off in case it gets too hot?
>>>>
>>>> I just think things like this ruins the clean experience that dwm is.
>>>>
>>>>
>>>>  cpu temp is not that useful, its agreeable, when hdd temp is very
>>> useful,
>>> its crucial for laptop users like me to keep their hdd temperature under
>>> proper control. If I was using a desktop pc, I wouldn't bother myself
>>> with
>>> these tweaks, but as long as summer is coming, I think it come useful for
>>> my
>>> laptop.
>>>
>>> --
>>> Tian
>>>
>>> Hi again, I managed to color taskbar output, but I need the cpu values to
>>>
>> be colored on-the-fly, so when my temp is more than 50C then the values
>> should be red etc. can somebody help me to correct my script?
>> I understand that I must add a "if else" condition, but it doesn't work,
>> when I do, simply because I don't know correct syntax, and try to learn
>> on-the-fly).
>>
>> here is my original script:
>> ***
>> while true
>> do
>>
>> cpu_temp=$(cat /proc/acpi/ibm/thermal | awk '{printf("\x04 cpu: "$3"*"$4"
>> ")}')
>>
>> root_vol=$(df -h / | awk 'END {printf("\x01| root: "$5)}' | sed
>> 's/Use%//')
>> home_vol=$(df -h /home| awk 'END {printf("\x01home: "$5)}' | sed
>> 's/Use%//')
>> vol=$(aumix -q | awk '/vol/ {printf("\x01|\x03vol:"$3)}')
>> date=$(date | awk 'END {printf("\x01| \x01"$1" "$2" "$3)}')
>> uptime=$(uptime | awk 'BEGIN {FS = ":"}; END {printf("\x01|"$1":"$2)}')
>> taskbar_info=$(echo -e $cpu_temp $root_vol $home_vol $vol $date $uptime)
>>
>> xsetroot -name "$taskbar_info"
>> sleep 5
>> done
>> 
>>
>> There should be "if $cpu_temp > 60 then; "do the command again with red
>> colors", and how can I check the range of "if" condition? For example:
>> when cpu temp is [50-55] then it should be blue, when it goes up to
>> [60-65]
>> then red, so "if $cpu_temp == [50-55]; then "do command", but it doesn't
>> work(. Can somebody help me with syntax? Forgive me my ignorance, but I
>> will
>> be very thankful if somebody will help with it.
>>
>> Tian
>>
>
> I've sorted this with a script: http://wklej.org/id/529183/
> and here's my ~/.xinitrc http://wklej.org/id/529182/
>
> The colors are defined in config.h:
>
> static const char colors[NUMCOLORS][ColLast][8] = {
>//  border   foreground background
>{ "#33", "#cc", "#22" },  // 0 = normal
>{ "#88", "#ff", "#55" },  // 1 = selected
>{ "#33", "#3399ff", "#22" },  // 2 = light blue
>{ "#33", "#ff", "#22" },  // 3 = red
>{ "#33", "#8afb17", "#22" },  // 4 = green
>{ "#33", "#fdd017", "#22" },  // 5 = yellow
>{ "#33", "#ff", "#22" },  // 6 = white
>{ "#33", "#ff9900", "#22" },  // 7 = orange
> };
>
>

Спасибо большое, thanks!)
-- 
Tian


Re: [dev] dwm xsetroot colorful fonts howto?

2011-05-14 Thread Le Tian
On Sat, May 14, 2011 at 1:52 PM, Le Tian  wrote:

>
>
> On Sat, May 14, 2011 at 6:45 AM, Anders Andersson wrote:
>
>> On Fri, May 13, 2011 at 11:11 PM, Bogdan Ionuț 
>> wrote:
>> > On Sat, May 14, 2011 at 00:01, Le Tian  wrote:
>> >>
>> >> I'm sorry, maybe its been discussed like a lot of times, but can
>> anybody
>> >> tell me how to color taskbar fonts in dwm? There is a patch
>> >> (http://dwm.suckless.org/patches/statuscolors) but that I don't like,
>> I need
>> >> fonts to be colored not a colorful bg or fg in the taskbar, and maybe
>> its
>> >> possible to change the colors on-the-fly (when monitoring high CPU
>> temps)?
>> >> Maybe somebody has it implemented already.
>> >>
>> >> --
>> >> Tian
>>
>> Why don't you set something up that throttles the CPU and eventually
>> turns it off in case it gets too hot? What use is there to show the
>> temperature on the status bar? Will the computer break if you're not
>> there to turn it off in case it gets too hot?
>>
>> I just think things like this ruins the clean experience that dwm is.
>>
>>
> cpu temp is not that useful, its agreeable, when hdd temp is very useful,
> its crucial for laptop users like me to keep their hdd temperature under
> proper control. If I was using a desktop pc, I wouldn't bother myself with
> these tweaks, but as long as summer is coming, I think it come useful for my
> laptop.
>
> --
> Tian
>
> Hi again, I managed to color taskbar output, but I need the cpu values to
be colored on-the-fly, so when my temp is more than 50C then the values
should be red etc. can somebody help me to correct my script?
I understand that I must add a "if else" condition, but it doesn't work,
when I do, simply because I don't know correct syntax, and try to learn
on-the-fly).

here is my original script:
***
while true
do

cpu_temp=$(cat /proc/acpi/ibm/thermal | awk '{printf("\x04 cpu: "$3"*"$4"
")}')

root_vol=$(df -h / | awk 'END {printf("\x01| root: "$5)}' | sed 's/Use%//')
home_vol=$(df -h /home| awk 'END {printf("\x01home: "$5)}' | sed 's/Use%//')
vol=$(aumix -q | awk '/vol/ {printf("\x01|\x03vol:"$3)}')
date=$(date | awk 'END {printf("\x01| \x01"$1" "$2" "$3)}')
uptime=$(uptime | awk 'BEGIN {FS = ":"}; END {printf("\x01|"$1":"$2)}')
taskbar_info=$(echo -e $cpu_temp $root_vol $home_vol $vol $date $uptime)

xsetroot -name "$taskbar_info"
sleep 5
done


There should be "if $cpu_temp > 60 then; "do the command again with red
colors", and how can I check the range of "if" condition? For example:
when cpu temp is [50-55] then it should be blue, when it goes up to [60-65]
then red, so "if $cpu_temp == [50-55]; then "do command", but it doesn't
work(. Can somebody help me with syntax? Forgive me my ignorance, but I will
be very thankful if somebody will help with it.

Tian


Re: [dev] dwm xsetroot colorful fonts howto?

2011-05-14 Thread Le Tian
On Sat, May 14, 2011 at 6:45 AM, Anders Andersson wrote:

> On Fri, May 13, 2011 at 11:11 PM, Bogdan Ionuț  wrote:
> > On Sat, May 14, 2011 at 00:01, Le Tian  wrote:
> >>
> >> I'm sorry, maybe its been discussed like a lot of times, but can anybody
> >> tell me how to color taskbar fonts in dwm? There is a patch
> >> (http://dwm.suckless.org/patches/statuscolors) but that I don't like, I
> need
> >> fonts to be colored not a colorful bg or fg in the taskbar, and maybe
> its
> >> possible to change the colors on-the-fly (when monitoring high CPU
> temps)?
> >> Maybe somebody has it implemented already.
> >>
> >> --
> >> Tian
>
> Why don't you set something up that throttles the CPU and eventually
> turns it off in case it gets too hot? What use is there to show the
> temperature on the status bar? Will the computer break if you're not
> there to turn it off in case it gets too hot?
>
> I just think things like this ruins the clean experience that dwm is.
>
>
cpu temp is not that useful, its agreeable, when hdd temp is very useful,
its crucial for laptop users like me to keep their hdd temperature under
proper control. If I was using a desktop pc, I wouldn't bother myself with
these tweaks, but as long as summer is coming, I think it come useful for my
laptop.

-- 
Tian


Re: [dev] dwm xsetroot colorful fonts howto?

2011-05-13 Thread Le Tian
On Sat, May 14, 2011 at 12:06 AM, Connor Lane Smith  wrote:

> Hey,
>
> On 13 May 2011 22:01, Le Tian  wrote:
> > I'm sorry, maybe its been discussed like a lot of times, but can anybody
> > tell me how to color taskbar fonts in dwm? There is a patch
> > (http://dwm.suckless.org/patches/statuscolors) but that I don't like, I
> need
> > fonts to be colored not a colorful bg or fg in the taskbar, and maybe its
> > possible to change the colors on-the-fly (when monitoring high CPU
> temps)?
> > Maybe somebody has it implemented already.
>
> Yes, you can find it here:
>
> http://dwm.suckless.org/patches/statuscolors
>
> cls
>
>
ahh, yes I see now, thank you.

-- 
Tian


[dev] dwm xsetroot colorful fonts howto?

2011-05-13 Thread Le Tian
I'm sorry, maybe its been discussed like a lot of times, but can anybody
tell me how to color taskbar fonts in dwm? There is a patch (
http://dwm.suckless.org/patches/statuscolors) but that I don't like, I need
fonts to be colored not a colorful bg or fg in the taskbar, and maybe its
possible to change the colors on-the-fly (when monitoring high CPU temps)?
Maybe somebody has it implemented already.

-- 
Tian


Re: [dev] dwm taskbar font

2011-04-03 Thread Le Tian
thank you guys, just edited config.h and installed from source -- it works,
I shouldn't have used abs.
the issue is closed.


Re: [dev] dwm taskbar font

2011-04-03 Thread Le Tian
On Sun, Apr 3, 2011 at 2:36 PM, Jan  wrote:

>
> On Sun, 3 Apr 2011 13:52:59 +0300, Le Tian  wrote:
> > [snip]
> > 5. restart
> looks alright, I don't know about the makepkg arguments. Why don't you
> just clone the hg and compile it? My binary is in $HOME/.local/bin, and
> that dir is in my path. Since my dwm-binary stores personal customizations
> (in your case, the font), I believe it is justified to put it somewhere in
> $HOME. Do you any good reason to choose abs over the official repo?
>
> >
> > [snip]
>
> Can't really help you on this one, sorry.
>
> -keks
>
>
well I was following arch wiki, nothing more, I also tend to think that
using makepkg is safer, since then the installation is being handled with
pacman and can be easily updated. Maybe I should compile it right from
source? I shall try it since nothing else works, thanks

-- 
Tian


[dev] dwm taskbar font

2011-04-03 Thread Le Tian
Could somebody explain or help me how to set a dwm taskbar font properly,
cause I'm tired of guessing what am I doing wrong:

I run arch and added dwm via abs into my home dir. So here are my actions:
1. cd into dwm compile dir (cd Public/dwm_sync/dwm/)
2. ls Public/dwm_sync/dwm/
{
config
config.h
dwm-5.8.2-2-x86_64.pkg.tar.xz
dwm-5.8.2.tar.gz
dwm.desktop
dwm.install
pkg
PKGBUILD
src
}
3. edited config.h with a font I chose in xfontsel
{
static const char font[]=
"-*-courier-medium-r-*-*-17-*-*-*-*-*-iso10646-*";
}
4. save and makepkg -efi --skipinteg
5. restart

Result: nothing absolutely have changed. Why? What am I doing wrong? I've
been trying with different fonts, so I don't have a clue. I found a very
nice font in my /usr/share/fonts/ "ter-216n", how do I know what description
in xfontsel it has?

I've been asking about this in arch forum, but no advice that could fix it
was given so far, so I'm asking suckless community archlinux users for
help.


Re: [dev] [wmii] Tabbed mode?

2011-03-24 Thread Le Tian
you can try dwm, that comes with simpler layout imho, but the principle of
work is just the same.
There is a taskbar at the top of the screen with prearranged (1,2,3,4)
tags for window layouts. It is heavily hotkeyed, so works pretty fast. I
seem to like it more that wmii. Dunno what kind of tabs did you exactly
mean.
Anyway, being less cluttered dwm can be your choice, it lacks good
documentation though.


Re: [dev] dwm taskbar config

2011-03-24 Thread Le Tian
well, I shall reply just to draw a line.
I managed to do everything.
So I created .xsession file with the following lines:

while true
do
xsetroot -name "`df -h / | awk 'END {print "root:" $5"|"}' | sed 's/Use%//'`
`df -h /home| awk 'END {print "home:" $5"|"}' | sed 's/Use%//'` `uptime |
awk '{print $1}'`"
sleep 55
done

and now it works very nicely. Thanks for your help


Re: [dev] dwm taskbar config

2011-03-23 Thread Le Tian
well what I need, is a sample of somebody's config, without exec dwm? cause
it is executed right after login by the system, I do not run "startx", I use
KDE login manager to start dwm, so .xinitrc with "exec dwm" is useless, am I
right?
I'm sorry guys, I'm just a user, and I can't write shell scripts neither do
I have any profound knowledge of it. What I know is that. after login when
dwm is started something should be put into either .xinitrc or .dwmrc(which
one should I use?). I already mentioned that when I "touch" .xinitrc file
with above mentioned strings I get empty screen, how should I do it
properly? README tells the same thing
 "like this in your .xinitrc:

while true
do
xsetroot -name "`date` `uptime | sed 's/.*,//'`"
sleep 1
done &
exec dwm"
I wish there would be a good howto about this stuff, so that regular users
could benefit from it. Sorry


Re: [dev] dwm taskbar config

2011-03-23 Thread Le Tian
Yeah, your variant is better, but why should I make exec dwm? when I log in
via kde login manager?( I edited sysconfig, so my default wm is dwm)
That is, when I see a login prompt I enter password and start dwm as
default. When I make .xinitrc, dwm do not start, I can see only desktop
empty screen.
WHy is this happening I don't know.


Re: [dev] dwm taskbar config

2011-03-23 Thread Le Tian
ok, sorry, thanks, I will look into it


Re: [dev] dwm taskbar config

2011-03-23 Thread Le Tian
ok, now I tried to make .xinitrc file in my home/me dir, and added these
lines:

while true
do

while true
do

while true
do
xsetroot -name "$(date +"%a, %b %d %Y | %H:%M")"
sleep 55s
done &

/usr/bin/dwm
done



but it doesn't work. When I start dwm, I get clean screen without anything,
so I deleted it.
I'm sorry, but I not that sophisticated in proper scripting, can someone
tell me how to do it properly(I'm running SUSE 11.4). Should I create
.xinitrc or should I make .dwmrc or else?


Re: [dev] dwm taskbar config

2011-03-23 Thread Le Tian
thanks, I will figure out how to do it, cause last time I messed with
.xinitrc wmii crashed(


[dev] dwm taskbar config

2011-03-23 Thread Le Tian
Hi everybody, after using wmii for a week, I decided to try dwm, and liked
it even MORE!
But I have a question, how do I run some script output in my taskbar the way
I did in wmiirc_local, I mean time, hdd space etc. I looked up  config.h but
didn't find anything there to look like bar config.
I will be very happy if you help me.

-- 
Tian


Re: [dev] [wmii] Tabbed mode?

2011-03-23 Thread Le Tian
I think you have a widescreen, well, its sometimes can be tiresome a bit,
but such positioning saves a lot of screen space.
You can make tabs(in the taskbar) like (shift + Mod4 + t) > then you write a
name of a tab you want, and current active screen become a tab in the
taskbar.
As alternative you can try (shift + Mod4 + l) keys to make column layout.
Try it out.


Re: [dev] [wmii] Chromium always starts as a floating window

2011-03-18 Thread Le Tian
On Fri, Mar 18, 2011 at 5:58 PM, Thomas Dahms  wrote:

> Moreover, if you
>> open up such an application via MOD4+p and then try to open a terminal(for
>> ex.) in the same workspace that floating application is, terminal will
>> load
>> in a floating mode too,
>>
>
> You can switch between the floating and the managed layer with Mod-Space.
> When you opened a floating window, you are in floating mode and any window
> will spawn floated. Just Mod-Space before and it opens managed.
>
>
>  so you can drag and resize its window as if you're
>> in good old openbox.
>>
>
> You can just send the window to managed mode by Mod-Shift-Space.
>
>
>  I think this should be fixed maybe,
>>
>
> There is really nothing to fix here.
>
> --
> Thomas Dahms
>
>
Ah, ok, I just thought, that it is a bug if some sort, thanks for tipping me
up. ^^

-- 
Tian


Re: [dev] [wmii] Chromium always starts as a floating window

2011-03-18 Thread Le Tian
I feel like I should add. This is not a Chrome only issue, any app that has
its own theming, loads up in "floating" mode, (ex: qmmp) Moreover, if you
open up such an application via MOD4+p and then try to open a terminal(for
ex.) in the same workspace that floating application is, terminal will load
in a floating mode too, so you can drag and resize its window as if you're
in good old openbox. I think this should be fixed maybe, cause dragging a
window is sluggish and constant refocusing between floating apps makes it
impossible to use them, unless you like to drag everything around the place.


Re: [dev] wmii status bar config

2011-03-17 Thread Le Tian
thanks a lot, that is better, cause my wmiirc_local is empty)
I use xbindkeys for hotkeying - didn't want to mess with my wmii
scattered-all-over-the-place files.
I'll try it out.


Re: [dev] [wmii] Chromium always starts as a floating window

2011-03-17 Thread Le Tian
its  quite simple,
1. start chromium
2. goto preferences
3. goto personal stuff
4. in appearance choose use GTK-theme or "use system title bar and borders".
5. thats it

that will make chromium start with system borders that are managed by wmii,
so browser will not start in a floating window.


Re: [dev] wmii status bar config

2011-03-17 Thread Le Tian
Hi again, I'm trying to find out how to make a custom status bar in wmii. I
have found "status()" lines in /home/wmii.rc file(hmmm what is it doing
here?!) these is what I found:
status() {
Action status
if wmiir remove /rbar/status 2>/dev/null; then
echo "$WMII_NORMCOLORS" | wmiir create /rbar/status
while status | wmiir write /rbar/status; do
Action status &

I can barely understand it. So if anyone had an experience in setting up his
custom bar, could you please tip me how to do it, cause I don't know where
to look else.


Re: [dev] wmii status bar config

2011-03-16 Thread Le Tian
thanks a lot. ok, I'll check it out.
I installed this version(3.9.2) from source, so decided not to mess with
config.mk, edited only default terminal, other options were set by default,
so I guess its where it was intended to be. And the name of wmii dir doesn't
have any version embedded, its just plane wmii dir. I'm running SUSE11.4.


[dev] wmii status bar config

2011-03-16 Thread Le Tian
HI everybody!
I'm happy to use wmii after tweaking some things, making autorun scripts and
binding hotkeys, all is done. But I have another question.
I want to config my status bar, I want it to show  some terminal output of
my sensors or any bash script. Now it displays 'average load, date and
time'. And I don't have a clue from which file does this info come from for
wmii. I don't need average load info, what I need is to display terminal
output of a custom script in my status bar. How do I do it?
There was something about "wmiir read /bar" in docs, but I haven't found
this line in my /usr/local/bin/wmii.rc file. So now I'm puzzled a bit.

-- 
Tian


Re: [dev] wmii theming

2011-03-15 Thread Le Tian
thanks Jase, I will look into it.
Take care.


[dev] wmii theming

2011-03-14 Thread Le Tian
Hello guys, I recently installed wmii on SUSE 11.4 and I really like it. MY
question is very simple, how can I add themes to it. I tried to make a
~.wmii/wmii.rc file and add these lines there:

#!/bin/sh -f
# Configure wmii

# Colors tuples: "  "
WMII_NORMCOLORS='#e0e0e0 #44 #66'
WMII_FOCUSCOLORS='#A0FF00 #686363 #8c8c8c'
WMII_BACKGROUND='#33'

but nothing worked out. I also managed to find another wmii.rc in
/usr/local/bin/, how do they correspond? How do I correctly setup custom
theme for wmii on OpenSUSE 11.4?
 I have read man on wmii, but still the info is not very full, I wish there
be some more tutorials on wmii configuration. Thank you guys for your hard
work, I will appreciate if you help me on this.
Tian