Skip to content

Instantly share code, notes, and snippets.

View realKarthikNair's full-sized avatar
🧸
Working

Karthik Nair realKarthikNair

🧸
Working
View GitHub Profile
@realKarthikNair
realKarthikNair / test.py
Created December 26, 2023 15:07 — forked from engelmarkus/test.py
[POC] Auto-stopping Spotify while other programs play audio
#!/usr/bin/env python
# pip install dbus-python pulsectl
import signal
import sys
import pulsectl
import dbus
def sig_handler(signal, frame):
@realKarthikNair
realKarthikNair / keybindings.pl
Created November 7, 2023 07:22 — forked from elgalu/keybindings.pl
Export Ubuntu shortcuts: keybindings.pl -e keys.csv ;; Import (DANGER) Ubuntu shortcuts: keybindings.pl -i keys.csv
#!/usr/bin/perl
use strict;
my $action = '';
my $filename = '-';
for my $arg (@ARGV){
if ($arg eq "-e" or $arg eq "--export"){
$action = 'export';

Install Google Fonts

Download desired fonts

https://fonts.google.com/?selection.family=Open+Sans

Install Google Fonts on Ubuntu

cd /usr/share/fonts
sudo mkdir googlefonts
cd googlefonts
sudo unzip -d . ~/Downloads/Open_Sans.zip