FreeBSD Screen Shots

x11-wm/jwm
jwmsc3.png


~/.jwmrc
Code:
<?xml version="1.0"?>
<JWM>

    <!-- The root menu. -->
    <RootMenu onroot="18">
       <Program label="Thinglaunch">thingylaunch</Program>
           <Program label="Terminal">xterm</Program>
       <Program label="URXVT">urxvt</Program>
   <Menu label="Office">
       <Program label="Leafpad">leafpad</Program>
       <Program label="Apache Office">openoffice-4.1.3</Program>
       <Program label="PDF">epdfview</Program>
       <Program label="Dia">dia</Program>
   </Menu>
   <Menu label="Internet">
       <Program label="Firefox">firefox</Program>
       <Program label="XMPP">pidgin</Program>
   </Menu>
        <Menu icon="folder.png" label="Utilities">
       <Program label="Calculator">xcalc</Program>
       <Program label="Charmap">gucharmap</Program>
   </Menu>
   <Menu label="Applications">
       <Program label="VLC">vlc</Program>
   </Menu>
        <Separator/>
        <Program icon="lock.png" label="Lock">
            xscreensaver-command -lock
        </Program>
    </RootMenu>
    <RootMenu onroot="2">
   <Restart label="Restart"/>
   <Program label="Reboot">shutdown -r now</Program>
   <Program label="Shutdown">shutdown -p now</Program>
        <Exit label="Exit" confirm="true" icon="quit.png"/>
    </RootMenu>

    <!-- Options for program groups. -->
    <Group>
        <Class>Pidgin</Class>
        <Option>sticky</Option>
    </Group>
    <Group>
        <Name>xterm</Name>
        <Option>vmax</Option>
        <Option>icon:terminal.png</Option>
    </Group>
    <Group>
        <Name>xedit</Name>
        <Option>icon:editor.png</Option>
    </Group>
    <Group>
        <Name>xcalc</Name>
        <Option>icon:calculator.png</Option>
    </Group>

    <!-- Tray at the bottom. -->
    <Tray x="+1" y="+1" autohide="off">
        <TrayButton label="JWM">root:1</TrayButton>
   <Pager labeled="false"/>
        <TaskList maxwidth="256"/>
   <Pager labeled="false"/>
   <Clock zone="UTC" format="UTC %R"></Clock>
    </Tray>
    <Tray x="+1" y="-1" autohide="off">
   <TrayButton label="JWM">root:2</TrayButton>
   <Pager labeled="true"/>
   <TaskList maxwidth="100"/>
   <Dock/>
        <Clock format="%b %d %a %R"></Clock>
    </Tray>

    <!-- Visual Styles -->
    <WindowStyle>
        <Font>Sans-14:bold</Font>
        <Width>4</Width>
        <Height>21</Height>
        <Corner>4</Corner>
        <Foreground>#FFFFFF</Foreground>
        <Background>#333333</Background>
        <Outline>#000000</Outline>
        <Opacity>0.5:0.9:0.1</Opacity>
        <Active>
            <Foreground>#FFFFFF</Foreground>
            <Background>#0077CC</Background>
            <Outline>#000000</Outline>
            <Opacity>1.0</Opacity>
        </Active>
    </WindowStyle>
    <TrayStyle>
        <Font>Sans-9</Font>
        <Background>#111111</Background>
        <Foreground>#FFFFFF</Foreground>
        <Opacity>0.75</Opacity>
    </TrayStyle>
    <TaskListStyle>
        <Foreground>#FFFFFF</Foreground>
        <Background>#111111</Background>
        <Active>
            <Foreground>#FFFFFF</Foreground>
            <Background>#333333</Background>
        </Active>
    </TaskListStyle>
    <PagerStyle>
        <Outline>#000000</Outline>
        <Foreground>#FFFFFF</Foreground>
        <Foreground>#444444</Foreground>
        <Background>#111111</Background>
        <Active>
            <Foreground>#0077CC</Foreground>
            <Background>#333333</Background>
        </Active>
    </PagerStyle>
    <MenuStyle>
        <Font>Sans-14</Font>
        <Foreground>#FFFFFF</Foreground>
        <Background>#333333</Background>
        <Active>
            <Foreground>#FFFFFF</Foreground>
            <Background>#0077CC</Background>
        </Active>
        <Opacity>0.85</Opacity>
    </MenuStyle>
    <PopupStyle>
        <Font>Sans-9</Font>
        <Outline>#000000</Outline>
        <Foreground>#000000</Foreground>
        <Background>#999999</Background>
    </PopupStyle>

    <!-- Path where icons can be found.
         IconPath can be listed multiple times to allow searching
         for icons in multiple paths.
      -->
    <IconPath>
        $HOME/.icons
        /usr/local/share/icons
        /usr/local/share/pixmaps
        /usr/local/lib/X11/icons
    </IconPath>
   <StartupCommand>wmmoonclock</StartupCommand>
   <StartupCommand>volumeicon</StartupCommand>
   <StartupCommand>urxvt -tr -sh 25 -geometry 85x21+90+30</StartupCommand>
   <StartupCommand>urxvt -tr -sh 25 -geometry 90x21+2-25</StartupCommand>
   <StartupCommand>osdmixer d d d d</StartupCommand>
   <Group>
       <Name>urxvt</Name><Name>wmix</Name><Name>wmmoonclock</Name>
       <Option>noborder</Option>
       <Option>constrain</Option><Option>nopager</Option>
       <Option>sticky</Option><Option>layer:below</Option>
       <Option>nolist</Option><Option>tiled</Option>
   </Group>

    <!-- Virtual Desktops -->
    <!-- Desktop tags can be contained within Desktops for desktop names. -->
    <Desktops width="2" height="1">
        <!-- Default background. Note that a Background tag can be
              contained within a Desktop tag to give a specific background
              for that desktop.
         -->
        <Background type="image">/home/mydirectory/waterfall.png</Background>
    </Desktops>

    <!-- Double click speed (in milliseconds) -->
    <DoubleClickSpeed>400</DoubleClickSpeed>

    <!-- Double click delta (in pixels) -->
    <DoubleClickDelta>2</DoubleClickDelta>

    <!-- The focus model (sloppy or click) -->
    <FocusModel>sloppy</FocusModel>

    <!-- The snap mode (none, screen, or border) -->
    <SnapMode distance="10">border</SnapMode>

    <!-- The move mode (outline or opaque) -->
    <MoveMode>opaque</MoveMode>

    <!-- The resize mode (outline or opaque) -->
    <ResizeMode>opaque</ResizeMode>

    <!-- Key bindings -->
    <Key key="Up">up</Key>
    <Key key="Down">down</Key>
    <Key key="Right">right</Key>
    <Key key="Left">left</Key>
    <Key key="h">left</Key>
    <Key key="j">down</Key>
    <Key key="k">up</Key>
    <Key key="l">right</Key>
    <Key key="Return">select</Key>
    <Key key="Escape">escape</Key>

    <Key mask="A" key="Tab">nextstacked</Key>
    <Key mask="A" key="F4">close</Key>
    <Key mask="A" key="#">desktop#</Key>
    <Key mask="A" key="F1">root:1</Key>
    <Key mask="A" key="F2">window</Key>
    <Key mask="A" key="F10">maximize</Key>
    <Key mask="A" key="Right">rdesktop</Key>
    <Key mask="A" key="Left">ldesktop</Key>
    <Key mask="A" key="Up">udesktop</Key>
    <Key mask="A" key="Down">ddesktop</Key>

