You are not logged in.

#1 2011-07-05 12:59:05

Draucia
Member
Registered: 2011-06-05
Posts: 128

[SOLVED]Few questions about DWM

For reference: I had was having troubles getting URxvt to start from my config.h. Instead of putting it in there, I put it in my .Xdefaults (like background: #...... foreground: #......)
Second question was about dzen2. I was trying to make it appear on the bottom, and make  a gap (so windows couldn't overlay/go under the bar. I just decided to overlay the dzen2 bar on the top-right like so:

2011070514.png

EDIT: Thanks to sm00th I've solved my URxvt problems. big_smile The problem was that I couldn't put URxvt into config.h and get it working

EDIT: I've just decided to smudge all my time, cpu, temp, etc, things at the top right with dzen2 overlaying the default dwm status bar. Thanks anyway.

Last edited by Draucia (2011-07-05 22:11:02)

Offline

#2 2011-07-05 13:05:14

sm00th
Member
Registered: 2010-10-25
Posts: 3

Re: [SOLVED]Few questions about DWM

Draucia wrote:

3.) How would I put this in termcmd:
urxvt -is +sb -fg '#51a366' -bg '#111111' -fn 'xft:DejaVu Sans Mono:pixelsize=11:antialias=false:autohinting=true'

This you can do in your ~/.Xdefaults file.
For example the font part will look like this:

URxvt*font: xft:DejaVu Sans Mono:pixelsize=11:antialias=false:autohinting=true

Last edited by sm00th (2011-07-05 13:06:09)

Offline

#3 2011-07-05 13:24:58

Draucia
Member
Registered: 2011-06-05
Posts: 128

Re: [SOLVED]Few questions about DWM

sm00th wrote:
Draucia wrote:

3.) How would I put this in termcmd:
urxvt -is +sb -fg '#51a366' -bg '#111111' -fn 'xft:DejaVu Sans Mono:pixelsize=11:antialias=false:autohinting=true'

This you can do in your ~/.Xdefaults file.
For example the font part will look like this:

URxvt*font: xft:DejaVu Sans Mono:pixelsize=11:antialias=false:autohinting=true

Thanks. Do you know why my "ls" command is all one color? Like folders and files look the same.

Xdefault:

URxvt*background: #111111
URxvt*foreground: #51a366
URxvt*scrollBar: False
URxvt*font: xft:DejaVu Sans Mono:pixelsize=11:antialias=false:autohinting=true

!! Greenish theme
*color0:       #000000
*color8:       #666666
!! DarkRed + Red
*color1:       #b45151
*color9:       #fe8686
!! DarkGreen + Green
*color2:       #8ba574
*color10:      #a5dca5
!! DarkYellow + Yellow
*color3:       Khaki3
*color11:      #efe58b
!! DarkBlue + Blue
*color4:       #2797d8
*color12:      #86cdea
!! DarkMangenta + Mangenta
*color5:       #aa6eaf
*color13:      #b698b8
!!DarkCyan + Cyan
*color6:       #418179
*color14:      #71bebe
!! LightGrey + White
*color7:       #bebebe
*color15:      #ffffff

Offline

#4 2011-07-05 13:31:07

sm00th
Member
Registered: 2010-10-25
Posts: 3

Re: [SOLVED]Few questions about DWM

Draucia wrote:

Thanks. Do you know why my "ls" command is all one color? Like folders and files look the same.

That's probably not a terminal app issue at all.
Are colors still the same if you run it like this:

ls --color=auto

If that helps you can just add an alias to your .bashrc

alias ls='ls --color=auto'

Offline

#5 2011-07-05 13:35:27

Draucia
Member
Registered: 2011-06-05
Posts: 128

Re: [SOLVED]Few questions about DWM

sm00th wrote:
Draucia wrote:

Thanks. Do you know why my "ls" command is all one color? Like folders and files look the same.

That's probably not a terminal app issue at all.
Are colors still the same if you run it like this:

ls --color=auto

If that helps you can just add an alias to your .bashrc

alias ls='ls --color=auto'

Thanks a lot. Now my URxvt problems/questions are solved. big_smile

Offline

#6 2011-07-05 13:48:34

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED]Few questions about DWM

Draucia, please don't erase questions from your original post if they are solved. They could make the thread confusing.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2011-07-05 13:50:35

