Skip to content

Instantly share code, notes, and snippets.

View matchcase's full-sized avatar
🦖

Sarthak Shah matchcase

🦖
View GitHub Profile
@matchcase
matchcase / hyprmacs.sh
Created July 23, 2025 10:07
Hyprland Emacsclient Swallow Script
#!/usr/bin/env bash
# Hyprland Emacsclient Swallow Script
# © Sarthak Shah (matchcase), 2025
wait_for_pid() {
local pid=$1
while kill -0 "$pid" 2>/dev/null; do
sleep 0.1
done
}
@matchcase
matchcase / parameterized-packages.org
Last active August 27, 2023 14:00
Final work submission for my GSoC '23 project

Parameterized Packages

Introduction

This document is the final submission report for my Google Summer of Code project. My project is about adding Parameterized Packages to GNU Guix. The original project proposal can be viewed here.

What is GNU Guix?

GNU Guix is a transactional package manager and a GNU/Linux distribution. This means that all package management operations in Guix are pure functions of the package’s dependencies, which provides a lot of benefits such as:

  1. preventing dependency hell
  2. seamless rollbacks
@matchcase
matchcase / clockface.sh
Created July 6, 2023 07:33
Script to print the current clock face's emoji
#!/usr/bin/bash
# GPLv3+
# clockface emoji
# meant to be run twice an hour only
time_m=$(date +"%M") # 00 to 59
time_m=$(expr $time_m + 0)
time_h=$(date +"%I") # 1 to 12
case $time_h in
01)
(($time_m > 29)) && echo "🕜" || echo "🕐";;