Forum › Forums › antiX-development › antiX Respins › antiX 22 dwm Unofficial Spin
Tagged: DWM, spin, unofficial
- This topic has 75 replies, 9 voices, and was last updated Jan 23-6:48 pm by techore.
-
AuthorPosts
-
January 21, 2023 at 8:55 pm #97943Member
techore
::@olsztyn, gotcha. It is good information and I glad you shared it. I need to dig deeper. Thank you.
January 22, 2023 at 7:58 am #97962Member
techore
::@olsztyn, you are correct. Not that I doubted you. I tested on another computer and the outcome was as you described. Either I took a misstep or tainted my testing or build computer.
Can you attach your st config.h file and the resulting file using the the command below? I like to see the difference between yours and st-flexipatch’s config and the installed fonts.
fc-list > fonts.txtIf you don’t have the time. I understand and no problem. Thank you.
January 22, 2023 at 9:07 am #97969Member
blur13
::you can specify the font used after compiling by using eg:
st -f “DejaVu Sans Mono:pixelsize=14:antialias=true:autohint=true”
That way you can try some emoji fonts to see if the blocks disappear.
I’ve also found it helpful to play around with the font config file in ~/.config/fontconfig/. You can add the font Noto Emoji to ~/.fonts
St doesnt handle color so the the black and white Noto Emoji is the way to go. Or symbola.
<match target=”pattern”>
<test name=”family”><string>monospace</string></test>
<edit name=”family” mode=”append”><string>Noto Emoji</string></edit>
</match>January 22, 2023 at 9:09 am #97970Member
blur13
::This will add the appended font to the monospace font, so that any characters not available in the monospace font will use the emoji font.
January 22, 2023 at 1:57 pm #97989Memberolsztyn
::Can you attach your st config.h file and the resulting file using the the command below?
My Config.h from source code attached as well as fonts.txt.
Thanks and regards.Update:
Sorry, the upload rejected config.h so copying inline below:/* See LICENSE file for copyright and license details. */
/*
* appearance
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
static char *font = “Liberation Mono:pixelsize=12:antialias=true:autohint=true”;
static int borderpx = 2;/*
* What program is execed by st depends of these precedence rules:
* 1: program passed with -e
* 2: scroll and/or utmp
* 3: SHELL environment variable
* 4: value of shell in /etc/passwd
* 5: value of shell in config.h
*/
static char *shell = “/bin/sh”;
char *utmp = NULL;
/* scroll program: to enable use a string like “scroll” */
char *scroll = NULL;
char *stty_args = “stty raw pass8 nl -echo -iexten -cstopb 38400”;/* identification sequence returned in DA and DECID */
char *vtiden = “\033[?6c”;/* Kerning / character bounding-box multipliers */
static float cwscale = 1.0;
static float chscale = 1.0;/*
* word delimiter string
*
* More advanced example: L” `’\”()[]{}”
*/
wchar_t *worddelimiters = L” “;/* selection timeouts (in milliseconds) */
static unsigned int doubleclicktimeout = 300;
static unsigned int tripleclicktimeout = 600;/* alt screens */
int allowaltscreen = 1;/* allow certain non-interactive (insecure) window operations such as:
setting the clipboard text */
int allowwindowops = 0;/*
* draw latency range in ms – from new content/keypress/etc until drawing.
* within this range, st draws when content stops arriving (idle). mostly it’s
* near minlatency, but it waits longer for slow updates to avoid partial draw.
* low minlatency will tear/flicker more, as it can “detect” idle too early.
*/
static double minlatency = 8;
static double maxlatency = 33;/*
* blinking timeout (set to 0 to disable blinking) for the terminal blinking
* attribute.
*/
static unsigned int blinktimeout = 800;/*
* thickness of underline and bar cursors
*/
static unsigned int cursorthickness = 2;/*
* bell volume. It must be a value between -100 and 100. Use 0 for disabling
* it
*/
static int bellvolume = 0;/* default TERM value */
char *termname = “st-256color”;/*
* spaces per tab
*
* When you are changing this value, don’t forget to adapt the »it« value in
* the st.info and appropriately install the st.info in the environment where
* you use this st version.
*
* it#$tabspaces,
*
* Secondly make sure your kernel is not expanding tabs. When running `stty
* -a` »tab0« should appear. You can tell the terminal to not expand tabs by
* running following command:
*
* stty tabs
*/
unsigned int tabspaces = 8;/* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = {
/* 8 normal colors */
“black”,
“red3”,
“green3”,
“yellow3”,
“blue2”,
“magenta3”,
“cyan3”,
“gray90”,/* 8 bright colors */
“gray50”,
“red”,
“green”,
“yellow”,
“#5c5cff”,
“magenta”,
“cyan”,
“white”,[255] = 0,
/* more colors can be added after 255 to use with DefaultXX */
“#cccccc”,
“#555555”,
};/*
* Default colors (colorname index)
* foreground, background, cursor, reverse cursor
*/
unsigned int defaultfg = 7;
unsigned int defaultbg = 0;
static unsigned int defaultcs = 256;
static unsigned int defaultrcs = 257;/*
* Default shape of cursor
* 2: Block (“█”)
* 4: Underline (“_”)
* 6: Bar (“|”)
* 7: Snowman (“☃”)
*/
static unsigned int cursorshape = 2;/*
* Default columns and rows numbers
*/static unsigned int cols = 80;
static unsigned int rows = 24;/*
* Default colour and shape of the mouse cursor
*/
static unsigned int mouseshape = XC_xterm;
static unsigned int mousefg = 7;
static unsigned int mousebg = 0;/*
* Color used to display font attributes when fontconfig selected a font which
* doesn’t match the ones requested.
*/
static unsigned int defaultattr = 11;/*
* Force mouse select/shortcuts while mask is active (when MODE_MOUSE is set).
* Note that if you want to use ShiftMask with selmasks, set this to an other
* modifier, set to 0 to not use it.
*/
static uint forcemousemod = ShiftMask;/*
* Internal mouse shortcuts.
* Beware that overloading Button1 will disable the selection.
*/
static MouseShortcut mshortcuts[] = {
/* mask button function argument release */
{ XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
{ ShiftMask, Button4, ttysend, {.s = “\033[5;2~”} },
{ XK_ANY_MOD, Button4, ttysend, {.s = “\031”} },
{ ShiftMask, Button5, ttysend, {.s = “\033[6;2~”} },
{ XK_ANY_MOD, Button5, ttysend, {.s = “\005”} },
};/* Internal keyboard shortcuts. */
#define MODKEY Mod1Mask
#define TERMMOD (ControlMask|ShiftMask)static Shortcut shortcuts[] = {
/* mask keysym function argument */
{ XK_ANY_MOD, XK_Break, sendbreak, {.i = 0} },
{ ControlMask, XK_Print, toggleprinter, {.i = 0} },
{ ShiftMask, XK_Print, printscreen, {.i = 0} },
{ XK_ANY_MOD, XK_Print, printsel, {.i = 0} },
{ TERMMOD, XK_Prior, zoom, {.f = +1} },
{ TERMMOD, XK_Next, zoom, {.f = -1} },
{ TERMMOD, XK_Home, zoomreset, {.f = 0} },
{ TERMMOD, XK_C, clipcopy, {.i = 0} },
{ TERMMOD, XK_V, clippaste, {.i = 0} },
{ TERMMOD, XK_Y, selpaste, {.i = 0} },
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
};/*
* Special keys (change & recompile st.info accordingly)
*
* Mask value:
* * Use XK_ANY_MOD to match the key no matter modifiers state
* * Use XK_NO_MOD to match the key alone (no modifiers)
* appkey value:
* * 0: no value
* * > 0: keypad application mode enabled
* * = 2: term.numlock = 1
* * < 0: keypad application mode disabled
* appcursor value:
* * 0: no value
* * > 0: cursor application mode enabled
* * < 0: cursor application mode disabled
*
* Be careful with the order of the definitions because st searches in
* this table sequentially, so any XK_ANY_MOD must be in the last
* position for a key.
*//*
* If you want keys other than the X11 function keys (0xFD00 – 0xFFFF)
* to be mapped below, add them to this array.
*/
static KeySym mappedkeys[] = { -1 };/*
* State bits to ignore when matching key or button events. By default,
* numlock (Mod2Mask) and keyboard layout (XK_SWITCH_MOD) are ignored.
*/
static uint ignoremod = Mod2Mask|XK_SWITCH_MOD;/*
* This is the huge key array which defines all compatibility to the Linux
* world. Please decide about changes wisely.
*/
static Key key[] = {
/* keysym mask string appkey appcursor */
{ XK_KP_Home, ShiftMask, “\033[2J”, 0, -1},
{ XK_KP_Home, ShiftMask, “\033[1;2H”, 0, +1},
{ XK_KP_Home, XK_ANY_MOD, “\033[H”, 0, -1},
{ XK_KP_Home, XK_ANY_MOD, “\033[1~”, 0, +1},
{ XK_KP_Up, XK_ANY_MOD, “\033Ox”, +1, 0},
{ XK_KP_Up, XK_ANY_MOD, “\033[A”, 0, -1},
{ XK_KP_Up, XK_ANY_MOD, “\033OA”, 0, +1},
{ XK_KP_Down, XK_ANY_MOD, “\033Or”, +1, 0},
{ XK_KP_Down, XK_ANY_MOD, “\033 = {
[SEL_RECTANGULAR] = Mod1Mask,
};/*
* Printable characters in ASCII, used to estimate the advance width
* of single wide characters.
*/
static char ascii_printable[] =
” !\”#$%&'()*+,-./0123456789:;<=>?”
“@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_”
“`abcdefghijklmnopqrstuvwxyz{|}~”;- This reply was modified 3 months, 1 week ago by olsztyn.
- This reply was modified 3 months, 1 week ago by olsztyn.
Attachments:
Live antiX Boot Options (Previously posted by Xecure):
https://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_ParametersJanuary 22, 2023 at 2:10 pm #97993Memberolsztyn
::Can you attach your st config.h file and the resulting file using the the command below? I like to see the difference between yours and st-flexipatch’s config and the installed fonts.
It appears that my config.h posted inline in the prior post has formatting off a bit vs. how it would look if attached. However, as I mentioned before it is pretty much the original source code, with no modification.
Live antiX Boot Options (Previously posted by Xecure):
https://antixlinuxfan.miraheze.org/wiki/Table_of_antiX_Boot_ParametersJanuary 22, 2023 at 6:09 pm #98003Member
techore
January 22, 2023 at 7:40 pm #98015Member
techore
::St doesnt handle color so the the black and white Noto Emoji is the way to go. Or symbola.
The issue was indeed the font selection. Thank you @blur13, @andyprough, and @olsztyn for your help and patience.
January 22, 2023 at 7:56 pm #98016MemberColonel Panic
::Hi techore,
You’ve obviously done a thorough job of work on this respin, so well done. Just one thing though; since you’re going for lightweight software throughout, does it have any browsers capable of displaying the more resource-intensive sites such as Fastmail or GMail (and allowing one to sign in), or does the user have to install those himself or herself?
- This reply was modified 3 months, 1 week ago by Colonel Panic.
January 22, 2023 at 9:14 pm #98024Member
techore
::Short answer: ‘sudo apt install firefox-esr’
Longer answer:
This spin certainly reflects its author’s preferences–it’s an opinionated spin :), but I decided to create install scripts for the non-essential items unrelated to basic operations, user interface, and dependencies for the aforementioned to reduce the need for folks to ‘sudo apt –purge” items.If you want to use my preferred applications after installation, ‘sudo /usr/local/src/antix-dwm/install/install-defaults.sh’ and this will result with qutebrowser. I have been gravitating to vi key driven software which is a common theme of this spin; editor, file manager, and Internet browser.
Also, firefox-esr works just fine. Excellent browser but review the security and privacy settings.
Edit: antiX’s Package Installer is on the spin and provides a convenient and curated list of software including Internet browsers and email clients.
Hit me with more questions.
- This reply was modified 3 months, 1 week ago by techore.
January 22, 2023 at 9:50 pm #98030Member
blur13
::qutebrowser is really cool since its completely keyboard driven, but I dislike the QtWebEngine. Vivaldi browser is actually a somewhat good compromise between a solid web engine (chromium) and keyboard friendly. Its got “spatial navigation”, meaning you can quite intuitively select links using shift+ASDW (or arrow keys). This is something an old browser like Links2 does by default, and its amazing how that sort of feature is missing in modern browsers like firefox or chrome. Using “tab” to cycle through all the elements just to select a link is too inefficient.
January 22, 2023 at 10:04 pm #98032Member
techore
::qutebrowser is really cool since its completely keyboard driven, but I dislike the QtWebEngine.
What about QtWebEngine do you dislike? I am not a fan myself but interested in your perspective.
I am not happy with any them from a privacy and security perspective, but I keep coming back to qutebrowser. It meets most of my needs and vi modes and keybindings is what originally captured my attention. For sites that don’t work properly, I usually fallback to firefox-esr. When I use qutebrowser, I do miss some of the firefox extensions.
January 22, 2023 at 10:42 pm #98037Moderator
Brian Masinick
::Luakit, nyxt, qutebrowser, vimb are four potential options. Nyxt looks pretty powerful; I grabbed the .deb and started the installation and STOPPED because it has a huge number of dependencies that appeared to bring in an entire environment – no go for a light distribution like ours!
Vimb is not found in our repository.
luakit is available and documentation is available. The antiX Wiki has some good documentation –
https://man.archlinux.org/man/community/luakit/luakit.1.en--
Brian MasinickJanuary 23, 2023 at 6:51 am #98053Member
blur13
::“For sites that don’t work properly, I usually fallback to firefox-esr.”
Well, thats just it. The QtWebEngine lags behind the latest chromium version by quite a lot, so its almost obsolete out of the box.
January 23, 2023 at 6:44 pm #98108Member
techore
::Well, thats just it. The QtWebEngine lags behind the latest chromium version by quite a lot, so its almost obsolete out of the box.
Ugh. Well, I am not surprised but not happy about it either.
-
AuthorPosts
- You must be logged in to reply to this topic.