diff --git a/.gitignore b/.gitignore index 2d64ee6a..f45eb5bb 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,6 @@ build/ *.o *-protocol.c *-protocol.h -.ccls-cache \ No newline at end of file +.ccls-cache + +hyprctl/hyprctl \ No newline at end of file diff --git a/Makefile b/Makefile index 2b42ce4b..37cf377d 100644 --- a/Makefile +++ b/Makefile @@ -50,5 +50,17 @@ debug: clear: rm -rf build rm -f *.o *-protocol.h *-protocol.c + rm -f ./hyprctl/hyprctl + +all: + make config + make release + cd ./hyprctl && make all && cd .. + +install: + make all + sudo cp ./example/hyprland.desktop /usr/share/wayland-sessions/ + sudo cp ./build/Hyprland /usr/bin + sudo cp ./hyprctl/hyprctl /usr/bin config: xdg-shell-protocol.o wlr-layer-shell-unstable-v1-protocol.o idle-protocol.o diff --git a/example/hyprland.desktop b/example/hyprland.desktop new file mode 100644 index 00000000..57ad076f --- /dev/null +++ b/example/hyprland.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Name=Hyprland +Comment=An intelligent dynamic tiling Wayland compositor +Exec=Hyprland +Type=Application \ No newline at end of file