</JWM>
This screenshot is missing the two transparent urxvt terminals that stick and are on the bottom layer, but that's the code. Volume control is in the bottom right corner.
I will try x11-wm/tinywm next.
 
Last edited:

Charts from some Linux site are one thing.

Screenshots of FreeBSD using x11-wm/fluxbox as a WM running top showing how much memory is actually being allocated to it at the time are the real testament to how much memory it uses IMO.

I have 3 previous, recent screenshots posted of the said configuration. Here are 3 more:

memory.png

memory03.png

memory02.png

All told, there are 2 shots of each, all running FreeBSD 11.1 or 11.0 and they are very consistent in what they show:

My relentless 64bit box shows the exact same figure:
80136k
80136k

My unagi 64bit box shows:
78016k
78076k

And my harbinger 32bit box shows:
13244k
15292k

All are running the same programs with the exception of this shot of the relentless box that had www/firefox running where the others didn't.
 
For 11.1 (64 bit) and jwm top indicates
Code:
PID  USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME    WCPU COMMAND
1225 user          1  20    0 75400K 14396K select  3   0:06   0.00% jwm
 
top and ps utilities doesn't show the actual memory, that is in use by an app, it shows the amount of memory that reserved for an app, as far as I know. ("RES" column should be RESIDENT, not reserved).

The top() page shows SIZE is the total size of the process (text, data, and stack), and what I've always gone by. Actually RES is the current amount of resident memory (both SIZE and RES are given in kilobytes).

P.S. What happened to that psychedelic avatar you used to use? :)
 
Anyway, here is how many my fvwm configuration use, according to top,
Code:
 1155 iluxa         1  20    0 74000K 12416K select  3   0:02   0.00% fvwm
5y67Pet.png

Screenshot was created right now, with all of my applications opened, like firefox, epiphany, compton etc.


And here is fluxbox fresh install, I startx-ed it with its default configuration, with 0 apps loaded (only 2 xterm-s).
Code:
14245 iluxa         1  20    0 81636K 13420K select  2   0:00   0.00% fluxbox
zADMLhe.png


So fvwm wins here a little bit, at least on my hardware (I'm using 10.4-BETA4 amd64).

What happened to that psychedelic avatar you used to use? :)
I've bored with it, I've used it for more than a year. It is my actual eye, by the way :)
 
top run on FreeBSD 11.1 64 bit running twm. Nvidia 8600GT with 1400x900 monitor, set to 1280x800 scaled (scaled visible size as I like larger fonts by default) with a 2880x1800 virtual display area (so can pan the display window around the larger window by moving the mouse to a screen edge).

top output (for twm line)
Code:
 1089 user          1  20    0 37704K  5200K select  3   0:00   0.00% twm

scrot image capture captures the full 2880x1800, not just the visible 1280x900 region





Nice thing about twm is how new windows ask for a click to set the position (wire grid shown that can be moved around, mouse click to open the window where the wire frame currently is). With other wm's new windows tend to open often outside of the current visible region.

I'm new to twm so still learning. Quite like what I've seen so far using just the default install (part of xorg). Browser down in bottom right seems nice as you're less inclined to scroll the visible area leftwards when you go to scroll the browser window content vertically.

Also handy for when a web page/site doesn't fit nicely (usually due to images) as you can just increase the browser window size until it does fit better and then pan around that.

Haven't figured out how to set where programs are opened at startup yet i.e. I know you can launch them in .xintrc, but don't know how for instance to set firefox to open at a certain size in the bottom right corner within the 2880x1800 visible region.
 
Nice thing about twm is how new windows ask for a click to set the position (wire grid shown that can be moved around, mouse click to open the window where the wire frame currently is). With other wm's new windows tend to open often outside of the current visible region.
It is called manual placement, and can be activated in FVWM, for example, with
Code:
Style * ManualPlacement
IMHO twm is very outdated, it's missing many features, to be useful, It can be configured via configuration file,
but it is impossible to make it much more useful, than it comes in default configuration,
with those ugly fonts and with those ugly teal titlebars. But x11-wm/vtwm (Twm with a virtual desktop), is a little bit more usable.
 
It is called manual placement, and can be activated in FVWM, for example, with
Code:
Style * ManualPlacement
Thanks
IMHO twm is very outdated, it's missing many features, to be useful, It can be configured via configuration file, but it is impossible to make it much more useful, than it comes in default configuration, with those ugly fonts and with those ugly teal titlebars.
Adding stalonetray and loading openoffice as a quickstarter into that and twm isn't that bad IMO



~/.twmrc
Code:
#
# Default twm configuration file; needs to be kept small to conserve string
# space in systems whose compilers don't handle medium-sized strings.
#
# Sites should tailor this file, providing any extra title buttons, menus, etc.
# that may be appropriate for their environment.  For example, if most of the
# users were accustomed to uwm, the defaults could be set up not to decorate
# any windows and to use meta-keys.
#
#
# TWM configs for <rmoki>

NoGrabServer
DecorateTransients #title bars for child windows
RestartPreviousState
NoTitleHighlight #removes ugly highlighting from focused window title
RandomPlacement
IconFont   "variable"
IconManagerFont   "variable"
MenuFont   "variable"
TitleFont   "variable"

#ClientBorderWidth

#
# Custom colors
#
Color
{
   BorderColor "Red"
   DefaultBackground "Black"
   DefaultForeground "LightSteelBlue"
   TitleBackground "LightSteelBlue"
   TitleForeground "Black"
   MenuBackground "Black"
   MenuForeground "LightSteelBlue"
   MenuBorderColor "Red"
   MenuTitleBackground "Black"
   MenuTitleForeground "LightSteelBlue"
   MenuShadowColor "LightSteelBlue"
   MenuBorderColor "Black"
   IconBackground "Black"
   IconForeground "LightSteelBlue"
   IconBorderColor "Red"
   IconManagerBackground "Navy"
   IconManagerForeground "LightSteelBlue"
}

