FVWM

graudeejs

Son of Beastie

Thanks: 686
Messages: 4,611

#28
DemoDoG said:
KDE4 is just for show. In my eyes this is true beauty:
http://www.boomkracker.com/screenshots/OpenBSD-FVWM2.png
but that´s just my disturbed kind of taste :)
no that ain't good... lol
however, it's not beauty behind my fvwm config. I wouldn't count my config as very beautiful. I made it, because i wanted unique desktop, that's why i'm still thinking about sharing my config.

The best part of my config, is how it feels when you use it.
I can't use anything else, now, i'm so used to it, that everything else, just ain't right for me.
I'm addicted to my config
 

Gabe_G23

New Member

Thanks: 1
Messages: 11

#29
killasmurf86 said:
however, it's not beauty behind my fvwm config. I wouldn't count my config as very beautiful. I made it, because i wanted unique desktop, that's why i'm still thinking about sharing my config.

The best part of my config, is how it feels when you use it.
I can't use anything else, now, i'm so used to it, that everything else, just ain't right for me.
I'm addicted to my config
Ugh. I wish you'd post it :(.
 

DemoDoG

Active Member

Thanks: 1
Messages: 193

#30
Its´ interesting to see how many posts for fvwm2, gotta be the most used wm by freebsd users :) except for terminal perhaps hehe.
 

DemoDoG

Active Member

Thanks: 1
Messages: 193

#31
I would like to script fvwm2 to only have a pager at the bottom thats all, and no borders around it. Anyone got a nice config for that?
 

DemoDoG

Active Member

Thanks: 1
Messages: 193

#33
Okay I will try with the help of google :) I would also like to know how I can get only 4 squares in the pager instead of 9.
 

graudeejs

Son of Beastie

Thanks: 686
Messages: 4,611

#34
DemoDoG said:
Okay I will try with the help of google :) I would also like to know how I can get only 4 squares in the pager instead of 9.
it depends....
Code:
DeskTopSize 2x2
this will create 1 big virtual desktop (like one monitor split to 4 parts, each at size of your monitor)


Code:
DesktopSize 1x1
DesktopName 0 "Internet"
DesktopName 1 "Active"
DesktopName 2 "Active2"
DesktopName 3 "Background"
this will create 4 virtual desktops
 

DemoDoG

Active Member

Thanks: 1
Messages: 193

#35
thanx it worked good and I got the pager transparent too. there is a problem though, when I click on a desktop it gets black but when I click on another, the old one statys black. so if I click on them all they are all black. I want them to return to transparent again. I guess there is just some miss in the config I have made.
 

ILUXA

Aspiring Daemon

Thanks: 338
Messages: 546

#37
02-07-18_03:25:44.png

Here is my FVWM config, I've already posted it in "Screen Shots" topic several months ago,
but this one is more polished with some new features, I've created it after more than year of
FVWM usage as my main WM. Also topic starter asked for FVWM config 10 years ago, back in 2008 :)
It is intended to use with Vertex GTK theme by horst3180 and it uses some of its colors and titlebar buttons images.
Menu icons where taken from Vivacious Colors icon theme.

0. Install FVWM # pkg ins x11-wm/fvwm2, if it isn't installed yet.

1. Fetch and install Vertex GTK theme and its dependencies.
% sudo pkg ins automake autoconf pkgconf gtk-murrine-engine gdk-pixbuf2 git-lite
% git clone https://github.com/horst3180/vertex-theme --depth 1 && cd vertex-theme
% ./autogen.sh --prefix=/usr/local
% sudo make install

2. Install x11-themes/lxappearance, launch it and choose Vertex theme.

3. Download fvwm.zip archive and extract .fvwm dir from archive to your home dir (~/.fvwm).

4. Remove old FVWM configuration (like ~/.fvwm2rc) and launch or restart FVWM.

5. ???

6. Profit! Enjoy!

