You are not logged in.
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
You shouldn't run it as sudo.
Anyway, try to switch to root end echo $PANEL_FIFO
Offline
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
/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)
Offline
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.
What's the content of your /etc/environment?
export PANEL_FIFO=/tmp/panel-fifo
(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
Visit my blog and my DeviatArt page
Offline
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
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
Offline
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.
Offline
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
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 )
Wifi SSID
#!/bin/sh
iwgetid -r
This'll look super slick once it's setup
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
I've managed to get it all working
How?
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" &
Offline
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.
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 Nice one Bastien, your patience is greatly appreciated.
Visit my blog and my DeviatArt page
Offline
Okay, it works, but the special characters aren't being displayed
(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
Offline
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:
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
Visit my blog and my DeviatArt page
Offline
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
Offline
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!
Visit my blog and my DeviatArt page
Offline
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
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.)
Offline
Visit my blog and my DeviatArt page
Offline
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.
Last edited by Hspasta (2013-04-03 01:26:17)
Offline
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.
Offline