#
#Show icon manager at startup:
#
ShowIconManager
IconManagerDontShow { "gkrellm" } #don't show gkrellm on icon manager
IconifyByUnmapping #when iconifying don't create mini-window

#
# Remove title from TWM Icon Manager and GKrellm.
#
NoTitle {"TWM Icon Manager" "gkrellm"}

#
# Draw window borders - if need use in the future, uncomment and edit values
#
#BorderWidth 1   # Number of pixels for border around entire window
#FramePadding 1   # Number of pixels between titlebar buttons & frame
#TitleButtonBorderWidth 0   # Number of pixels for button border
#TitlePadding 2   # Number of pixels around title buttons
#ButtonIndent 0   # Larger seems to squash buttons together
#MenuBorderWidth 0   # Number of pixels for menu border
#NoMenuShadows   # No shadow behind the menu
#

#
# Define some useful functions for motion-based actions.
#
MoveDelta 3
Function "move-or-lower" { f.move f.deltastop f.lower }
Function "move-or-raise" { f.move f.deltastop f.raise }
Function "move-or-iconify" { f.move f.deltastop f.iconify }

#
# Set some useful bindings.  Sort of uwm-ish, sort of simple-button-ish
#
Button1 = : root : f.menu "defops"

Button1 = m : window|icon : f.function "move-or-lower"
Button2 = m : window|icon : f.iconify
Button3 = m : window|icon : f.function "move-or-raise"

Button1 = : title : f.function "move-or-raise"
Button2 = : title : f.raiselower

Button1 = : icon : f.function "move-or-iconify"
Button2 = : icon : f.iconify

Button1 = : iconmgr : f.iconify
Button2 = : iconmgr : f.iconify

#
# Invoke custom menus with mouse actions:
#
Button3 = : root : f.menu "progs" #right click (left-handed mouse)
Button1 = : root : f.menu "defops" #left click (left-handed mouse)

#
# Closing button on the titlebar
#
IconDirectory "~/.config/icons" # Directory for non default icons
RightTitleButton "close.xbm"=f.delete

#
# And a menus with the usual things
#
menu "defops"
{
"Twm"   f.title
"Iconify"   f.iconify
"Resize"   f.resize
"Move"       f.move
"Raise"       f.raise
"Lower"       f.lower
""       f.nop
"Focus"       f.focus
"Unfocus"   f.unfocus
"Show Iconmgr"   f.showiconmgr
"Hide Iconmgr"   f.hideiconmgr
""       f.nop
"Kill"       f.destroy
"Delete"   f.delete
""       f.nop
"Restart"   f.restart
"Exit"       f.quit
}

#
# And custom menus:
#
menu "progs"
{
"PROGRAMS"   f.title
"xterm"         f.exec "xterm +cm -bg black -fg white -cr yellow&"
"Run Command"   f.exec "~/bin/runco&"
"GVIm"       f.exec "gvim&"
"File Manager"   f.exec "xfe&"
""       f.nop
"Firefox"   f.exec "firefox&"
"Utilities"   f.menu "utilities"
"Office Apps"   f.menu "office_apps"
"Multimedia"   f.menu "multimedia"
"Connections"   f.menu "connect"
"Calculator"   f.exec "xcalc&"
"Display info"   f.exec "xterm -bg black -fg white -cr yellow -e myspecs&"
""       f.nop
"Clock"       f.exec "xclock&"
"Eyes"       f.exec "xeyes&"
"xlock"       f.exec "xlock&"
""       f.nop
"Exit"       f.quit
}

menu "office_apps"
{
"    Office Apps    "   f.title
"Writer"   f.exec "/usr/local/lib/libreoffice/program/swriter&"
"Calc"       f.exec "/usr/local/lib/libreoffice/program/scalc&"
"PDF Reader"   f.exec "xpdf&"
"Gimp 2.8"   f.exec "gimp&"
"Mail"       f.exec "claws-mail&"
}

