A nice config.h for DWM

Submitted by Fekete Zoltán on Thu, 12/10/2020 - 10:42

/* See LICENSE file for copyright and license details. */

/* appearance */
static const unsigned int borderpx  = 1;        /* border pixel of windows */
static const unsigned int snap      = 32;       /* snap pixel */
static const int showbar            = 1;        /* 0 means no bar */
static const int topbar             = 1;        /* 0 means bottom bar */
static const char *fonts[]          = { "monospace:size=10" };
static const char dmenufont[]       = "monospace:size=10";
static const char col_gray1[]       = "#222222";

Shift View for DWM
Save this as a c file into your suckless's dwm source directory, include it in your config.h, setup keybindings, and enjoy!
Fekete Zoltán Thu, 12/10/2020 - 10:36

Tags

Disable line wrap in jed editor

Yes, this is a very annoying feature. Jed breaks the lines at 80th character by default.

To switch this off put something like below into your ~/.jedrc file:

WRAP_DEFAULT=2048

Now line wrapping is performed at the 2048th character.

Fekete Zoltán Sun, 11/22/2020 - 17:30

Tags

My ~/.fvwm/config

Submitted by Fekete Zoltán on Thu, 06/25/2020 - 12:29
AddToFunc StartFunction
+ I Module FvwmBacker
+ I Module FvwmPager 0 3
+ I Module FvwmIconMan
+ I Exec xclock -g 100x100-1+0 -bg "grey95"
+ I Exec xclock -g 100x40-1+101 -strftime "%B %d." -d -bg "grey95"

AddToFunc RestartFunction
+ I Exec killall xclock

EdgeScroll 0 0
DesktopSize 1x1

Style "*" HandleWidth 4,HilightBack brown,HilightFore yellow,MouseFocusClickRaises
Style "FvwmButtons" NoTitle,BorderWidth 0,HandleWidth 0,Sticky,WindowListSkip
Style "FvwmPager" NoTitle,BorderWidth 0,HandleWidth 0,Sticky,WindowListSkip
Style "FvwmIconMan" NoTitle,BorderWidth 0,HandleWidth 0,Sticky,Windo

Tags

ffmpeg for local media sharing

This is my own setup:

ffmpeg4 -i <infile> -crf 27 -b:a 96k -ac 1 -ar 22050 -maxrate 480k -tune zerolatency -bufsize 960k outfile.mp4

 

Fekete Zoltán Sun, 03/22/2020 - 20:08
pkg_add: Can't open +CONTENTS of depending package
You get this error message from pkgin.
Fekete Zoltán Tue, 02/11/2020 - 20:53

Upgrade PIP

Submitted by Fekete Zoltán on Fri, 10/25/2019 - 10:39

Use this command to upgrade all packages in your local pip repository:

pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 pip install -U

NOTE: You have to substitute pip command with the full name of your installed pip version on NetBSD, like this: pip3.7