Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name YouTube Spacebar Pausing
// @namespace io.github.petlyh
// @match https://www.youtube.com/*
// @grant none
// @version 1.0
// @author petlyh
// @description Allows pausing videos with the spacebar even if the player isn't focused.
// ==/UserScript==
@petlyh
petlyh / flutter_linux_icon.md
Last active October 2, 2025 16:08
Simple guide on how to setup app icon for Flutter on Linux

How to setup app icon for Flutter on Linux

First, add your icon as a Flutter asset in pubspec.yaml if you haven't already:

 flutter:
   uses-material-design: true

   assets:
     - CHANGELOG.md
@petlyh
petlyh / .tridactylrc
Last active December 2, 2024 19:27
Personal Tridactyl config.
" Rebind HJKL to JKLØ
set hintchars jkløasdfhgyuiopqwertnmzxcvb
bind j scrollpx -50
bind k scrollline 10
bind l scrollline -10
bind ø scrollpx 50
bind J back
bind K tabprev
bind L tabnext
bind Ø forward
/* Tridactyl Catppuccin Mauve */
/* Modified from https://github.com/lonepie/catppuccin-tridactyl */
:root { /* Catppuccin Colors */
--bg: #1e1e2e;
--currentline: #302D41;
--fg: #d9e0ee;
--comment: #575268;
--flamingo: #f2cdcd;
--mauve: #ddb6f2;