What does your BSD look like? (Screen Shots..)


#1

So what does your BSD look like? CLI/GUI/WM?

Please post a Screen Shot of your BSD OS running on real hardware or even in an emulator like QEMU/VMware if you’d like :smile:
Here is mine : OpenBSD + CWM + Tray App+ Lenovo G500



#2

KDE Plasma 5 on FreeBSD-CURRENT on an HP EliteBook8570p with an external display.

Twelve virtual desktops:

For legibility, I usually have the resolution of the HP display reduced to 1,280 x 720 pixels –

– but for the shots below, I maximised it to 1,600 x 900.

One of the twelve desktops:

Overviews:


#3

Yesterday, testing multiprocess Firefox 55.0.2 with dom.ipc.processCount set to 20 (more than the content process limit of 7 that’s permissible through about:preferences):

– whilst using poudriere with PARALLEL_JOBS=2 on the four-processor notebook to build x11/kde. Significant use of swap, performance was OK.

Today, whilst building www/firefox (preparing to install 55.0.3) I have hit the content process limit of 20, again there’s significant use of swap, performance is great…

  1  [||||||||||||||||||||||||          58.6%]   Tasks: 170, 0 thr, 33 kthr; 8 running
  2  [|||||||||||||||||||||||||         61.3%]   Load average: 3.83 4.16 4.96 
  3  [||||||||||||||||||||||||||||      70.2%]   Uptime: 01:40:27
  4  [||||||||||||||||||||||||||||      70.7%]
  Mem[||||||||||||||||||||||||||||9.67G/15.9G]
  Swp[||||||||||||||||||          3.63G/8.00G]

S   PID USER      PRI  NI  VIRT   RES S CPU% MEM%   TIME+  Command
S  1745 grahamper  25   0 3877M 2046M S 12.0 12.6 42:24.93 firefox
R  1882 grahamper  31   0 7707M 1183M R 19.1  7.3 11:45.64 seamonkey
R  1775 grahamper  91   0 1947M  633M R 68.3  3.9 58:05.35 firefox -contentproc -childID 3 -isForBr
R  1847 grahamper  86   0 1887M  593M R 47.7  3.6 39:50.15 firefox -contentproc -childID 30 -isForB
S  1853 grahamper  20   0 1873M  590M S  0.0  3.6  3:10.67 firefox -contentproc -childID 33 -isForB
S  1846 grahamper  20   0 1732M  522M S  0.0  3.2  2:19.44 firefox -contentproc -childID 29 -isForB
S  1856 grahamper  20   0 1784M  514M S  0.0  3.2  3:46.48 firefox -contentproc -childID 34 -isForB
S  1496 grahamper  20   0  938M  507M S  3.8  3.1  2:28.85 kwin_x11 -session 1037131636631300015018
S  1851 grahamper  20   0 1788M  502M S  0.9  3.1  4:38.98 firefox -contentproc -childID 32 -isForB
S  1844 grahamper  21   0 1761M  487M S  1.9  3.0  5:56.02 firefox -contentproc -childID 28 -isForB
S  1848 grahamper  22   0 1655M  444M S  2.1  2.7  3:06.20 firefox -contentproc -childID 31 -isForB
S  1834 grahamper  20   0 1617M  415M S  0.0  2.6  2:49.58 firefox -contentproc -childID 23 -isForB
S  1805 grahamper  20   0 1635M  395M S  0.0  2.4  2:46.46 firefox -contentproc -childID 18 -isForB
S  1828 grahamper  20   0 1608M  358M S  0.0  2.2  1:31.28 firefox -contentproc -childID 21 -isForB
S  1819 grahamper  20   0 1632M  357M S  0.0  2.2  2:58.18 thunderbird
S  1842 grahamper  20   0 1612M  352M S  0.0  2.2  2:11.45 firefox -contentproc -childID 27 -isForB
S  1836 grahamper  20   0 1607M  351M S  0.0  2.2  1:56.94 firefox -contentproc -childID 24 -isForB
S  1807 grahamper  20   0 1578M  346M S  0.1  2.1  1:57.61 firefox -contentproc -childID 19 -isForB
S  1857 grahamper  20   0 1597M  345M S  0.0  2.1  1:51.81 firefox -contentproc -childID 35 -isForB
S  1840 grahamper  20   0 1593M  336M S  0.0  2.1  1:44.96 firefox -contentproc -childID 26 -isForB
S  1803 grahamper  20   0 1574M  325M S  0.0  2.0  1:39.09 firefox -contentproc -childID 17 -isForB
S  1838 grahamper  20   0 1501M  281M S  0.0  1.7  1:39.34 firefox -contentproc -childID 25 -isForB
S  1832 grahamper  20   0 1540M  278M S  0.7  1.7 15:28.85 firefox -contentproc -childID 22 -isForB
S  1817 grahamper  20   0 1450M  199M S  0.0  1.2  1:41.52 firefox -contentproc -childID 20 -isForB
S  1306 root       21   0  253M  158M S  3.8  1.0  5:58.10 X -nolisten tcp -auth /var/run/sddm/{9e4
S  1502 grahamper  26   0  521M  149M S 12.1  0.9  6:48.31 plasmashell
R 66836 nobody     81   0  160M  123M R 31.2  0.8  0:03.69 c++ -cc1 -triple x86_64-unknown-freebsd1
S 62840 grahamper  20   0  191M 80788 S  0.0  0.5  0:01.43 kinfocenter
S  1760 grahamper  20   0  256G 76644 S  0.0  0.5  0:14.00 dolphin
S  1809 grahamper  20   0  195M 69692 S  4.1  0.4  0:45.45 konsole
S 59449 grahamper  20   0 95532 57864 S  0.0  0.3  0:01.18 eom /home/grahamperrin/Pictures/2017-08-

#4


#5

Not entirely on-topic, for fun, capturing one of the days when I found myself with one thousand, one hundred tabs in Firefox 56:

– a server, not Firefox, spoilt my first attempt to capture the moment.

Better:

–and as a bonus prize, here’s the post in that screenshot (I still smile to myself when remembering this blooper): https://experts.feverbee.com/t/bloopers/5452/8?u=graham_perrin

Healthy:

Not so healthy:

– the peculiarity in the sidebar of the Firefox window is recognisable, to me, as a sign that Firefox might crash at quit time.

Last but not least, some stupidity, beginning with a detailed recording of the crash:

Throwing myself to the dogs:


#6

NetBSD

Just a fresh install, i’ve changed nothing.

Installed Firefox, gimp, xpdf and ImageMagick, i don’t need more atm. I use the browser as an image viewer, and pdf reader, but pdf reader of Firefox sucks, so i prefer xpdf.

I use cwm, I love it

I know may be a bit ugly, but it’s fine for me


#7

Awesome :+1::triangular_flag_on_post:


#8

XFCE4 NetBSD 8.0 AMD64


#9

Hi everyone!
First post here and my first time using any of the BSD’s.
I’ve been using Void linux musl-libC build and awesome wm for well over a year. Void was created by an old NetBSD dev, so it feels rather interesting to explore differences and similarities with NetBSD.
A MUST? awesome wm!.. Here are a few shots of my one month old laptop set-up.
I’m really loving it!

Configuration files, if anyone would care can be found at https://github.com/voidpin/awesome-wm-netbsd
Regards!


#10

This looks cool… Thanks for sharing :+1:


#11

Thanks!
My pleasure :hugs:
I don’t care for window titlebars and have completely removed the code from the .lua files. Refer to the upstream https://awesomewm.org/ to introduce it back or have a look at my Void dotfiles, there I’ve just disable them but, the code is still there :wink:

EDIT: Icons, Xresources,… added to github.


#12

Thanks :slight_smile:


#13

Found this http://dotshare.it/dots/1421/ sometime ago and thought it could be nice with a “analogue” desktop clock…
…modified it a tiny bit, so it fits with NetBSD colors :wink:
Just create a file named clock.lua with the following content:

-- Clock (GNU - GPLv2)
-- * (c) 2017, Luke Bonham                     
-- * (c) 2013, maisvendoo
-- modified Sep.2018, pin                

local timer = require("gears.timer")
local wibox = require("wibox")
local date  = os.date
local math  = math

local clock = {}

-- Clock parameters

function clock.new(args)
    local args    = args or {}
    local screen  = 1
-- Clock font
    local font    = "Liberation Mono"
-- Clock size
    local width   = 225
    local height  = 225
-- Clock placement on screen
    local x       = 1300
    local y       = 600
-- Background color and transperency
    local bg      = "#00000000"

-- Create wibox

    clock.wibox = wibox {
        bg       = bg,
        width    = width,
        height   = height,
        ontop    = false,
        visible  = true,
        screen   = screen
    }

-- Reference widget size and draw callback for cairo

    clock.wibox : geometry { x = x, y = y }

    clock.wibox : setup {
        fit = function(self, context, width, height)
            return width, height
        end,
        draw = function(self, context, cr, width, height)
            -- Any params calculation
            local radius   = width/2 - 5
            local cx       = width/2
            local cy       = height/2
            local hour_len = 13
            local min_len  = 4

            -- Draw dial

            -- Draw hour divisions
            cr:set_line_width(4)
            cr:set_source_rgba(0.852, 0.352, 0.062, 1)

            local kx = 1.0
            local ky = 1.0

            for i = 0,11 do
                cr:move_to(cx + kx*(radius - hour_len)*math.sin(i*math.rad(30)), cy - kx*(radius - hour_len)*math.cos(i*math.rad(30)) )
                cr:line_to(cx + ky*radius*math.sin(i*math.rad(30)), cy - ky*radius*math.cos(i*math.rad(30)) )
                cr:stroke()
            end

            -- Draw minute divisions
            cr:set_line_width(2)
            cr:set_source_rgba(0.852, 0.352, 0.062, 1)

            for i = 0,59 do
                cr:move_to(cx + kx*(radius - min_len)*math.sin(i*math.rad(6)), cy - ky*(radius - min_len)*math.cos(i*math.rad(6)) )
                cr:line_to(cx + kx*radius*math.sin(i*math.rad(6)), cy - ky*radius*math.cos(i*math.rad(6)) )
                cr:stroke()
            end

            -- Draw digits on dial
            -- local dig_size   = 18
            local dig_radius = radius/1.35
            local n_hours    = 12

            cr:select_font_face(font, 0, 0)
            cr:set_font_size(dig_size)

            for i = 1,n_hours do
                local dig     = math.floor(i*12/n_hours)
                local extents = cr:text_extents(dig)

                local dx = cx + kx*dig_radius*math.sin(i*math.rad(360/n_hours))
                local dy = cy - ky*dig_radius*math.cos(i*math.rad(360/n_hours))

                local tx = dx - extents.width/2
                local ty = dy + extents.height/2

                cr:move_to(tx, ty)
                cr:show_text(dig)
            end

            -- Draw arrows

            -- Get local time
            local sec  = date('%S')
            local min  = date('%M')
            local hour = date('%H')

            -- Set arrow length
            local hour_arrow_len = radius/1.8
            local min_arrow_len  = radius - min_len - 15
            local sec_arrow_len  = radius - min_len - 6

            -- Draw hour arrow
            cr:set_line_width (6)
            cr:set_source_rgba (0.852, 0.352, 0.062, 1)

            cr:move_to(cx, cy)
            cr:line_to(cx + hour_arrow_len*math.sin(math.rad((hour + min/60 + sec/3600)*30)), cy - hour_arrow_len*math.cos(math.rad((hour + min/60 + sec/3600)*30)) )
            cr:stroke()

            -- Draw minute arrow
            cr:set_line_width(4)
            cr:set_source_rgba(0.852, 0.352, 0.062, 1)

            cr:move_to(cx, cy)
            cr:line_to(cx + min_arrow_len*math.sin(math.rad((min + sec/60)*6)), cy - sec_arrow_len*math.cos(math.rad((min + sec/60)*6)) )
            cr:stroke()

            -- Draw second arrow
            cr:set_line_width(2)
            cr:set_source_rgba(0.738, 0.738, 0.738, 1)

            cr:move_to(cx, cy)
            cr:line_to(cx + sec_arrow_len*math.sin(sec*math.rad(6)), cy - sec_arrow_len*math.cos(sec*math.rad(6)) )
            cr:stroke()
        end,
        layout = wibox.widget.base.make_widget
    }

    -- Create timer
    clock.timer = timer { timeout = 1 }

    -- Set timer callback
    clock.timer:connect_signal("timeout", function()
        clock.wibox.widget:emit_signal("widget::redraw_needed")
    end)

    -- Start timer
    clock.timer:start()
end

return clock

Place the file in your ~/.config/awesome
You can also get the file here, https://github.com/voidpin/awesome-wm-netbsd
Now edit your rc.lua file, adding the following lines to it:
At the beginning of the file declare it…

local clock = require("clock")

then find the lines that read

--Wallpapper
set_wallpaper(s)

and add just bellow

--Clock
clock.new({ screen = 1 })

Save and reload rc.lua

How it looks like?!

Obviously, you can place the clock anywhere on the screen, just play with x and y coordinates. The same goes for colors, size, etc…
Regards


#14

This looks awesome :heart_eyes:


#15

Thanks!
…but :roll_eyes: I just took someone else’s code and modified a few lines…
Trying to learn lua right now, …so who knows, maybe I can create something of my own in the near future :thinking:


#16

Just a small addition…
Since I’m running this on a laptop, I’d like to have a simple text battery widget for it. There are a lot of battery widgets for Linux, but they use the acpi -V command or read from /sys/class/power_supply, which don’t exist on NetBSD :hushed:
Today, I’ve manage to fix it :confetti_ball:

Add lines number 4 and 5 bellow to rc.lua

{ -- Right widgets
            layout = wibox.layout.fixed.horizontal,
            wibox.widget.systray(),
	    wibox.widget.textbox(),
	    awful.widget.watch( [[ ksh -c "envstat -s acpibat0:charge | awk 'FNR == 3 {print $6}' | tr -d '()'" ]] , 180),
	    s.mylayoutbox,
	    mytextclock,
        },

So, now I can see my battery :joy:
Note: If you are not using the korn shell you’ll have to replace ksh -c.


#17

That’s really useful …:slight_smile:


#18

An rather old NetBSD/amd64 CWM + tmux screenshot of mine. A typo in the tmux config was returning that wrong CPU temp (it was likely 43 or 53, not 3 :rofl:), fixed soon after