You are not logged in.

#201 2013-04-01 21:11:11

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: bspwm — A tiling window manager based on binary space partitioning

Starfall wrote:

Well, this is what I have, does it look right?

Yes, what are the exact error messages?


gh · da · ds · cr · ab · fkr

Offline

#202 2013-04-01 21:19:45

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

Re: bspwm — A tiling window manager based on binary space partitioning

bloom wrote:

Yes, what are the exact error messages?

If I run as a normal user, no output is given, however if I run with sudo, here's the output:

/usr/local/bin/panel: line 5: : No such file or directory
/usr/local/bin/panel: line 6: : No such file or directory

As I stated, I can confirm that the PANEL_FIFO is being recognised if I echo or cat it. I haven't modified your scripts in any way and I have panel, panel_dzen2 & panel_colors all in the same directory.

Thanks for the help with this, looks like you've been hard at work, so I really appreciate it.


Visit my blog and my DeviatArt page

Offline

#203 2013-04-01 21:25:16

cippaciong
Member
Registered: 2010-06-21
Posts: 104
Website

Re: bspwm — A tiling window manager based on binary space partitioning

You shouldn't run it as sudo.
Anyway, try to switch to root end echo $PANEL_FIFO

Offline

#204 2013-04-01 21:29:26

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

Re: bspwm — A tiling window manager based on binary space partitioning

cippaciong wrote:

You shouldn't run it as sudo.
Anyway, try to switch to root end echo $PANEL_FIFO

