Skip to content

Instantly share code, notes, and snippets.

@binarynoise
binarynoise / kitty-theme-listener.sh
Last active August 9, 2026 17:48
Kitty Theme Listener
#!/usr/bin/bash
#set -x
kitty_cmd=(kitty +kitten themes --cache-age -1 --reload-in all)
changeTheme() {
case "$1" in
*dark* | *Dark* )
"${kitty_cmd[@]}" Tango Dark
echo "-> dark"
;;
@binarynoise
binarynoise / vnc-server.sh
Created August 29, 2022 14:39
Virtual Display VNC-Server
#!/bin/bash
# https://github.com/dianariyanto/virtual-display-linux/
# https://bbs.archlinux.org/viewtopic.php?id=180904
# https://unix.stackexchange.com/questions/378373/add-virtual-output-to-xorg
set -euo pipefail
set -x
resolution="1920x1080"
screen="HDMI-2"