menu "multimedia"
{
"    Multimedia    "   f.title
"VLC"       f.exec "vlc&"
"Audacious"   f.exec "audacious&"
"MOC"       f.exec "xterm -bg black -fg white -cr yellow -e mocp&"
"The Gimp"   f.exec "gimp&"
"Paint"       f.exec "xpaint&"
"Img Viewer"   f.exec "gqview&"
"Blender"   f.exec "/opt/blender/blender&"
}

menu "connect"
{
"    Connections    "   f.title
"Mail"       f.exec "claws-mail&"
"FTP"       f.exec "xterm -bg black -fg white -cr yellow -e lftp&"
"IRC"       f.exec "xchat&"
"IRC-cli"   f.exec "xterm -bg black -fg white -cr yellow -e irssi&"
"IM"       f.exec "pidgin&"
"IM-cli"   f.exec "xterm -bg black -fg white -cr yellow -e finch&"
"Torrent"   f.exec "transmission-gtk&"
}

menu "utilities"
{
"    Devel Tools    "   f.title
"PSPP"       f.exec "psppire&"
"ClustalX"   f.exec "clustalx&"
"PerlPrimer"   f.exec "perlprimer.pl&"
"Arka"       f.exec "arka&"
"EMBOSS data"   f.exec "xterm -bg black -fg white -cr yellow -e embossdata -showall&"
"Gvim"       f.exec "gvim&"
"R"       f.exec "xterm -bg black -fg white -cr yellow -e R&"
"Python"   f.exec "xterm -bg black -fg white -cr yellow -e python&"
"Elvis-X11"   f.exec   "elvis -G x11&"
}

With osmo (calendar, tasks, notes, contacts) and volumeicon also added in (and using firefox as the video player) ...





Still prefer jwm however myself
 
FreeBSD 11.1 with ...
xorg-minimal nvidia-driver-340 jwm setxkbmap webfonts xterm firefox-esr apache-openoffice pcmanfm galculator leafpad orage xload gtmixer mpg numlockx wifimgr

pkg info | wc -1
shows 270 packages

pcmanfm --desktop
used to provide desktop icon support



 
This time, thanks to Trihexagonal who aroused my curiosity toward Fluxbox, I post an alternative GUI for the new desktop I've been customizing this evening. I didn't believe Fluxbox would be truly that easy to configure (it only took 2-3 hours to read the documentation and set up everything). Yet it is very satisfying: its menu has a clear and user-friendly syntax that quickly allows one to create a complex and fully customized menu-tree to get access to any application.

Theme is blackend: https://www.box-look.org/p/1017096/, with very little modifications.

On top of it I used x11/idesk to make the folder icons you can see on the bottom-left corner; x11/tint to make an additional auto-hiding panel for minimized windows; deskutils/cairo-dock for the Application dock; x11-wm/compton to grant shadows, inactive windows' transparency and fading effects

There's no more need for feh to set a background, for fluxbox, do not know since when though, has a built-in command to do it.

Being using misc/linm (a clone of Maxdir for DOS) as File manager. Xinitr loads always the same programs, with the exception of misc/ansiweather for local weather info. I'm mentioning it because., albeit being probably less known than other apps like wmweather+, it's nice, useful and light.

bsdshot.jpg
 
with the exception of misc/ansiweather for local weather info.

Try % curl wttr.in/amsterdam, replace amsterdam with your home city (Or better your home city with amsterdam :D).
NxYlVi6.png


To show all options, use % curl wttr.in/:help

ansiweather is not bad also, but it's got few not very nice dependencies, which I don't use, like sysutils/coreutils
and shells/bash.
 
Last edited by a moderator:
Thanks ILUXA.

My 'default' (preferred) xterm font size is a bit too large to accommodate that weather display, so I created a script in my ~/bin folder (that I have added in .profile PATH) to invoke xterm with better settings for me (and London weather report). So I can just type weather to get a snapshot of the current forecast, along with the other script I have in bin that caters for typing lbc to play LBC radio station

Code:
cd ~/bin
$ cat lbc
#!/bin/sh
mpv http://media-ice.musicradio.com/LBCLondonMP3Low
$ cat weather
#!/bin/sh
xterm -geometry 136x44+0+0 -fa DejaVu:size=8 -e "curl wttr.in/london;$SHELL"[code]
[/code]
 
Code:
    <!-- The root menu. -->
    <RootMenu onroot="18">
       <Program label="Thinglaunch">thingylaunch</Program>
Thingylaunch is a nice simple alternative to what I use (gmrun). I have gmrun set to pop up when I press the right of space bar WIN key i.e. in .jwmrc
Code:
    <Key mask="" key="Super_R">exec:PATH=$PATH:/home/user/bin;export PATH;gmrun</Key>
