Skip to content

Instantly share code, notes, and snippets.

View EdenQwQ's full-sized avatar
🥶
Exam upcoming

Eden EdenQwQ

🥶
Exam upcoming
View GitHub Profile
@EdenQwQ
EdenQwQ / smart-tile.py
Last active July 15, 2024 22:13
Mosaic tiling for hyprland. Tile floating windows in an intelligent manner
import subprocess
import os
import operator
import argparse
from json import loads
class Position:
def __init__(self, x, y):
self.x = x
self.y = y
@EdenQwQ
EdenQwQ / fullscreen.sh
Created August 3, 2023 04:32
Automatically move fullscreen window to an empty workspace
#!/usr/bin/env bash
tmpdir=$(dirname "$0")/../tmp/fullscreen-old-workspace
isfullscreen=$(hyprctl activewindow | grep 'fullscreen:' | head -n1 | cut -d' ' -f2)
active=$(hyprctl activewindow | grep pid: | sd '\s*pid: (.*)' '$1')
if [ "$isfullscreen" -eq 1 ]; then
hyprctl dispatch fullscreen >/dev/null