The main event loop
statusdir=$XDG_RUNTIME_DIR/statusbar
mkdir -pm0700 "$statusdir"
#!/bin/python | |
import os, sys, hashlib | |
def main(): | |
progname = 'epub-font-obfuscation' | |
algorithms = {'idpf': 1040, 'adobe': 1024} | |
if len(sys.argv) > 2: | |
uid = sys.argv[1] |
Convert PCF and BDF files to bitmap only OpenType (.otb) using fontforge | |
If you have a new enough fontforge, the python version of this script can | |
optionally read filenames from standard input, generating multiple .otb | |
font files as it finds new families. It also handles gzipped PCF and BDF | |
files. |
fc-glyph - display all fonts which contain specified glyphs |
:xdg-support: https://wiki.archlinux.org/index.php/XDG_Base_Directory | |
:xdg-spec: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html | |
:fhs: https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard | |
:madness: http://pub.gajendra.net/2012/09/dotfiles | |
:litter: https://www.reddit.com/r/linux/comments/971m0z/im_tired_of_folders_littering_my_home_directory/ | |
:systemd: https://www.freedesktop.org/wiki/Software/systemd/ | |
:systemd-fhs: https://www.freedesktop.org/software/systemd/man/file-hierarchy.html | |
:systemd-fhs-bin: https://www.freedesktop.org/software/systemd/man/file-hierarchy.html#~/.local/bin/ | |
:toc: macro |
PREFIX = /usr/local | |
bindir = /bin | |
LDLIBS := $(shell pkg-config --libs-only-l x11 xi) | |
all: mouse-spring | |
install: | |
install -Dm0755 mouse-spring $(DESTDIR)$(PREFIX)$(bindir)/mouse-spring |
statusdir=$XDG_RUNTIME_DIR/statusbar
mkdir -pm0700 "$statusdir"
The goal of this setup is to create a single pulseaudio service which
has sole access to the audio hardware while providing a server for many
clients to use. This is not using the system wide mode as it
doesn’t run as root, nor does it use the --system
flag.
One disadvantage of this arrangement is the commands pacmd
and pactl
will no longer work when run as your user. Both rely on the user dbus
An upgrade via pacman could be broken down into three phases:
Updates the sync databases with, if any, new packages. These are downloaded
from the mirrors usually as gzip files located in /var/lib/pacman/sync
such as core.db
and extra.db
.
From N1256: (See http://port70.net/~nsz/c/c99/n1256.html#J.2)
main
using one of the specified forms (5.1.2.2.1).