I add ~/bin to the PATH before invoking gmrun as otherwise that isn't set and it doesn't run my ~/bin scripts by name.
 
Last edited:
Maybe not screen shots, but a shot of screens.

XFCE, 2 cards, 3 monitors. LHS used to read docs, middle text and man pages, RHS browser.

Code:
Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Module"
    Load   "freetype"
EndSection

Section "Files"
    FontPath   "/usr/local/share/fonts/dejavu/"
    FontPath   "/usr/local/share/fonts/Droid/"
   FontPath "/usr/local/share/fonts/Carlito/"
   FontPath "/usr/local/share/fonts/Liberation/"
   FontPath "/usr/local/share/fonts/GentiumBasic/"
   FontPath "/usr/local/share/fonts/LinLibertineG/"
   FontPath "/usr/local/share/fonts/Caladea/"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/sysmouse"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "keyboard"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "DELL 2408WFP"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "DELL3007WFPHC"
    HorizSync       49.3 - 98.5
    VertRefresh     59.9 - 59.9
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro FX 570"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro FX 3500"
    BusID          "PCI:2:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "nvidia-auto-select +0+0 {rotation=left}; 1600x1200 +0+0 {rotation=left}; 1280x1024 +0+0 {rotation=left}; 1280x1024_60 +0+0 {rotation=left}; 1152x864 +0+0 {rotation=left}; 1024x768 +0+0 {rotation=left}; 1024x768_60 +0+0 {rotation=left}; 800x600 +0+0 {rotation=left}; 800x600_60 +0+0 {rotation=left}; 640x480 +0+0 {rotation=left}; 640x480_60 +0+0 {rotation=left}; nvidia-auto-select +0+0 {rotation=left, viewportout=1920x1080+0+60}; nvidia-auto-select +0+0 {rotation=left, viewportin=720x1280, viewportout=1920x1080+0+60}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "DVI-I-2: nvidia-auto-select +1440+0, DVI-I-3: nvidia-auto-select +0+700"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
 

Attachments

  • IMG_20170914_215237_937.jpg
    IMG_20170914_215237_937.jpg
    934 KB · Views: 779
Try % curl wttr.in/amsterdam, replace amsterdam with your home city (Or better your home city with amsterdam :D).
ansiweather is not bad also, but it's got few not very nice dependencies, which I don't use, like sysutils/coreutils
and shells/bash.

Thanks ILUXA, really helpful; You're right, I don't use neither bash and only occasionally some of the GNU utilities, so it's truly a waste of time and space. I had them installed already as dependency for other ports so didn't even care about this.

PS: good joke and right mood ;)
 
wttr.in is pretty powerful. Found this link https://github.com/chubin/wttr.in

For instance you can refine down to a PostCode and/or present data in imperial using the ?u parameter

You can even pull it down as a .png image curl -o t.png wttr.in/london.png, or as in a particular language and a transparent image curl -o f.png wttr.in/Paris_0tqp_lang=fr.png

I've installed bash and imagemagick and created a bash script
Code:
curl -o /tmp/w.png wttr.in/London_tqp0.png
convert -resize 512x256 -transparent black /tmp/w.png /tmp/w-resized.png
convert ~/Pictures/bloodflows.jpg /tmp/w-resized.png -geometry +20+20 -composite ~/Pictures/wallpaper.jpg
that pulls the weather down as a image, resizes that image and overlays it onto my wallpaper image
s.jpg
 
I've installed bash and imagemagick and created a bash script
Code:
curl -o /tmp/w.png wttr.in/London_tqp0.png
convert -resize 512x256 -transparent black /tmp/w.png /tmp/w-resized.png
convert ~/Pictures/bloodflows.jpg /tmp/w-resized.png -geometry +20+20 -composite ~/Pictures/wallpaper.jpg
I suppose it can run from crontab(1) or periodic(8), perhaps inserted directly, to refresh for updated weather.
 
I haven't yet got around to figuring a reasonable way to refresh the wallpaper (weather). Cron would be one way, I might just use a sleep 1800 loop along with desktop refresh when idle.

Bottom left corner weather pulled in using methods along the lines as outlined in that earlier post https://forums.freebsd.org/threads/8877/page-39#post-360965

Top is xterm -geometry 104x10+0+0 -fa DejaVu:size=12 -e "$SHELL"

Bottom right is xterm -geometry 80x20+400+300 -fa DejaVu:size=10 -e "htop;$SHELL"

All of those are loaded at startup. Behind each of those xterm windows I have the desktop icons to run those commands ... so if closed they can be easily restarted again



~/.jwmrc has a group setting for xterm of

Code:
<Group>
    <Name>xterm</Name>
    <Option>nolist</Option>
    <Option>noborder</Option>
    <Option>notitle</Option>
    <Option>sticky</Option>
    <Option>nopager</Option>
</Group>

so that no borders or title ..etc. shown (text can still be scrolled using the middle mouse scroll-wheel).

 
Just type crontab -e, then insert your above code (script) directly in it, then add the timing code for the hour or 15 minutes before each line. I believe this file goes into /var/cron/tabs/.

~/.jwmrc has a group setting for xterm of

Code:
<Group>
    <Name>xterm</Name>
    <Option>nolist</Option>
    <Option>noborder</Option>
    <Option>notitle</Option>
    <Option>sticky</Option>
    <Option>nopager</Option>
</Group>
Those are the options I have for programs started in jwm in my above posted configuration.
 
I'm using pacmanfm --desktop to provide desktop icons (and wallpaper), so my script contains
Code:
while true; do
  curl -o /tmp/w.png wttr.in/London_tqp0.png
  convert -resize 448x224 -transparent black /tmp/w.png /tmp/w-resized.png
  convert ~/Pictures/black.png /tmp/w-resized.png -geometry +1+500 -composite ~/Pictures/wallpaper.jpg
  /usr/local/bin/pcmanfm --set-wallpaper=/home/user/Pictures/wallpaper.jpg
  sleep 900
done
to recreate the wallpaper and cycle the desktop every 15 minutes.

Specifically for the top xterm I've created a radio script, currently just with content of
Code:
#!/bin/sh
case "$1" in
   lbc) mpv http://media-ice.musicradio.com/LBCLondonMP3Low ;;
   *) ;;
esac
so I can just type in radio lbc ... to play one radio station and I'll add other stations to that with time (I've just opted to have that talk/news radio station set as the default to load at startup i.e. that xterm is launched using xterm -geometry 104x10+0+0 -fa DejaVu:size=12 -e "radio lbc;$SHELL" ).



I can close either the radio or the htop and use the Ctrl-leftmouseclick-xterm-window combination to select the Full Screen (as per xterm) option whenever I want a full screen terminal session (ditto/reverse to scale that xterm session back down again)
 
Work in progress (xorg, jwm, pcmanfm --desktop)
image.jpg

Some icons set to a transparent icon, so icon text can be placed in reflection of the wallpaper
 
oUdvCou.png


Found out how to replace ugly x11/xscreensaver logo:
Code:
% cd /usr/ports/x11/xscreensaver
% sudo make fetch extract patch
Then replace /usr/ports/x11/xscreensaver/work/xscreensaver-5.36/utils/images/logo-180.xpm with your xpm image:
Code:
% sudo cp ~/image.xpm ./work/xscreensaver-5.36/utils/images/logo-180.xpm
(to convert .png/.jpg image to .xpm use gimp), it shoud be around 30kb, if it will be too big — xscreensaver will crash. Then execute
Code:
% sudo make deinstall install clean

(Logo updated: It's a 180x180 .xpm image with indexed colors (to reduce size), created from /usr/share/examples/BSD_daemon/beastie.fig).
 

Attachments

Last edited by a moderator:
You can even pull it down as a .png image curl -o t.png wttr.in/london.png, or as in a particular language and a transparent image curl -o f.png wttr.in/Paris_0tqp_lang=fr.png
Also it is possible to use wttr.in with conky,
5WOgKsq.png

Just add
Code:
${execi 600 curl 'wttr.in/[b]Yourcity[/b]?0?T?Q'}
to your ~/.conkyrc. Then conky will update current weather forecast every 10 minutes. "?T" is required, it disables colors:
Code:
View options:

    ?0                      # only current weather
    ?1                      # current weather + 1 day
    ?2                      # current weather + 2 days
    ?n                      # narrow version (only day and night)
    ?q                      # quiet version (no "Weather report" text)
    ?Q                      # superquiet version (no "Weather report", no city name)
    ?T                      # switch terminal sequences off (no colors)
Use curl 'wttr.in/:help' to show all options.
 
Back
Top