Skip to content

Instantly share code, notes, and snippets.

View y8a5y's full-sized avatar
🐢
🚩🏴

Marius y8a5y

🐢
🚩🏴
View GitHub Profile
@y8a5y
y8a5y / find_the_bloody_device_who_wakes_up_your_laptop_from_sleep.md
Last active December 24, 2025 11:40
find the bloody device who wakes up your laptop from sleep

context: my laptop recently started to fail staying in sleep mode, waking up instantly after sleep.

note: I've tackeled a quite similar subject in this gist.

I've agregated many posts from various places online to make a hopefully easy way to find the culprit and permanently disabling it, without side effect nor hacks.

  1. list your devices that have the authority to wake up your computer:
grep enable /proc/acpi/wakeup
@y8a5y
y8a5y / yt-layout-switch.js
Last active January 17, 2026 22:39
Youtube layout switch, ViolentMonkey script
// ==UserScript==
// @name YouTube layout switch
// @description Script to switch the two main columns of YT's video layout (puts player on the right and video list on the left).
//
// @author y8a5y
// @namespace https://gist.github.com/y8a5y/d88d2f0225b0246692ea302653e5183e
// @version 1.1.0
//
// @match *://www.youtube.com/*
// @icon https://www.youtube.com/favicon.ico
@y8a5y
y8a5y / disable_wakeup_from_mouse_movement_on_systemd_distros.md
Last active January 14, 2025 16:18
disable wakeup from mouse movement on systemd distros

context: my laptop does not offer option to disable wakeup from mouse movement in bios and an option in KDE is nowhere to be found.

I've agregated many posts from various places online to make a hopefully easy way to disable permanently this behaviour without side effect nor hacks.

  1. find your mouse with udevadm info
# list your available mouse inputs
ls /dev/input/mouse*
# print mouse info