No, no confusion. I have a single 49" screen and using herbstluftwm I have set three tags using the following:
hc set_monitors 1280x1400+0+40 2560x1400+1280+40 1280x1400+3840+40
When I open on the middle tag (2560x1400+1280+40) the left side of the fulscreen from youtube sits nicely on the left of this tag,
but the right hand side continues past and under the tag to the right (1280x1400+3840+40) and is doig a full screen for a screen with the
full dimensions of 5120x1440+0+0
Not sure if anyone covered this and I missed it, but I have my config setup to have 3 tags / virtual desktops set and if my web browser is open on any of them and running youtube (as an example), when I select "fullscreen" from within youtube, it recognises my left border of current tag but then extends off as though it is no the size of
my whole monitor. If I do this in the middle tag, it will go from the left edge and then sort of disappear under my right tag.So my question is, how does something like youtube work out the size of the screen to fill?
And is there a way to tell it to only fill the tag I am on?
There is some confusion in the terminology: you probably have three monitors side by side? Does it work correctly for other applications if you manually toggle the fullscreen state via Mod-f?
]]>So my question is, how does something like youtube work out the size of the screen to fill?
And is there a way to tell it to only fill the tag I am on?
Nevermind, I needed to read the wiki better and rescan/rebuild with mkfontscale and mkfontdir.
Cheers!
]]>Do you have the standard herbstluftwm panel.sh? It seems that $width is not set in your panel.sh. Do you have the textwidth utility on your system? (it should be shipped together with dzen2). textwidth is used to compute $width. Independently: does your panel.sh work if you omit the -fn '-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*'?
Yes, I've recopied the file from /etc/xdg/herbstluftwm/panel.sh to make sure. I recopy it after I've made changes to test/troubleshoot this.
textwidth is available. When I try to run it manually I get:
$ textwidth
usage: textwidth <font> <string>
$ textwidth "-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*" "bla bla bla"
error, cannot load font: '-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*'
So, I think I found the issue: pixel size 10, 11, 12 are not available, but 13 is:
$ textwidth "-*-fixed-medium-*-*-*-13-*-*-*-*-*-*-*" "bla bla bla"
66
Now I need to figure out how to install those fonts. I installed a bunch already after reinstalling but apparently I'm still missing some.
Thanks a lot for your assistance Thorsten, really appreciate it!
]]>Do you see anything in the bar if you run the following command?
$ { echo Hello ; cat ; } | dzen2 -x 0 -y 0 -fn '-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*' -h 16 # runs til ^C
If yes, what about the following?
$ { echo Hello ; cat ; } | dzen2 -w 3440 -x 0 -y 0 -fn '-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*' -h 16 -e 'button3=;button4=exec:herbstclient use_index -1;button5=exec:herbstclient use_index +1' -ta l -bg '#101010' -fg '#efefef'
If no, what about this?
$ { echo Hello ; cat ; } | dzen2
In any case, press Ctrl+C to quit it.
All three examples give me a bar; first one centered, second left, third left as well but larger font.
When I edit the panel.sh to just output what is gathered (instead of piping it to 2> /dev/null | dzen2 etc), I get this:
^bg(#9fbc00)^fg(#101010)^ca(1,herbstclient focus_monitor "0" && herbstclient use "One") One ^ca()^bg()^fg(#ababab)^ca(1,herbstclient focus_monitor "0" && herbstclient use "Two") Two ^ca()^bg()^fg(#ababab)^ca(1,herbstclient focus_monitor "0" && herbstclient use "Three") Three ^ca()^bg()^fg(#ababab)^ca(1,herbstclient focus_monitor "0" && herbstclient use "Four") Four ^ca()^bg()^fg(#ababab)^ca(1,herbstclient focus_monitor "0" && herbstclient use "Gimp") Gimp ^ca()^bg()^fg(#9fbc00)|^bg()^fg() error, cannot load font: '-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*'
.config/herbstluftwm/panel.sh: line 126: 3440 - : syntax error: operand expected (error token is "- ")
Line 126 in my file is:
echo -n "^pa($(($panel_width - $width)))$right"
edit: missed it initially, but it also says:
error, cannot load font: '-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*'
$ { echo Hello ; cat ; } | dzen2 -x 0 -y 0 -fn '-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*' -h 16 # runs til ^C
If yes, what about the following?
$ { echo Hello ; cat ; } | dzen2 -w 3440 -x 0 -y 0 -fn '-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*' -h 16 -e 'button3=;button4=exec:herbstclient use_index -1;button5=exec:herbstclient use_index +1' -ta l -bg '#101010' -fg '#efefef'
If no, what about this?
$ { echo Hello ; cat ; } | dzen2
In any case, press Ctrl+C to quit it.
]]>Hi Mouseman,
What happens when you run the panel from your terminal?~/.config/herbstluftwm/panel.sh
Is there any error message? Maybe you need an xft-version of dzen2, but this is just a guess.
when you see the green bar, is there a process named dzen2? (You can check this by running ps aux|grep dzen2 from another terminal)
Thanks Thorsten, I've done some tests.
When I run panel.sh, nothing happens, it doesn't return the prompt immediately, it takes ~20 seconds but outputs nothing. I ran this line in another terminal:
$ for i in {1..10000}; do ps aux|grep [d]zen2;done
It does actually output 2 lines:
mouseman 13923 0.0 0.0 42536 8620 pts/0 R+ 19:08 0:00 dzen2 -w 3440 -x 0 -y 0 -fn -*-fixed-medium-*-*-*-12-*-*-*-*-*-*-* -h 16 -e button3 button4 exec herbstclient use_index -1 button5 exec herbstclient use_index +1 -ta l -bg #101010 -fg #efefef
mouseman 13923 0.0 0.0 42748 12316 pts/0 S+ 19:08 0:00 dzen2 -w 3440 -x 0 -y 0 -fn -*-fixed-medium-*-*-*-12-*-*-*-*-*-*-* -h 16 -e button3 button4 exec herbstclient use_index -1 button5 exec herbstclient use_index +1 -ta l -bg #101010 -fg #efefef
When I run:
$ bash -x .config/herbstluftwm/panel.sh
It outputs:
++ quote herbstclient
+++ printf '%q ' herbstclient
++ local 'q=herbstclient '
++ printf %s herbstclient
+ hc_quoted=herbstclient
+ monitor=0
+ geometry=($(hc monitor_rect "$monitor"))
++ hc monitor_rect 0
++ herbstclient monitor_rect 0
+ '[' -z 0 ']'
+ x=0
+ y=0
+ panel_width=3440
+ panel_height=16
+ font='-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*'
++ hc get frame_border_normal_color
++ herbstclient get frame_border_normal_color
+ bgcolor='#101010'
++ hc get window_border_active_color
++ herbstclient get window_border_active_color
+ selbg='#9fbc00'
+ selfg='#101010'
+ which textwidth
+ textwidth=textwidth
+ dzen2 -v
+ grep -q '^dzen-\([^,]*-svn\|\),'
+ head -n 1
+ dzen2_svn=true
+ awk -Wv
+ head -1
+ grep -q '^mawk'
+ hc pad 0 16
+ herbstclient pad 0 16
+ dzen2 -w 3440 -x 0 -y 0 -fn '-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*' -h 16 -e 'button3=;button4=exec:herbstclient use_index -1;button5=exec:herbstclient use_index +1' -ta l -bg '#101010' -fg '#efefef'
I'm not sure but that looks alright to me?
Maybe its missing a proper font?
Thanks again!
]]>~/.config/herbstluftwm/panel.sh
Is there any error message? Maybe you need an xft-version of dzen2, but this is just a guess.
when you see the green bar, is there a process named dzen2? (You can check this by running ps aux|grep dzen2 from another terminal)
]]>Just to confirm that those appear to be the defaults, you can check /usr/xdg/herbstluftwm/ to make sure. AFAIK dzen2 is the only dependency needed.
/etc/xdg/herbstluftwm ;-)
Thanks! I forgot about that. I compared the files and even just copied those defaults to ~/.config/herbstluftwm and restarted. Same issue, just a green bar.
It's gotta be something simple ... lol.
]]>Had to reinstall recently and restored config files from backup. Herbst works fine as it did before, except my panel is just a green bar.
In autostart, I have this block (I think its default?):
# find the panel
panel=~/.config/herbstluftwm/panel.sh
[ -x "$panel" ] || panel=/etc/xdg/herbstluftwm/panel.sh
for monitor in $(herbstclient list_monitors | cut -d: -f1) ; do
# start it on each monitor
"$panel" $monitor &
done
I'm not sure where my panel.sh came from (thorsten's github?) or whether that's just default from the pkg install. It's unchanged. At the bottom it has the -fg parameter which is the foreground color right?
} 2> /dev/null | dzen2 -w $panel_width -x $x -y $y -fn "$font" -h $panel_height \
-e 'button3=;button4=exec:herbstclient use_index -1;button5=exec:herbstclient use_index +1' \
-ta l -bg "$bgcolor" -fg '#efefef'
I changed that to #00000 or #ffffff but it makes no difference.
I think after going over everything, I am missing some dependency. I did install dzen2 and i3status (not even sure I needed that i3). Is there anything that I need for dependencies?
Thanks!
]]>Thank you for the quick and helpful reply. I followed your instructions in post #444 and luakit is marked as urgent on tag 8 when opened, as wanted. Many thanks for the solution, its much appreciated!!
I looked over the script and realize that I need to go and RTFM for herbstluftwm more closely when it comes to leveraging many of the features in this outstanding WM. No doubt that the script and info you provided will be most helpful with this.
Cheers and thanks again. Really appreciate the time and effort you have put into herbstluftwm!
]]>