Yup, I know, I just thought I'd at least try. And it doesn't look like root is picking that environment variable up. Though, as it's being picked up as a normal user, and I'm running this as a normal user, it should be working? Nothing is printed to stdout when running 'panel' from the shell, but nothing happens (dzen2 isn't launched).


Visit my blog and my DeviatArt page

Offline

#205 2013-04-01 21:34:12

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: bspwm — A tiling window manager based on binary space partitioning

Starfall wrote:
/usr/local/bin/panel: line 5: : No such file or directory
/usr/local/bin/panel: line 6: : No such file or directory

Obviously it means the environment variable is not defined: have you logged out?

What's the content of your /etc/environment?

(You should probably use ~/.pam_environment instead and put the scripts in ~/bin.)

Last edited by bloom (2013-04-01 21:35:25)


gh · da · ds · cr · ab · fkr

Offline

#206 2013-04-01 21:36:44

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: bspwm — A tiling window manager based on binary space partitioning

Starfall wrote:

running 'panel' from the shell

Do you mean panel dzen2?


gh · da · ds · cr · ab · fkr

Offline

#207 2013-04-01 21:48:05

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

Re: bspwm — A tiling window manager based on binary space partitioning

bloom wrote:

Obviously it means the environment variable is not defined: have you logged out?

Yeah I realise that, as I previously stated, however, this is only not realised as root, which I won't be executing as anyway. As I said, I can see the environment variable is defined when echoing and catting it from a normal user shell.

I have logged out, logged back in and my system has been rebooted since.

bloom wrote:

What's the content of your /etc/environment?

export PANEL_FIFO=/tmp/panel-fifo

bloom wrote:

(You should probably use ~/.pam_environment instead and put the scripts in ~/bin.)

~/.pam_environment? I've never heard of setting environment variables using pam. I don't mind using the setup I have right now smile


Visit my blog and my DeviatArt page

Offline

#208 2013-04-01 21:48:57

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

Re: bspwm — A tiling window manager based on binary space partitioning

bloom wrote:
Starfall wrote:

running 'panel' from the shell

Do you mean panel dzen2?

Yes, apologies, I meant running panel dzen2. Still nothing printed to stdout and dzen2 doesn't run.


Visit my blog and my DeviatArt page

Offline

#209 2013-04-01 21:49:23

cippaciong
Member
Registered: 2010-06-21
Posts: 104
Website

Re: bspwm — A tiling window manager based on binary space partitioning

bloom wrote:
Starfall wrote:
/usr/local/bin/panel: line 5: : No such file or directory
/usr/local/bin/panel: line 6: : No such file or directory

Obviously it means the environment variable is not defined: have you logged out?

What's the content of your /etc/environment?

(You should probably use ~/.pam_environment instead and put the scripts in ~/bin.)

Sorry for the OT bloom but, if I want to use ~/.pam_environment, do I need to source it in my ~/.bash_profile or is not necessary?

Offline

#210 2013-04-01 22:01:21

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: bspwm — A tiling window manager based on binary space partitioning

Starfall wrote:
bloom wrote:

What's the content of your /etc/environment?

export PANEL_FIFO=/tmp/panel-fifo

This is wrong.

It should be:

PANEL_FIFO=/tmp/panel-fifo

(See examples/panel/pam_environment.)


gh · da · ds · cr · ab · fkr

Offline

#211 2013-04-01 22:05:10

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: bspwm — A tiling window manager based on binary space partitioning

cippaciong wrote:

Sorry for the OT bloom but, if I want to use ~/.pam_environment, do I need to source it in my ~/.bash_profile or is not necessary?

No it isn't necessary.

But I wouldn't recommend using ~/.pam_environment unless you know what you're doing.


gh · da · ds · cr · ab · fkr

Offline

#212 2013-04-01 22:18:49

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

Re: bspwm — A tiling window manager based on binary space partitioning

Editing this post so I don't clog this thread up

There was some useless information here about my problems, however, I've managed to get it all working smile

The only thing I want to be able to do now is add wifi and battery percentage to dzen2 in the top right with the clock.

I use these short scripts to get that info:

Battery

#! /bin/sh

echo "♥" $(acpi | cut -d ',' -f 2)

(Though I don't think dzen2 can handle the heart character wink)

Wifi SSID

#!/bin/sh

iwgetid -r

This'll look super slick once it's setup big_smile

P.S: Thanks for the help guys, I know I've been a pain.

Last edited by Starfall (2013-04-01 23:34:04)


Visit my blog and my DeviatArt page

Offline

#213 2013-04-02 09:33:04

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: bspwm — A tiling window manager based on binary space partitioning

Starfall wrote:

I've managed to get it all working smile

How?

Starfall wrote:

The only thing I want to be able to do now is add wifi and battery percentage to dzen2 in the top right with the clock.

Here's a little script I made, let's call it status:

#! /bin/sh

while true ; do
    echo "S^fg(gold)⇅^fg(grey) $(iwgetid --raw)   ^fg(pink)♥ ^fg(grey) $(acpi -b | grep -o '[0-9]\+%')   ^fg(cyan)↻^fg(grey) $(date '+%A %H:%M')"
    sleep 5
done

Put it in your path, and replace this line (in panel):

clock 'S%A %H:%M' 5 > "$PANEL_FIFO" &

by

status > "$PANEL_FIFO" &

gh · da · ds · cr · ab · fkr

Offline

#214 2013-04-02 11:08:07

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

Re: bspwm — A tiling window manager based on binary space partitioning

bloom wrote:

How?

I actually had to slightly modify the script. Firstly I removed the flavour argument function, as I know I'll only be using dzen2. Then, through trial and error, I actually ended up remove the appearance variables and their relevant switches when calling dzen2, no idea why the heck these were causing it to not launch, but, without them it works perfectly. So, to make it look pretty I just set my options in .Xresources. There's no doubt this will be due to something I'm doing/on my system, but, as long as it's working for me, I'm happy. And it looks great by the way, very cool. I can provide the modified code if you're curious, however it's only stuff I've removed.

bloom wrote:

Here's a little script I made, let's call it status:

#! /bin/sh

while true ; do
    echo "S^fg(gold)⇅^fg(grey) $(iwgetid --raw)   ^fg(pink)♥ ^fg(grey) $(acpi -b | grep -o '[0-9]\+%')   ^fg(cyan)↻^fg(grey) $(date '+%A %H:%M')"
    sleep 5
done

Put it in your path, and replace this line (in panel):

clock 'S%A %H:%M' 5 > "$PANEL_FIFO" &

by

status > "$PANEL_FIFO" &

Awesome! I've got my laptop with me at work, so I'll get this implemented and show you the results smile Nice one Bastien, your patience is greatly appreciated.


Visit my blog and my DeviatArt page

Offline

#215 2013-04-02 12:21:55

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

Re: bspwm — A tiling window manager based on binary space partitioning

Okay, it works, but the special characters aren't being displayed tongue

4KToV

(P.S - Ignore the white line through the text, that's scrot being a bit wonky)

Last edited by Starfall (2013-04-02 12:22:32)


Visit my blog and my DeviatArt page

Offline

#216 2013-04-02 12:23:49

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: bspwm — A tiling window manager based on binary space partitioning

Starfall wrote:

I can provide the modified code if you're curious, however it's only stuff I've removed.

Yes, I'm curious smile.


gh · da · ds · cr · ab · fkr

Offline

#217 2013-04-02 12:30:39

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: bspwm — A tiling window manager based on binary space partitioning

Starfall wrote:

Okay, it works, but the special characters aren't being displayed tongue

The font you're using don't have those characters.

I'd recommend DejaVu Sans.


gh · da · ds · cr · ab · fkr

Offline

#218 2013-04-02 12:43:33

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

Re: bspwm — A tiling window manager based on binary space partitioning

bloom wrote:

The font you're using don't have those characters.

I'd recommend DejaVu Sans.

Ah, well that was simple enough! Though the clock is now being cut off:

shjjN

Also, here's the modified script:

#! /bin/sh
xtitle -sf 'T%s' > "$PANEL_FIFO" &
status > "$PANEL_FIFO" &
cat "$PANEL_FIFO" | panel_dzen2 | dzen2 -dock -ta l -title-name panel &

Like I said, it's just simply stripped down smile


Visit my blog and my DeviatArt page

Offline

#219 2013-04-02 12:52:36

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: bspwm — A tiling window manager based on binary space partitioning

Starfall wrote:

Though the clock is now being cut off

That's because you don't use the same font family (and/or the same font size) for panel_dzen2 and dzen2.

If your font specification for dzen2 is DejaVu Sans:pixelsize=11 for example, you must call panel_dzen2 with:

panel_dzen2 -f "DejaVu Sans" -s 11

gh · da · ds · cr · ab · fkr

Offline

#220 2013-04-02 13:13:32

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

Re: bspwm — A tiling window manager based on binary space partitioning

bloom wrote:

That's because you don't use the same font family (and/or the same font size) for panel_dzen2 and dzen2.

If your font specification for dzen2 is DejaVu Sans:pixelsize=11 for example, you must call panel_dzen2 with:

panel_dzen2 -f "DejaVu Sans" -s 11

Yup, that sorted it. It's working great! smile


Visit my blog and my DeviatArt page

Offline

#221 2013-04-02 21:44:32

Hspasta
Member
Registered: 2011-12-24
Posts: 187
Website

Re: bspwm — A tiling window manager based on binary space partitioning

I'm not sure if this is a compton problem or a bspwm problem, but compton can't seem to detect focus at all. I have it set so that inactive windows are dimmed, but nothing dims.

This might be because I have a really basic setup and I cant even focus windows with the mouse atm.

Offline

#222 2013-04-02 22:13:30

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: bspwm — A tiling window manager based on binary space partitioning

Hspasta wrote:

I'm not sure if this is a compton problem or a bspwm problem, but compton can't seem to detect focus at all. I have it set so that inactive windows are dimmed, but nothing dims.

The following works fine for me:

compton -i 0.5

(I'm using compton-git.)


gh · da · ds · cr · ab · fkr

Offline

#223 2013-04-02 22:19:31

Starfall
Member
From: /home/
Registered: 2011-05-24
Posts: 209
Website

Re: bspwm — A tiling window manager based on binary space partitioning

So, here's my first bspwm shot. Looks hot doesn't it? wink

say_cheese_by_eternalkernel-d607xq3.png


Visit my blog and my DeviatArt page

Offline

#224 2013-04-03 01:24:13

Hspasta
Member
Registered: 2011-12-24
Posts: 187
Website

Re: bspwm — A tiling window manager based on binary space partitioning

bloom wrote:
Hspasta wrote:

I'm not sure if this is a compton problem or a bspwm problem, but compton can't seem to detect focus at all. I have it set so that inactive windows are dimmed, but nothing dims.

The following works fine for me:

compton -i 0.5

(I'm using compton-git.)

I'm also using compton-git and bspwm-git.

The only thing that works from compton is the drop-shadow. Also, the focus on chromium doesn't work right either. The background behind the tabs should be a darker color when focused, but it stays in the unfocused color.

http://ompldr.org/vaHl6eg

Last edited by Hspasta (2013-04-03 01:26:17)

Offline

#225 2013-04-03 09:10:36

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: bspwm — A tiling window manager based on binary space partitioning

Starfall wrote:

So, here's my first bspwm shot.

Looks nice.

I only noticed one slight problem: when you removed all the arguments passed to dzen2 in the example panel, you also removed -h 24 and you ended up with the default dzen2 height which is too small.


gh · da · ds · cr · ab · fkr

Offline

Board footer

Powered by FluxBB