Zen::Mode::Hyprland
Constants
CFG = (((Path[HOME_DIR] / ".config") / "hypr") / "hyprland.conf").to_s
CFG_BAK = CFG + ".bak"
HOME_DIR = Path.home
REGEX = /^(\s*)(\w+:?\w*)(\s*=\s*)(.+?)(\s*($|#.*))/
1: space, 2: key, 3: =, 4: value, 5: trailing comment
VARS_BOOL = ["enabled"]
VARS_NUMS = ["power", "passes", "bordersize", "rounding", "gaps_in", "gaps_out", "decorations:shadow_render_power"]
VERSION = "0.1.1"
Class methods
default_mode
Sourcezen_mode
Source