This file contains 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 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 |