You also need to install following applications to have a fully working dock and some functions:
# pkg ins wmcpuload wmsystemtray wmmemload wmnd wmMoonClock wmclockmon sbxkb volumeicon dmenu xdg-utils py27-xdg lxmenu-data liberation-fonts-ttf rxvt-unicodeFor now the latest FVWM version in package repo is 2.6.7, but FVWM 2.6.8 was released,
I've created bug report with request to update x11-wm/fvwm2 to 2.6.8 and it was updated, so update your ports tree.
If you're using FVWM 2.6.8+ version, you should install py36-xdg instead of py27-xdg, because new version uses python3.
Also it is good idea to install xscreensaver, then you'll be able to lock the screen using "Options" menu. As a file manager
I use x11-fm/pcmanfm.

Also it is possible to use this config with GNU/Linux!
For example, for Debian based distros, like Devuan, you should install following packages:# apt install wmcpuload wmmemload wmsystemtray wmmoonclock wmnd wmclockmon gxkb volti suckless-tools xdg-utils python-xdg lxmenu-data fonts-liberation rxvt-unicode-256color (if you're using FVWM 2.6.8+ version, install python3-xdg instead of python-xdg ), then replace "*FvwmForm-Quit: Command Exec exec /sbin/shutdown -p now" with "*FvwmForm-Quit: Command Exec exec /sbin/shutdown -hP now" in ~/.fvwm/config, and uncomment appropriate "media keys" section
Code:
# Volume control (media keys) FreeBSD
#Key XF86AudioRaiseVolume A A        Exec exec mixer vol +7
#Key XF86AudioLowerVolume A A        Exec exec mixer vol -7
# Volume control (media keys) Linux
Key XF86AudioRaiseVolume A A        Exec exec amixer sset Master 7%+ unmute
Key XF86AudioLowerVolume A A        Exec exec amixer sset Master 7%- unmute
In Linux also you need to execute # chmod u+s /sbin/shutdown to shutdown or reboot via "Quit..." menu.

After you launch FVWM using following config, you should generate your XDG menu (applications menu)
execute % FvwmCommand FvwmConsole, FvwmConsole should appear, enter FvwmPerl -l fvwm-menu-desktop-config.fpl
in FvwmConsole and confirm, you'll see menu generator

tick appropriate options (do not change default "Output path"!), press "Save Menu" (or "Export Menu" if you use FVWM 2.6.8+).
Then, when FVWM will be restarted, XDG menu should be available via root menu (right desktop click),
If your locale is configured correctly, this menu should use your native language. Also it is possible to add
your custom .desktop files to ~/.local/share/applications, shortcuts from this dir will be also added to menu.
Root menu - XDGMenu, "Quit..." menu, window menu, icon menu, "Options" menu:

"Edit ..." menu entries from "Options" menu uses xdg-open to open files, so your default applications, like default editor, should be correctly set (it is possible to set your default applications using pcmanfm).
Check ~/.fvwm/config to see full keybindings list.


If you'll click pager borders with left mouse button, it should minimize all applications, when you'll click it again,
it will restore all applications, that were minimized before and its position (it is possible to use ctrl+alt+d as well).
If you'll click pager border with right mouse button, you should be able to see "Options" menu, middle mouse button - XDG menu,
mouse wheel should raise/lower dock. Also it is possible to move applications via pager with middle mouse click.
Here is my wallpaper from screenshot, it is a little bit edited wallpaper from gnome-backgrounds-3.18.0.
Inscription at the bottom says "ॐ नमः शिवाय".

To use transparency with some apps (like terminal emulator) and shadows,
x11-wm/compton should be installed. Here is my ~/.config/compton.conf:
Code:
backend = "xrender";
vsync = "opengl";
dbe = false;
glx-no-stencil = true;
detect-transient = true;
sw-opti = true;
detect-rounded-corners = true;
use-ewmh-active-win = true;
detect-client-opacity = true;
detect-client-leader = true;
vsync-use-glfinis = true;
paint-on-overlay = true;
mark-wmwin-focused = true;
mark-ovredir-focused = true;

