From abcaed51da0250e9e49fe31574f11d0a81b4c5e3 Mon Sep 17 00:00:00 2001 From: xbazzi Date: Sun, 10 Aug 2025 00:15:24 -0600 Subject: [PATCH] Modify quickshell to run as bg process --- Makefile | 9 ++++++--- README.md | 25 ++++++++++++++++++++----- hyprshell/hyprshell | 1 + 3 files changed, 27 insertions(+), 8 deletions(-) create mode 120000 hyprshell/hyprshell diff --git a/Makefile b/Makefile index 057a60b..fe9b8a0 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ +.ONESHELL: + dev: - ln -s $(PWD) $(HOME)/.config/quickshell - quickshell -c hyprshell + ln -s $(PWD)/hyprshell $(HOME)/.config/quickshell/hyprshell-dev + quickshell -c hyprshell-dev & cleanup: - unlink $(HOME)/.config/quickshell \ No newline at end of file + pkill quickshell + unlink $(HOME)/.config/quickshell/hyprshell-dev \ No newline at end of file diff --git a/README.md b/README.md index bfb1e41..1bce4f0 100644 --- a/README.md +++ b/README.md @@ -5,27 +5,32 @@ A future starter shell for HyprLand. ## Testing and Development 1. Clone the repository and cd into it -2. `make dev` +2. `make dev` to get a working quickshell +3. `make cleanup` to stop the `quickshell` process and unlink the directories This will symlink the repo to `~/.config/quickshell` and start the quickshell process. You'll be able to see your changes as you work. -## Installation +## Installation + +### Touch Grass Method To install it permanently, you just have to copy the contents of the repo to `~/.config/quickshell`. Do that how you must. +After it's installed, just add `quickshell -c hyprshell &` to your hyprland `exec-once` block. + ### Nix Flake (The Real Cool Way) Add this to your `flake.nix`. Make sure you have the home manager module. ```nix inputs = { -hyprshell.url = "git+https://gitgud.foo/thegrind/hypr-shell.git"; + hyprshell.url = "git+https://gitgud.foo/thegrind/hypr-shell.git"; }; ``` -Then in your `configuration.nix` +Then, either throw this in your `configuration.nix`: ```nix # Enable home manager @@ -35,4 +40,14 @@ home-manager = { } ``` -After it's installed just add `quickshell -c hyprshell` to your hyprland `exec-once` block. \ No newline at end of file +Or, if you load home manager in your flake: + +```nix + homeConfigurations = { + modules = [ + inputs.hyprshell.homeManagerModules.default + # Other files/inputs + ]; + }; + }; +``` \ No newline at end of file diff --git a/hyprshell/hyprshell b/hyprshell/hyprshell new file mode 120000 index 0000000..65c730a --- /dev/null +++ b/hyprshell/hyprshell @@ -0,0 +1 @@ +/home/xbazzi/repos/hypr-shell/hyprshell \ No newline at end of file