Using macros instead of hardcoded paths

This commit is contained in:
2025-06-10 15:45:03 +02:00
parent 9a4619b1ba
commit ee3cddc7ca
2 changed files with 11 additions and 4 deletions

View File

@@ -1,6 +1,13 @@
#ifndef HYPRLAND_SERVICE_H
#define HYPRLAND_SERVICE_H
#define HYPRLAND_CONF_DIR "~/.config/hypr/"
#define FLOATING_RULE_CONF_FILE HYPRLAND_CONF_DIR "hyprland/floatbydefault.conf"
#define HYPRCTL_BINARY "/usr/bin/hyprctl"
#define NULL_PATH "/dev/null"
#define SET_FLOATING_RULE "/usr/bin/echo 'windowrule = float,class:.*' > " FLOATING_RULE_CONF_FILE
#define REMOVE_FLOATING_RULE "/usr/bin/cat " NULL_PATH " > " FLOATING_RULE_CONF_FILE
#include <list>
#include <string>
#include "Workspace.h"