Skip to content

u/Vedexent

In this archive from May 2013 to Aug 2018

4
posts
97
comments
1
media
267
score

Top posts

Does a direct-to-framebuffer, html4/5, JavaScript compliant, vim key-bindings, Browser exist?

Does anyone know of a browser which: a) Produces a full graphical website rendering (unlike elinks, or w3m) b) supports HTML 4/5 - with JavaScript support c) Can support Vim style key bindings (think luakit, dwb, or uzbl) - either natively or via plugins or userscripts? d) Can write directly to the...

1 points7 comments
Open on Reddit

Top comments

In Linux, the "framebuffer" is a virtual device which encapsulates the video hardware directly.

Typically with GUI programs in Linux, you need X-Windows, which provides a level of abstraction to the framebuffer. Typically your software makes requests of the Windows manager / desktop environments (Gnome, KDE, dwm, ratpoison, i3, awesome, etc.), which makes requests of X-server, which manages calls to the framebuffer, which talks to the video hardware (that's somewhat simplified).

The positive is that your software doesn't need to know anything about the graphics environment - it just updates its windows/views/etc. - and the Windows Manager / X-windows decide how everything should look, and sends the graphical data to the framebuffer, which updates the hardware.

The drawback is that the whole GUI setup - X-windows, Windows manager, etc. adds a lot of complexity, overhead, packages, etc.

If a piece of software can talk to the framebuffer directly, then you don't need any of that overhead.

Some command-line level software can do this - feh (image viewer) and mplayer (video) can both write directly to the framebuffer without ever needing an X-windows environment. You can use these from a TTY console. NetSurf will even web browse to the framebuffer.

TYPICALLY the only time you NEED to do this is small, embedded Linux installations like a Raspberry Pi running a kiosk (like an interactive mall map, or airline check in), where your hardware is so small that every bit of complexity counts.

14 points

answer: Anyone who wants to use an X-based program like a web-browser.

Don't get me wrong - I love my Tmux, use it a ton, and I live mostly down in the terminal (alpine, mocp, mplayer, etc. - all do the job very well) - and I agree with the SPIRIT of the OP.

But I have yet to find a web browser that a) supports Vim Keybindings (sorry NetSurf), b) supports Javascript, and c) writes directly to the framebuffer.

Point me at one of those, and I'll happily ditch my tiling-WM (dwm), and X-server.

11 points

Others have given good advice here: brevity, tight editing, and efficiency.

But honestly? Don't infodump at all.

Fictional worlds aren't meant to be read. They exist to be the setting for fiction, or games, or solely as the by-product of the fun the author has creating them.

The best way to communicate information about your world, is to take the audience through a story written or set there.

If it's the background for a story or RPG, the relevant details will come out with the story or as relevant background information for other things raised in game-play ( you would know that ... ).

It's not the answer world-builders like - it's all so cool and we want everyone to be as excited about our lore as we are - but it's the sad reality. Compare how many people have read The Hobbit and The Lord of the Rings, compared to The Silmarillion or The Book of Lost Tales.

Even Tolkien can't infodump to the popular reader.

10 points

Sure.

It's the output of the pacgraph program.

It creates a dependency graph of all installed packages, colors them according to whether they are "top level" packages, or are a dependency for other packages. Size of the package name is related to the installed size of the package. The package name placement is random each time it is run, so running it repeatedly against the same set of installed packages give different images.

Although I got it from the arch repositories, it works on other distros (probably on any distro).

The program creates an SVG image, but I use Inkscape to convert the SVG to a PNG.

I then created a short BASH script - called background.sh - to generate the dependency graph image, convert it to PNG, and set it as wallpaper via feh

#!/bin/bash
pacgraph -p 12 60 -n -b "#000000" -t "#553333" -d "#333355" -l "#335533" -f /home/vedexent/wallpaper/pacgraph
inkscape --export-png=/home/vedexent/wallpaper/pacgraph.png /home/vedexent/wallaper/pacgraph.svg
feh --bg-max /home/vedexent/wallpaper/pacgraph.png

Then I have two lines in my .xinitrc which deal with the wallpaper.

sh ~/.fehbg &

loads the last wallpaper, and then later

~/bashScripts/background.sh &

I do it that way as it take 10-15 seconds for the new wallpaper to generate when the X-sever is started; the fehbg scripts puts up a wallpaper immediately and the other script replaces it when it is ready.


Put it all together, and I have an ever-changing wallpaper (refreshed on X-server restart), showing my installed packages in an interesting (imo) graphic.

Install a new package, or suite of packages, re-start the X-server, and you have new packages appear in the graph.

9 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.