Skip to content

Instantly share code, notes, and snippets.

View nirbheek's full-sized avatar
📉
Taking a break

Nirbheek Chauhan nirbheek

📉
Taking a break
View GitHub Profile
@nirbheek
nirbheek / GUADEC-2015-typo-BoF-notes.txt
Created August 19, 2015 16:20
Incomplete notes from the Typography + GTK+ session at GUADEC 2015
Incomplete notes from the Typography + GTK+ session:
====================================================
New default fallback font: Noto
-------------------------------
* Noto as the default fallback instead of Deja Vu
* Mangle names to map to just "Noto" to avoid polluting the font namespace
* Noto as fallback for Cantarell
- fontconfig file to do so
* New fontconfig metaconfig for things like headings (document hierarchy)
@nirbheek
nirbheek / generate-fake-cantarell.sh
Last active August 29, 2015 14:27
Takes a given font and changes the font family/wws family names to "Cantarell"
#!/usr/bin/env fontforge
# vim: set sts=4 sw=4 et :
#
# Takes a given font and changes the font family/wws family names to "Cantarell"
# Created for testing GNOME's move away from Cantarell as the UI font
fontname_prefix = "Cantarell"
if ($version < "20080330")
Error("Your version of FontForge is too old - 20080330 or newer is required");
0:00:00.029777509 7928 0x17a8a30 INFO videoaggregator gstvideoaggregator.c:382:gst_videoaggregator_child_proxy_init: intializing child proxy interface
0:00:00.029970047 7928 0x17a8a30 DEBUG videoaggregator gstvideoaggregator.c:894:gst_videoaggregator_update_qos:<GstVideoAggregator@0x17b2fc0> Updating QoS: proportion 0.500000, diff 0:00:00.000000000, timestamp 99:99:99.999999999
0:00:00.032075088 7928 0x17a8a30 DEBUG playout playout.c:803:playout_app_prepare_item: /home/nirbheek/projects/centricular/seamless-mp4/out000.mp4: preparing
0:00:00.032100617 7928 0x17a8a30 DEBUG playout playout.c:1093:main: Setting pipeline to PLAYING
0:00:00.035549247 7928 0x17a8a30 DEBUG playout playout.c:1106:main: Running mainloop
0:00:00.055412496 7928 0x7fd2100060f0 DEBUG playout playout.c:503:playout_item_new_pad: /home/nirbheek/projects/centricular/seamless-mp4/out000.mp4: new pad: 0x17cea10, caps: video/x-raw
0:00:00.055
#!/bin/bash
# vim: set sts=2 sw=2 et :
#
# Author: Nirbheek Chauhan <[email protected]>
# License: BSD
#
# Mutes $MUSIC_APP_NAME when $APP_NAME starts playing something
APP_NAME="lt-stream-app"
MUSIC_APP_NAME="Rhythmbox"

The shoes mocked me as they sit on the mantle-piece. They were pink. Girls like pink, don't they. Or so they're told, I guess. I would've called mine Gladys. She would've played with guns and cars, if I had any say in it. Unless she wanted dolls, but it's hard to tell if what they really want is what the girl next door has.

It seems my being lost in thought has not gone unnoticed, and a young woman with a glass of wine in one hand and a blue tote bag in the other walks towards me; her interest piqued by my steady stare at the shoes. “I was there when they bought those, you know”, she says to me with just a pinch of mourning colouring her voice.

@nirbheek
nirbheek / set_gnome-terminal_transparency.sh
Last active March 6, 2024 09:41
A tiny script to set the transparency for X windows. If AUTOMAGIC_MODE is "true", it tries to find all gnome-terminal windows and applies the transparency to all of them.
#!/bin/bash
# vim: set sts=4 sw=4 et tw=0 :
#
# License: BSD
AUTOMAGIC_MODE="true"
OPACITY_100="0xffffffff"
OPACITY_0="0x0"
: ${XWININFO:=$(type -P xwininfo)}