This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{config, ...}: let | |
moduleConfiguration = | |
/* | |
jsonc | |
*/ | |
'' | |
// Modules configuration | |
"niri/workspaces": { | |
"format": "{icon}", | |
"format-icons": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "Eden's NixOS Flake"; | |
outputs = { | |
nixpkgs, | |
home-manager, | |
nur, | |
... | |
} @ inputs: let | |
system = "x86_64-linux"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
programs.niri.settings.animations = { | |
window-open = { | |
easing = { | |
curve = "ease-out-expo"; | |
duration-ms = 800; | |
}; | |
}; | |
window-close = { | |
easing = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |