You are not logged in.
Hello!
I'm banging my head finding a solution about docking all workspaces with dzen2 on spectrwm but i'm not able to find anywhere a solution.
I use this code
#!/bin/sh
FONT='snap-8'
exec conky -d -c "./.config/dzcon/conky" | dzen2 -dock -e 'button2=;' -bg "#2B252D" -ta right -w 2000 -h 14 -x 0 -y 0 -fn $FONT &
exit 0
Only workspace 1 is docked properly, others Mod+2/+3 up to 10 remain a default spectrwm bar.
If i remove "-dock" feature, dzen2 panel appear on all workspaces but i want to use -dock so full screen applications "feh/mpv" to be shown without panel/bar.
So, Is there any way to make -dock all workspaces?
Thank you,
Nili
Tumbleweed (Server) | KDE Plasma (Wayland)
Offline
You have replaced the default spectrwm with that script, correct?
You can edit the ~/.spectrwm.conf so that:
maximize_hide_bar = 1
maximized windows will then cover the bar.
Are you using a ~/.spectrwm_<Your-Lang>.conf file for keybindings (I build from source so i have one, I don't think apt installs one)? There is a key binding to maximize windows if you need to maximize mpv etc ...
Otherwise, you should be able to set up a quirk in ~/.spectrwm.conf that will maximize mpv, feh, etc ... so they will open maximized - that should all be detailed in the spectrwm man page.
Last edited by PackRat (2016-07-27 12:54:42)
You must unlearn what you have learned.
-- yoda
Offline
Hi PackRat, thank you for your support.
I should mention some other details as well the .spectrwm config.
I'm running Debian jessie (stable) 8: 8.5 / spectrwm 2.6.0-1
.spectrwm
# window decoration
color_focus = rgb:61/57/72
color_unfocus = rgb:61/57/72
# bar settings
bar_enabled = 1
bar_at_bottom = 0
bar_border_width = 0
border_width = 2
bar_border[1] = rgb:2B/25/2D
bar_border_unfocus[1] = rgb:2B/25/2D
bar_color[1] = rgb:2A/24/2D
bar_font_color[1] = rgb:B5/B5/BA
bar_action = /home/nili/.config/dzcon/dzl
bar_justify = right
clock_enabled = 0
bar_format = +P+<+W+<+<+<+<+< %A %d, %r+<+<N:+I
bar_font = Ohsnap:size=9
# shortcuts
program[/home/nili/.config/palemoon/palemoon] = /home/nili/.config/palemoon/palemoon
bind[/home/nili/.config/palemoon/palemoon] = Shift+I
program[/home/nili/.dbeef/deadbeef] = /home/nili/.dbeef/deadbeef
bind[/home/nili/.dbeef/deadbeef] = Shift+D
program[spacefm] = spacefm
bind[spacefm] = Shift+S
program[scp] = scp
bind[scp] = Print
program[soff] = soff
bind[soff] = Shift+Print
program[ws_prev] = ws_prev
bind[ws_prev] = Insert
# open dmenu config
program[menu] = ~/.config/dmenu/dmenu-bind.sh
# open mpv video anywhere out of screen
quirk[mpv:x11] = FLOAT + FULLSCREEN + FOCUSPREV + ANYWHERE
quirk[XClock:xclock] = FLOAT + FULLSCREEN + FOCUSPREV
quirk[URxvt:urxvt] = FLOAT + FULLSCREEN + FOCUSPREV
quirk[XCalc:xcalc] = FLOAT + FULLSCREEN + FOCUSPREV
# Customize workspace layout at start
layout = ws[1]:0:1:0:0:horizontal
layout = ws[2]:0:1:0:0:horizontal
layout = ws[3]:0:1:0:0:horizontal
layout = ws[4]:0:1:0:0:horizontal
layout = ws[5]:0:1:0:0:horizontal
layout = ws[6]:0:0:0:0:vertical
# spectrwm startup autorun
#autorun = ws[1]:/home/nili/.dbeef/deadbeef
#autorun = ws[1]:/usr/local/bin/muxi
#autorun = ws[2]:spacefm
#autorun = ws[3]:/home/nili/.config/palemoon/palemoon
Yes, default setting is replaced with a personal config...
Adding
maximize_hide_bar = 1
tells a error on the spectrwm bar
No i'm not using anything else except .spectrwm && dmenu-bind.sh.
I installed using default debian repo "apt-get install spectrwm". I use quirk feature for feh/mpv. Works just fine on full screen.
My issue as i said above, the -dock feature on dzen2 doesn't cover all spectrwm workspaces.
workspace 1 OK | workspace 2/3/4/5 Not covered with dzen2 if "-dock is used". Only if i remove -dock @dzen2
#!/bin/sh
FONT='snap-8'
exec conky -d -c "./.config/dzcon/conky" | dzen2 -e 'button2=;' -bg "#2B252D" -ta right -w 2000 -h 14 -x 0 -y 0 -fn $FONT &
exit 0
all workspaces are covered just fine by dzen2 bar. "removing -dock" from config will not hide the dzen2 bar on feh/mpv fullscreen. This image is from feh full screen.
This stuff are really hard even to explain sorry, hope you understand what i mean.
Last edited by Nili (2016-07-27 13:42:31)
Tumbleweed (Server) | KDE Plasma (Wayland)
Offline
Messing around with your configs - should have spotted this at first (I'll blame it on only 1 cup of coffee) -
spectrwm doesn't have a dock area like openbox and fluxbox so spectrwm doesn't know how to handle "-dock" ; when I tried using it, dzen2 will launch, but spectrwm appears to treat it as a window instead of a panel so it's only on the desktop where it was launched. Because of the way spectrwm creates workspaces on the fly, there is no "sticky" quirk to use (I've tried it with stalonetray in the past).
Your other issue is that dzen2 defaults to always being above all other windows - don't know if you can change that. In your configuration, the bar is active, then your script puts the conky-dzen bar over the spectrwm bar - as opposed to piping conky to the bar - so your maximized window covers the spectrwm bar, but is below the dzen2 panel - see screenshot:
You use dzen2 for the clickable areas, correct? Right now, I'm thinking you need to find a way for dzen2 to be below active windows, or find a bar than can and also has clickable areas. I don't think there is a quirk to put a window "below" - doesn't really make sense for a tiler to have that, actually.
Last edited by PackRat (2016-07-27 15:50:03)
You must unlearn what you have learned.
-- yoda
Offline
Well, one coffee is enough i think. Better drink more tea or water than two or three coffee
-Edit- It was my fault above not posting spectrwm conf code at first
The first parts is very clear. Apparently looks like i have no chance.
The 2nd ones, My dzen2 issue:
Yo PackRat, are very accurate in determining all details regarding spectrwm/dzen2, in my opinion both tools spectrwm/dzen2 do not go very well with each others.
I have to do some changes and accepting some strage results like you noted.
Sometimes, i just want to throw away dzen2 losing some clickable area (your code mostly) to have a clean functional panel in default with conkyrc or some personal code.
Or finding another bar like lemonbar.
If you remember this thread i said once "i don't want to use dzen2 in spectrwm" precisely for the reasons you noted.
I have not had much success with my research doing dzen2 in front above window's or find a peace with spectrwm, I have ignored mostly and accepted the non sense
Appreciate your suggestion to look on something else or blast my head finding a solution within the dzen2.
Last edited by Nili (2016-07-27 16:42:37)
Tumbleweed (Server) | KDE Plasma (Wayland)
Offline
Well, one coffee is enough i think. Better drink more tea or water than two or three coffee
Blasphemy! Spoken like a true continental.
I don't care what you do at home. Would you care to explain?
Online
Blasphemy! Spoken like a true continental.
It is well kown that harms body and health anywya...
Back on topic
I tested my dzen2 code with herbstluftwm got the same results, something is going wrong with my code or dzen2 as a bar.
I'll do my research or giveup from dzen2 in favor of other panel.
Tumbleweed (Server) | KDE Plasma (Wayland)
Offline
There is nothing wrong with your code. I tried it in fluxbox, and get the same behavior from dzen2 in that it's default is to stay above all windows. Since fluxbox (openbox) have per app settings that allow for placing apps on certain layers, that can (most likely) be overcome. Spectrwm doesn't have that capability.
You must unlearn what you have learned.
-- yoda
Offline
Doing my research i read many feedback about dzen2 issues. As it good it is for features clickable, txt colors, icons but when it comes to panels and bar it has these concerns.
I just removed dzen2 and made adjustments on .spectrwm.conf/dmenu/.conkyrc.
Perhaps i would try it another time when a new version come out.
Fluxbox and Openbox are stack WM, perhaps there is missing features for tiling on dzen2?
On my #! years used to use dzen2 with tint2 and openbox but never had issue like on current spectrwm.
I had to purge to let alone spectrwm with his bar and conky-cli. This interested me above all.
Thanks again for trying PackRat. Appreciate very much your effort.
Tumbleweed (Server) | KDE Plasma (Wayland)
Offline
Fluxbox and Openbox are stack WM, perhaps there is missing features for tiling on dzen2?
I believe that falls under EWMH compliance.
If you know how to code, and are really motivated, you may be able to hack/patch the spectrwm code and make the bar more like i3 or dwm so it's clickable.
Last edited by PackRat (2016-07-28 12:47:05)
You must unlearn what you have learned.
-- yoda
Offline
Well, motivated i am but a coder no not at all. I mean i have not the necessary skills for hack a wm.
I'll cook only conky stuff a lil better
It's just fine to use spectrwm keyboard only. My stuff are still adapted on spectrwm.conf so $MOD+X / $MOD+Y are handy too.
Tumbleweed (Server) | KDE Plasma (Wayland)
Offline