Clone this repo
# ~/ git clone https://github.com/hxero/hyprbadapple cd hyprbadapple
hyprland- the window manager itselfmpv- to play the audio file in the backgroundsocat- to unpause mpv for syncing
Arch-based
sudo pacman -S mpv socat
Other distros
idk, figure it out
See useful stats for configuration
# ~/hyprbadapple cd baprocess # ~/hyprbadapple/baprocess pip install -r requirements.txt python pack.py # skipping video decode... # total frames : 6572 # most boxes : 153 # total boxes : 309476 # grid size : 64x48 # wrote output/boxes.bin
You can edit some constants based on these values and your monitor resolution
in config.lua
MAX_BOXES = 153, -- the `most boxes` from python SCALE = 24, -- scale -> resolution height / (grid height) OFFSET_X = 192, -- center -> [(resolution width) - (grid width * scale)] / 2 OFFSET_Y = 46, -- depends on your top|bottom bars - can be 0 if you want it to fullscreen
resolution is your monitor resolution which can be accessed from
hypctl monitors # Monitor eDP-1 (ID 0): # 1920x1200@60 at 0x0
e.g. 1920x1200 and grid size: 64x48
1920 is the resolution width
1200 is the resolution height
64 is the grid width
48 is the grid height
So, SCALE = 1200/48 = 25
and, OFFSET_X = (1920 - 64*25)/2 = 160
25 is from
SCALE
Change this to launch different window e.g. kitty foot
LAUNCH = "~/hyprbadapple/box", -- window launch command -- local LAUNCH = "kitty"; -- local LAUNCH = "firefox";
It's not recommended to launch heavy window like a browser or something similar as it may crash
Important
To force stop cleanly, press SUPER + U after you started
cd into hyprbadapple, then run
sh start.sh&&exit
or directly
hyprctl eval "dofile'$PWD/init.lua'"&&exit
&&exitto exit the terminal after starting