Skip to content

Instantly share code, notes, and snippets.

@rob121
rob121 / afterdark.sh
Created October 28, 2025 19:52 — forked from vdbsh/afterdark.sh
Old-school screensaver functionality for GNOME/Wayland desktops
#!/usr/bin/env bash
# afterdark.sh: Old-school screensaver functionality for GNOME/Wayland desktops
# This script will run arbitrary command after specified time period, if there is no inhibiting applications detected
# Started process will be terminated at the first sight of user activity
# You supposed to launch something like full-screen video or cmatrix :)
start_after=15 # minutes
cmd="mpv /home/test/Videos/after_dark.mp4 --fs --loop --no-osc"
lock_screen=false
@rob121
rob121 / afterdark.sh
Created October 28, 2025 19:52 — forked from vdbsh/afterdark.sh
Old-school screensaver functionality for GNOME/Wayland desktops
#!/usr/bin/env bash
# afterdark.sh: Old-school screensaver functionality for GNOME/Wayland desktops
# This script will run arbitrary command after specified time period, if there is no inhibiting applications detected
# Started process will be terminated at the first sight of user activity
# You supposed to launch something like full-screen video or cmatrix :)
start_after=15 # minutes
cmd="mpv /home/test/Videos/after_dark.mp4 --fs --loop --no-osc"
lock_screen=false
@rob121
rob121 / gist:1800b953dc4e770bfffa43a916efedf9
Last active December 11, 2024 14:34
TVos App Deep Link for Spectrum, Youtube
# Spectrum
bbcamerica: spectrumtv://watch.spectrum.net/livetv/17?linkorigin=sirilivetunein&idtype=network
disney: spectrumtv://watch.spectrum.net/livetv/85?linkorigin=sirilivetunein&idtype=network
tbs: spectrumtv://watch.spectrum.net/livetv/340?linkorigin=sirilivetunein&idtype=network
Channels (This is based on network id)
1401: CTN (WCLF) HD
729: PBS (WEDU) HD
@rob121
rob121 / nagging_alert_notification.yaml
Last active February 4, 2025 22:44 — forked from pavax/nagging_alert_notification.yaml
Home Assistant Alert Notification Blueprint
blueprint:
name: Nagging Alerting Notification Automation
description: >
Trigger an alert based on the state of a given sensor.
The Alert is send to a mobile app device and repeats as long as the sensor is in the given state.
An additonal action can be specified. This might be useful to tts the message.
domain: automation
source_url: https://gist.github.com/rob121/06697c3f5bc7a12baa640d99c003f786
input:
sensor_entity:
@rob121
rob121 / macapp.go
Created June 11, 2021 18:33 — forked from mholt/macapp.go
Distribute your Go program (or any single binary) as a native macOS application
// Package main is a sample macOS-app-bundling program to demonstrate how to
// automate the process described in this tutorial:
//
// https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5
//
// Bundling the .app is the first thing it does, and creating the DMG is the
// second. Making the DMG is optional, and is only done if you provide
// the template DMG file, which you have to create beforehand.
//
// Example use: