CWM Any CWM users here? Which status bar do you use & best way to show VPN info?

MasterOne

Active Member

Reaction score: 8
Messages: 118

I'm tempted to give vermaden's FreeBSD Desktop Series a try, but with x11-wm/cwm instead of x11-wm/openbox as windows manager.

I thought about the necessity of a status bar, but I can't really imagine having none and if only for date/time and network info. Having done some reading sticking to x11/dzen2 or vetelko/termbar may be the way to go.

Any idea what the easiest solution is to show VPN info in the status bar (using OpenVPN to connect to a VPN provider; name of used VPN node -> could be determined from the name of the used OpenVPN config file, IP address / gateway or just VPN on/off could be plausible things to be displayed)? I want to go for vermaden's network.sh script based approach for network management enhanced with added VPN management.

Thoughts about the use of x11-wm/cwm in general and the fact that the port uses the portable version of Leah Neukirchen which is based on version 6.3 dated with May 2018?
 

vermaden

Son of Beastie

Reaction score: 1,361
Messages: 2,916

You can also try polybar for the 'bar' app.

... and please share your VPN mods to the network.sh once you finish them, it will be valuable addition to already quite feature rich network.sh script. Thanks in advance.

I replied to you comment here (sorry for late response):

Regards,
vermaden
 

Sevendogsbsd

Aspiring Daemon

Reaction score: 522
Messages: 974

I use x11-wm/cwm on and off but never a bar. Not sure why, just never used one. I like x11-wm/cwm except for the window kill and logout keyboard shortcuts. It is definitely impossible to accidentally log out or kill a window though...I bounce back and forth between x11-wm/fluxbox and x11-wm/cwm but mainly use x11-wm/fluxbox for the bar and easy keyboard shortcuts I have customized.
 

shepper

Aspiring Daemon

Reaction score: 305
Messages: 850

x11/tint2 has an executor feature. It essentially provides a taskbar icon that will execute a script. The web is full of various vpn scripts.
x11/yad makes for an easy way to graphically implement scripts. yad --notification will put the icon into a freedesktop compliant system tray.

The BunsenLabs and Puppy forum have alot of yad scripts that can be used as a foundation.
https://forums.bunsenlabs.org/viewtopic.php?id=1978
 

fort77

New Member

Reaction score: 1
Messages: 9

I'm tempted to give vermaden's FreeBSD Desktop Series a try, but with x11-wm/cwm instead of x11-wm/openbox as windows manager.

I thought about the necessity of a status bar, but I can't really imagine having none and if only for date/time and network info. Having done some reading sticking to x11/dzen2 or vetelko/termbar may be the way to go.

Any idea what the easiest solution is to show VPN info in the status bar (using OpenVPN to connect to a VPN provider; name of used VPN node -> could be determined from the name of the used OpenVPN config file, IP address / gateway or just VPN on/off could be plausible things to be displayed)? I want to go for vermaden's network.sh script based approach for network management enhanced with added VPN management.

Thoughts about the use of x11-wm/cwm in general and the fact that the port uses the portable version of Leah Neukirchen which is based on version 6.3 dated with May 2018?
So have you had any success with using cwm on FreeBSD with a status bar? I use tint2 on Openbox and it integrates very well. I wonder how to go about using the same on cwm, particularly where to add "exec tint2" statement.
 
OP
M

MasterOne

Active Member

Reaction score: 8
Messages: 118

So have you had any success with using cwm on FreeBSD with a status bar? I use tint2 on Openbox and it integrates very well. I wonder how to go about using the same on cwm, particularly where to add "exec tint2" statement.
Didn't follow that idea in particular, but I have just received a new laptop on which I intend to install OpenBSD to use it with CWM from the base system instead.

Not sure about the bar yet though, a simple solution like oxbar or termbar comes to mind, but also just doing it with tmux may be an idea, as it has been mentioned here.
 

Sevendogsbsd

Aspiring Daemon

Reaction score: 522
Messages: 974

So have you had any success with using cwm on FreeBSD with a status bar? I use tint2 on Openbox and it integrates very well. I wonder how to go about using the same on cwm, particularly where to add "exec tint2" statement.
I only run a window manager from .xinitrc so that is my answer but not sure if you use a login manager. If that is the case, I have no idea, I have never used one.
 

phalange

Active Member

Reaction score: 30
Messages: 104

where to add "exec tint2" statement.
I used to use tint2 as well, and I just add
Code:
tint2 &
to my xinitrc. You only want 'exec' for the last line that starts the wm. I believe openbox has an autostart file, but adding programs to xinitrc will work there too.
 

kpedersen

Daemon

Reaction score: 1,039
Messages: 2,045

You can make your own "bar" by running things like xclock with the "-geometry" parameter.
Then in the cwmrc config file just use the "ignore" flag to get it to ignore that window.
 

fort77

New Member

Reaction score: 1
Messages: 9

I used to use tint2 as well, and I just add
Code:
tint2 &
to my xinitrc. You only want 'exec' for the last line that starts the wm. I believe openbox has an autostart file, but adding programs to xinitrc will work there too.
Thanks, this sounds good.
 

fort77

New Member

Reaction score: 1
Messages: 9

I only run a window manager from .xinitrc so that is my answer but not sure if you use a login manager. If that is the case, I have no idea, I have never used one.
I use SLIM, and works perfectly with Openbox and tint2.
 

fort77

New Member

Reaction score: 1
Messages: 9

Didn't follow that idea in particular, but I have just received a new laptop on which I intend to install OpenBSD to use it with CWM from the base system instead.

Not sure about the bar yet though, a simple solution like oxbar or termbar comes to mind, but also just doing it with tmux may be an idea, as it has been mentioned here.
oxbar looks very elegant, I could not locate on fresh ports though. is there a way to install on FreeBSD?
 
Top