shadow = true;
clear-shadow = true;
no-dnd-shadow = true;
no-dock-shadow = true;
shadow-ignore-shaped = true;
shadow-opacity = 0.8;
shadow-radius = 3;
shadow-offset-x = -5;
shadow-offset-y = -5;
shadow-exclude = [
	"class_g = 'conky'",
	"argb && (override_redirect || wmwin)" ];

fading = true;
fade-delta = 5;
no-fading-openclose = false;
fade-in-step = 0.03;
fade-out-step = 0.1;
frame-opacity = 1;
inactive-opacity = 1;

wintypes:
{
    tooltip = { fade = false; opacity = 0.85; };
    popup_menu = { fade = false; opacity = 0.9; };
    dropdown_menu = { fade = false; opacity = 0.85; };
    utility = { fade = true; opacity = 0.85; };
};

If you want to use left scrollbar with some GTK2/3 applications, like on first screenshot, add the following line (it should be without quotes in both files)
Code:
gtk-scrolled-window-placement=top-right
to ~/.gtkrc-2.0 and to ~/.config/gtk-3.0/settings.ini .
To use left scrollbar with www/firefox or www/palemoon, open about:config,
search for "layout.scrollbar.side" and set it to "3".

Also you need to set initial geometry of embedded drop-down terminal (to show/hide press F1), edit ~/.fvwm/config:
AddToFunc DropDownTerm
+ I None (drop_down_term, CurrentDesk) Exec exec urxvt -name drop_down_term -geometry 195x35
+ I ...
 
Last edited:

ILUXA

Aspiring Daemon

Thanks: 338
Messages: 546

#38
screenshot.png
To move titlebar buttons to right, when using my config, find following lines in ~/.fvwm/config:
Code:
# Close button pressed
ButtonStyle 1 ActiveDown Pixmap button-close.png -- Flat
# Iconify button pressed
ButtonStyle 3 ActiveDown Pixmap button-iconify.png -- Flat
# Maxmimize button pressed
ButtonStyle 5 ActiveDown Pixmap button-maximize.png -- Flat
and
Code:
# Titlebar buttons
Mouse 1		1	A		CloseButton					#Close titlebar button left click
Mouse 1		3	A		IconifyButton				#Iconify titlebar button left click
Mouse 1		5	A		MaximizeButton				#Maximize titlebar button left click
Mouse 2		1	A		Destroy						#Close titlebar button middle click
Then replace it with
Code:
# Close button pressed
ButtonStyle 2 ActiveDown Pixmap button-close.png -- Flat
# Iconify button pressed
ButtonStyle 6 ActiveDown Pixmap button-iconify.png -- Flat
# Maxmimize button pressed
ButtonStyle 4 ActiveDown Pixmap button-maximize.png -- Flat
and
Code:
# Titlebar buttons
Mouse 1		2	A		CloseButton					#Close titlebar button left click
Mouse 1		6	A		IconifyButton				#Iconify titlebar button left click
Mouse 1		4	A		MaximizeButton				#Maximize titlebar button left click
Mouse 2		2	A		Destroy						#Close titlebar button middle click
 

ILUXA

Aspiring Daemon

Thanks: 338
Messages: 546

#39
Yesterday I submitted a port -- x11/wmsystemtray, that was approved by tobik@ today,
so update your ports tree and you'll be able to install it. wmsystemtray is a system tray dock app,
that uses freedesktop.org system tray protocol, it doesn't require any additional configuration
after installation. To use it outside of WMaker WM, use "--non-wmaker" flag.

I've updated my configuration to use wmsystemtray instead of stalonetray, if you want to use stalonetray, replace
Code:
*Buttons: (1x1, Frame 2, Swallow(UseOld,NoClose) "wmsystemtray"\
        'Exec exec wmsystemtray --non-wmaker')
with
Code:
*Buttons: (1x1, Frame 2, Swallow(UseOld,NoClose) "stalonetray"\
        'Exec exec stalonetray --scrollbars-size 3')
in ~/.fvwm/config.
 
Last edited:

romanaOne

Member

Thanks: 6
Messages: 64

#40
fvwm! What a blast from the past.... Nice to see some window manager biodiversity.

wmmoonclock does something that casuses X to use ~ 5 percent cpu on my skylake system. It also makes compton waste a few more percent so that the system sitting idle has about 10 percent cpu usage. (wmcpu does not work so great, always underestimating compared to top; maybe it is unaware of multiple cores?) I notice this because my system has irritating fan noise even at low speeds. Probably needs a heat sink repaste.

pcmanfm says unsupported operation and dumps core when I double click the trash can.

I did not install vertex because I like the old fat window borders.
 

ILUXA

Aspiring Daemon

Thanks: 338
Messages: 546

#41
Never had any of your issues on several installations.
Probably your problem isn't with these applications.
wmmoonclock, pcmanfm and others you've listed are working
without any issues for me on FreeBSD, as well as on GNU/Linux
for more than a year, never noticed any problems.
But also I didn't try to use "skylake system", so maybe it is the problem.

P.S.: To use x11-fm/pcmanfm trash, you should install devel/gvfs,
if it is already installed, launch x11-fm/pcmanfm from console and try to "google"
output, that appears when pcmanfm is crashing, 99,9% you'll find what's causing this
on your system. IMO you got something misconfigured. Because in my experience
x11-fm/pcmanfm is the most stable GUI file manager on FreeBSD.

Also, it is very easy to replace any of dockapps in config file, just replace it in ~/.fvwm/config.
 

romanaOne

Member

Thanks: 6
Messages: 64

#42
Oh, devel/gvfs wasn't in the list above..... I don't have it installed. I'll give it a try. I'm using x11-fm/rox-filer but it has some (fixable, with mouse button reassigning in ~/.fvwm/config) problems with fvwm when rox is providing the desktop ("pinboard").
 

ILUXA

Aspiring Daemon

Thanks: 338
Messages: 546

#43
Oh, devel/gvfs wasn't in the list above..... I don't have it installed.
It shouldn't be there, also there is no pcmanfm in that list.
Because it is a "how to" for FVWM window manager and not
for pcmanfm file manager. ALL applications in my config are
replaceable, so use anything you want, just replace it in config file.
 

Minbari

Active Member

Thanks: 110
Messages: 238

#45
what is the difference between the graphic window managers, FVWM or TWM and IceWM or JWM? Which is the most complicated of configure?
All those WM you mentioned are dynamic window managers so they all do the same thing, more or less. The hardest to configure and more complex then others WM it's FVWM but this one can be configured in ways which can be limited only by your imagination.
 

ILUXA

Aspiring Daemon

Thanks: 338
Messages: 546

#46
ILUXA, what is the difference between the graphic window managers, FVWM or TWM and IceWM or JWM? Which is the most complicated of configure?
It is 4 different WM-s, its configuration is different, design, etc.
TWM is very old and outdated, IMO there is no good reason to use it nowadays.
Never was a huge fan of IceWM, so I cannot say much about it. JWM is pretty new WM,
its configuration file uses XML like format, but it is pretty limited in its configuration,
anyway, I like JWM much more than Openbox, for example, another one WM that
is worth to try is Fluxbox. And FVWM is powerful, stable, lightweight and highly customizable WM,
it is my personal favorite, with FVWM it is possible to re-create any function from any other WM,
so with FVWM you'll never be limited with design or functionality.
 

teo

Well-Known Member

Thanks: 8
Messages: 407

#47
......for example, another one WM that is worth to try is Fluxbox. And FVWM is powerful, stable, lightweight and highly customizable WM, it is my personal favorite, with FVWM it is possible to re-create any function from any other WM, so with FVWM you'll never be limited with design or functionality.
Apparently its graphical manager, it displays excellent configuration, it is quite rudimentary to see the type of icons. I didn't know that FluxBox was WM, the FluxBox window manager is quite complicated, practically everything is written and configured by hand in a text editor, even though it doesn't recognize the guest's video driver in virtualbox-ose-additions. In your window manager, how would you proceed to make the user's window look with a dark style theme?
 

ILUXA

Aspiring Daemon

Thanks: 338
Messages: 546

#48
how would you proceed to make the user's window look with a dark style theme?
To make windows use dark GTK theme, it is possible to choose dark theme via x11-themes/lxappearance, for example, while if you want to change window decorations color, like title bar color, buttons background color, etc, you should edit configuration file by hand, there is no GUI configuration for FVWM. But it is very easy and very quickly to do so, if you know how things work in FVWM, personally I don't need any graphic configuration utilities for FVWM. Just use % man fvwm and you'll be able to see all FVWM options.
it doesn't recognize the guest's video driver in virtualbox-ose-additions.
Any window manager shouldn't "recognize" your video driver, Xorg server should do it,
I'm not sure how vbox integration works, but it doesn't depend on your WM for sure.
BTW, stop using *nix OS-es only via VirtualBox, install it on your real hardware.
it's a waste of time and you'll never move from novice level if you'll use vbox only,
notice how many years you read this forum, how many years you use vbox,
but your questions are still quite silly, you should improve your knowledge,
but it isn't really possible when using VirtualBox only.
 

teo

Well-Known Member

Thanks: 8
Messages: 407

#49
BTW, stop using *nix OS-es only via VirtualBox, install it on your real hardware.
it's a waste of time and you'll never move from novice level if you'll use vbox only,
notice how many years you read this forum, how many years you use vbox,
but your questions are still quite silly, you should improve your knowledge,
but it isn't really possible when using VirtualBox only.
Is he angry and only scolding? Due to lack of support or FreeBSD drivers for the real machine, I try to use the system for daily use on the virtual machine. FreeBSD has been a project for 25 years and has not attracted most users because it is very difficult. I don't often ask questions, and I don't understand why they bother with questions that are asked out of ignorance, and you, how many years will it take in the forums and in the free software world? I'm still new, little by little, I'm learning something, because unfortunately, the politics of the powerful have imposed their philosophy with their funds on education, imposing only closed-source windows in the learning in education from a very young age. Don't be amgry and smile at life with the few who try an idea of free software. :)
 

romanaOne

Member

Thanks: 6
Messages: 64

#50
There is x11-themes/fvwm-themes if you want to be able to choose themes ( collections of colorsets, backgrounds, window decorations, and the FvwmButtons) from a preconfigured menu. Most of applications on the default menu are for computer archaeologists studying the 90s so it is better to make your own automatic menu. Anyway, getting back to themes, it is also possible to mix theme parts (select colors from theme A, window decorations from theme B, etc.) using only the menu. I start fvwm from my .xinitrc with fvwm -f ~/.fvwm/themes-rc. (I don't how to start fvwm with a specific config file from a display manager.)

You can customize themes by copying files from /usr/local/share/fvwm/themes/whateverpart.cfg to ~/.fvwm/themes/personal/ and then selecting the Personal theme (or just parts of it) from the menu.

For example, you might have something like this in ~/.fvwm/themes/personal/menus-extra :

Code:
DestroyMenu MenuFvwmPersonal
AddToMenu   MenuFvwmPersonal "Personal" Title
#Essentials
AddToMenu MenuFvwmPersonal "Firefox" Exec exec firefox
+ "xterm" Exec exec xterm
+ "xfe"   Exec exec xfe
+ "Clementine" Exec exec clementine-player
+ "VLC" Exec exec vlc
+ "Calibre" Exec exec calibre
#read automatic menu from XDG
PipeRead 'fvwm-menu-desktop --enable-mini-icons --insert-in-menu MenuFvwmPersonal'
 
Top