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 / niri-blur-wallpaper.nix
Created February 5, 2025 14:06
Blur wallpaper when workspace is not empty for Niri
{pkgs, ...}: let
niri-blur-wallpaper = pkgs.writers.writePython3Bin "niri-blur-wallpaper" {doCheck = false;} ''
import os
import subprocess
import json
wallpapers_path = "/home/eden/Pictures/Wallpapers/"
wallpapers_cache_path = "/home/eden/.cache/swww/"
events_of_interest = ["Workspace focused", "Window opened", "Window closed"]
@EdenQwQ
EdenQwQ / waybar.nix
Created February 4, 2025 01:33
My waybar config
{config, ...}: let
moduleConfiguration =
/*
jsonc
*/
''
// Modules configuration
"niri/workspaces": {
"format": "{icon}",
"format-icons": {
@EdenQwQ
EdenQwQ / flake.nix
Created February 3, 2025 13:01
My nix configuration for generating wallpapers based on a given colorscheme
{
description = "Eden's NixOS Flake";
outputs = {
nixpkgs,
home-manager,
nur,
...
} @ inputs: let
system = "x86_64-linux";
@EdenQwQ
EdenQwQ / animations.nix
Created January 6, 2025 11:42
My niri setup using nix
{
programs.niri.settings.animations = {
window-open = {
easing = {
curve = "ease-out-expo";
duration-ms = 800;
};
};
window-close = {
easing = {
@EdenQwQ
EdenQwQ / smart-tile.py
Last active January 23, 2025 14:47
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