Skip to content

Instantly share code, notes, and snippets.

View POP303U's full-sized avatar

pops POP303U

  • 09:04 (UTC +02:00)
View GitHub Profile
@POP303U
POP303U / afk_py2
Created October 17, 2025 06:35
move mouse + inhibitor 2 move mouse + inhibitor 2.0
import pyautogui, time, ctypes
# wapi vars
ES_CONTINUOUS = 0x80000000
ES_SYSTEM_REQUIRED = 0x80000001
KI_SCANCODE = 0x0008
VK_SHIFT = 0x10 # shift key
INPUT_KEYBOARD = 1
# stop crashes on screen edge
@POP303U
POP303U / afk_inhibitor.py
Created October 17, 2025 06:10
moves mouse and inhibits shutdown
import pyautogui, time, ctypes
# wapi vars
ES_CONTINUOUS = 0x80000000
ES_SYSTEM_REQUIRED = 0x80000001
# stop crashes on screen edge
pyautogui.FAILSAFE = False
# init slight direction changer
@POP303U
POP303U / main.c
Created October 16, 2025 14:40
chip-8 framebuffer test (sdl2, C)
#include <SDL2/SDL.h>
#include <SDL2/SDL_rect.h>
#include <SDL2/SDL_render.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
const uint8_t FB_WIDTH = 64;
const uint8_t FB_HEIGHT = 32;
const uint8_t SCALE = 20;
https://docs.google.com/document/d/1VQAoOt-Z8irkAsTiMazgo1ug2Y7FQ_54uV6rNDljzJU/edit?tab=t.xw2biv6upbt6
@POP303U
POP303U / gtk.css
Created April 20, 2024 23:30
Add on hacks for adw-gtk-theme so it works with flatpak: https://aur.archlinux.org/packages/adw-gtk-theme
/*
This is just Rose-Pine as an example...
These hacks are unfinished and some ui elements may look bad...
Also theming was never intended by flatpak devs so yeah
*/
/* Import colors */
@define-color accent_color #c4a7e7;
@POP303U
POP303U / bugs.md
Last active May 4, 2024 12:19
all the stupid bugs accumulated over 4 months in my rice

Bugs / Problems / New features

Default font sucks

Problem: Gnu free font doesn't look good

Solution: Edit fontconfig and use noto-fonts

Nerd font icons not looking good / missing

Problem: Some icons are not there / missing >

@POP303U
POP303U / chromium.bat
Created March 11, 2024 07:36
Install chromium undetected on school pc's
winget install --id=Hibbiki.Chromium -e
@POP303U
POP303U / notes.md
Created February 3, 2024 13:58
Personal notes for my hypr-dots [https://github.com/POP303U/hypr-dots]

Todo for my rice:

Customization

Waybar

  • Finetune some modules to be better
  • Fix some formatting issues
  • Cpu usage kinda wrong ngl
  • Make different tooltips for different styles?