Dusko Pijetlovic

My personal notes where I store things I find interesting or might need in the future.

FVWM - F Virtual Window Manager

16 Apr 2022 »

$ sudo pkg install fvwm

About FVWM - from pkg info --regex --full fvwm 3 1/4

[TODO]
Replace mydotfiles... with fetch https://zensites.net/fvwm/guide/fvwm-guide-icons.tar.bz2.

$ cp -rf \
 /mnt/usbflashdrive/mydotfiles/FVWM.freebsd.lenovo.x280.2022_07_10_2200/THEME-2-ARCTIC/.fvwm/* \
 ~/.fvwm/
$ grep -n icons ~/.fvwm/config
36:#   2. Place all icons in this directory:
37:#        /usr/local/share/icons/gnant
38:#   3. It might take a couple of minutes for some icons in the dock
40:#      clock icons.
49:SetEnv  fvwm_icon               /usr/local/share/icons/$[fvm_gnome_icon_theme]
$ grep -n fvm_gnome_icon_theme ~/.fvwm/config
48:SetEnv  fvm_gnome_icon_theme    gnant
49:SetEnv  fvwm_icon               /usr/local/share/icons/$[fvm_gnome_icon_theme]
$ fetch https://strog.org/files/gnant-0.2.tar.bz2
$ tar xf gnant-0.2.tar.bz2
$ sudo mv gnant /usr/local/share/icons/
$ rm -i gnant-0.2.tar.bz2
$ fetch https://zensites.net/fvwm/guide/fvwm-guide-icons.tar.bz2
$ tar xf fvwm-guide-icons.tar.bz2 
$ ls -alh
total 198
drwxr-xr-x   3 dusko  wheel     4B Apr 16 08:25 .
drwxrwxrwt  37 root   wheel   570B Apr 16 08:23 ..
drwxr-xr-x   7 dusko  wheel     8B Aug  5  2004 .fvwm
-rw-r--r--   1 dusko  wheel    73K Jan 14  2008 fvwm-guide-icons.tar.bz2
$ ls -alh .fvwm/
total 20
drwxr-xr-x  7 dusko  wheel     8B Aug  5  2004 .
drwxr-xr-x  3 dusko  wheel     4B Jul 11 19:25 ..
-rw-r--r--  1 dusko  wheel    17K Aug  5  2004 fvwm2rc-guide
drwxr-xr-x  5 dusko  wheel     5B Aug  5  2004 icons
drwxr-xr-x  5 dusko  wheel     5B Aug  5  2004 images
drwxr-xr-x  2 dusko  wheel     2B Aug  4  2004 screenshot
drwxr-xr-x  2 dusko  wheel     2B Aug  4  2004 scripts
drwxr-xr-x  2 dusko  wheel     2B Aug  4  2004 tmp
$ ls -alh .fvwm/icons/
total 35
drwxr-xr-x  5 dusko  wheel     5B Aug  5  2004 .
drwxr-xr-x  7 dusko  wheel     8B Aug  5  2004 ..
drwxr-xr-x  2 dusko  wheel    10B Aug  5  2004 48x48
drwxr-xr-x  2 dusko  wheel    28B Aug  5  2004 menu
drwxr-xr-x  2 dusko  wheel     7B Aug  5  2004 mini
$ sudo cp -rf .fvwm/icons/menu /usr/local/share/icons/gnant/
$ sudo cp -rf .fvwm/icons/mini /usr/local/share/icons/gnant/
$ sudo cp -rf .fvwm/icons/48x48/* /usr/local/share/icons/gnant/48x48/
$ rm -rf .fvwm/
$ rm -i fvwm-guide-icons.tar.bz2
% sudo pkg install rox-filer
% sudo pkg install 3ddesktop
% pkill Xorg

Start X:

% exec xinit 

Alternatively:

$ exec startx

My Customizations

Install Blippo Bold Font

Installation log:

2024_04_29_1100_freebsd_work_desktop_installed_blippo_font.txt

Clocks and Xload - From dot.xinitrc

$ wc -l ~/.xinitrc
     196 /home/dusko/.xinitrc

Without comments and without blank lines:

$ sed '/^[[:space:]]*$/d' ~/.xinitrc | grep -v \^# | wc -l
      20
$ sed '/^[[:space:]]*$/d' ~/.xinitrc | grep -v \^#
xrdb load $HOME/.Xresources
xset b off
for m in `ls /usr/local/share/fonts/`; do
    if [ -d "/usr/local/share/fonts/$m" ]; then
        xset fp+ "/usr/local/share/fonts/$m"
     fi
done
for m in `ls /usr/home/dusko/.fonts/`; do
    if [ -d "/usr/home/dusko/.fonts/$m" ]; then
        xset fp+ "/usr/home/dusko/.fonts/$m"
    fi
done
exec /usr/local/bin/xclock -digital -strftime "Vancouver: %a - %b %e, %Y - %l:%M:%S %p (%H:%M:%S)" -face mono:size=10 -bg "#002020" -fg "#aaaaaa" -update 1 -geometry -0-0 &
exec env TZ=Europe/Belgrade xclock -digital -strftime "Belgrade: %a %d %b %H:%M" -face mono:size=10 -bg "#002020" -fg "gold" -geometry -452-0 &
exec env TZ=UTC /usr/local/bin/xclock -digital -strftime 'UTC: %a %d %b %H:%M' -face mono:size=10 -bg '#002020' -fg '#f6eabe' -geometry -680-0 &
exec env TZ=GMT /usr/local/bin/xclock -digital -strftime 'GMT: %a %d %b %H:%M' -face mono:size=10 -bg '#002020' -fg '#f6eabe' -geometry -868-0 &
exec xload -bg steelblue -fg '#001013' -nolabel -geometry 224x33-1056-0 &
/usr/local/bin/xterm -bg black -fg white -geometry 80x24+0+0 &
/usr/local/bin/xterm -bg white -fg black -geometry 80x24+1440+0 &
fvwm > /tmp/fvwmlog 2>&1

Footnotes

[1] From pkg info --regex --full fvwm:

WWW            : http://www.fvwm.org/
Comment        : Popular virtual window manager for X

Description    :
Fvwm is a very famous window manager for X, which provides a
virtual/multiple disjoint desktop, a 3-D look for windows decorations,
shaped/color icons. It gives a very good emulation of mwm. A nice
button-bar can be used to provide convenient access to frequently used
functions or programs.

WWW: http://www.fvwm.org/

Jason C. Wells

From https://www.fvwm.org/ (Retrieved on Apr 16, 2022):

Fvwm is a virtual window manager for the X windows system. It was 
originally a feeble fork of TWM by Robert Nation in 1993 (fvwm history), 
and has evolved into the fantastic, fabulous, famous, flexible, and so on, 
window manager we have today.

Fvwm is ICCCM-compliant and highly configurable. Starting from a minimal 
configuration, Fvwm can be configured with both internal tools and third 
party software to customize most aspects of a desktop.

This site is an archive of documentation for Fvwm version 2.6.x, which is 
the current frozen release. For information about the development of Fvwm 
version 3, check out fvwmorg/fvwm3 on GitHub.

References

(Retrieved on Apr 16, 2022)