One
Member
From: .eu
Registered: 2011-07-05
Posts: 29

Re: [SOLVED]Few questions about DWM

2) Are you referring to the current window border that is highlighted?
If so, edit selbordercolor in config.h, run `make` and `make install`, kill dwm and launch it again.

static const char selbordercolor[]  = "#424242";

First time Archer

Offline

#8 2011-07-05 14:12:33

Draucia
Member
Registered: 2011-06-05
Posts: 128

Re: [SOLVED]Few questions about DWM

Inxsible wrote:

Draucia, please don't erase questions from your original post if they are solved. They could make the thread confusing.

Sorry, I put it at the end.

One wrote:

2) Are you referring to the current window border that is highlighted?
If so, edit selbordercolor in config.h, run `make` and `make install`, kill dwm and launch it again.

static const char selbordercolor[]  = "#424242";

I've already got that solved, thanks.

Now I'm having a bit of trouble with dzen2. How can I put it at the bottom? If I type "dzen -y 750" alone, it goes at the bottom, but this command in my xinitrc, doesn't:

(sleep 1s && conky | dzen2 -y '750' -x '367' -e '' -fg '#dcdcdc' -bg '#111111' -w '800' -ta r -fn '-*-terminus-*-r-normal-*-*-120-*-*-*-*-iso8859-*' -h 20 ) &

I also need to somehow find a way to put space on the bottom.

Offline

#9 2011-07-05 14:39:02

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED]Few questions about DWM

Try it without the quotes around the x and y co-ordinates and remove the -e flag since you are not trying to catch any event.

(sleep 1s && conky | dzen2 -y 750 -x 367 -fg '#dcdcdc' -bg '#111111' -w '800' -ta r -fn '-*-terminus-*-r-normal-*-*-120-*-*-*-*-iso8859-*' -h 20 ) &

Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#10 2011-07-05 15:05:15

Draucia
Member
Registered: 2011-06-05
Posts: 128

Re: [SOLVED]Few questions about DWM

Inxsible wrote:

Try it without the quotes around the x and y co-ordinates and remove the -e flag since you are not trying to catch any event.

(sleep 1s && conky | dzen2 -y 750 -x 367 -fg '#dcdcdc' -bg '#111111' -w '800' -ta r -fn '-*-terminus-*-r-normal-*-*-120-*-*-*-*-iso8859-*' -h 20 ) &

Thanks, but it's the same. hmm

EDIT: This is really weird... removing -h 20 makes it go to the bottom, but there's a 2 pixel length from the bottom. If I add a -h in the front, it ignores the height. Raising 750 does nothing.

Last edited by Draucia (2011-07-05 15:17:30)

Offline

#11 2011-07-05 17:52:53

gotmor
Member
From: Germany
Registered: 2007-09-03
Posts: 84
Website

Re: [SOLVED]Few questions about DWM

Draucia wrote:

EDIT: This is really weird... removing -h 20 makes it go to the bottom, but there's a 2 pixel length from the bottom. If I add a -h in the front, it ignores the height. Raising 750 does nothing.

See: http://dzen.geekmode.org/dwiki/doku.php … een-bottom

To be a bit more explicit, when dzen2 detects that it won't fit at a specific screen border it will always align to top.
Be sure to use one of the ways depicted on the wiki page above, preferably the standard Xlib '-geometry' option.

Bye, Rob.

Last edited by gotmor (2011-07-05 18:12:22)

Offline

#12 2011-07-05 18:37:05

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED]Few questions about DWM

Draucia: please edit your original post and replace your questions. Otherwise this thread is useless.

Forum Etiquette wrote:

Posting the equivalent of 'Nevermind, I fixed it.' in your thread or deleting your own posts for similar reasons is not only selfish and useless to the community, but a complete waste of resources and everyone's time.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#13 2011-07-05 22:11:16

Draucia
Member
Registered: 2011-06-05
Posts: 128

Re: [SOLVED]Few questions about DWM

jasonwryan wrote:

Draucia: please edit your original post and replace your questions. Otherwise this thread is useless.

Forum Etiquette wrote:

Posting the equivalent of 'Nevermind, I fixed it.' in your thread or deleting your own posts for similar reasons is not only selfish and useless to the community, but a complete waste of resources and everyone's time.

I updated it, sorry.

Offline

Board footer

Powered by FluxBB