Using macros instead of hardcoded paths
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user