feat: remove app2unit

This commit is contained in:
2 * r + 2 * t
2026-06-20 14:28:03 +10:00
parent 0518ca0131
commit 9cae22e790
4 changed files with 8 additions and 10 deletions
+1 -2
View File
@@ -8,7 +8,6 @@ The main control script for the Caelestia dotfiles.
- [`swappy`](https://github.com/jtheoof/swappy) - screenshot editor - [`swappy`](https://github.com/jtheoof/swappy) - screenshot editor
- [`grim`](https://gitlab.freedesktop.org/emersion/grim) - taking screenshots - [`grim`](https://gitlab.freedesktop.org/emersion/grim) - taking screenshots
- [`dart-sass`](https://github.com/sass/dart-sass) - discord theming - [`dart-sass`](https://github.com/sass/dart-sass) - discord theming
- [`app2unit`](https://github.com/Vladimir-csp/app2unit) - launching apps
- [`wl-clipboard`](https://github.com/bugaevc/wl-clipboard) - copying to clipboard - [`wl-clipboard`](https://github.com/bugaevc/wl-clipboard) - copying to clipboard
- [`slurp`](https://github.com/emersion/slurp) - selecting an area - [`slurp`](https://github.com/emersion/slurp) - selecting an area
- [`gpu-screen-recorder`](https://git.dec05eba.com/gpu-screen-recorder/about) - screen recording - [`gpu-screen-recorder`](https://git.dec05eba.com/gpu-screen-recorder/about) - screen recording
@@ -77,7 +76,7 @@ Install all [dependencies](#dependencies), then install
e.g. via an AUR helper (yay) e.g. via an AUR helper (yay)
```sh ```sh
yay -S libnotify swappy grim dart-sass app2unit wl-clipboard slurp gpu-screen-recorder glib2 cliphist fuzzel python-build python-installer python-hatch python-hatch-vcs yay -S libnotify swappy grim dart-sass wl-clipboard slurp gpu-screen-recorder glib2 cliphist fuzzel python-build python-installer python-hatch python-hatch-vcs
``` ```
Now, clone the repo, `cd` into it, build the wheel via `python -m build --wheel` Now, clone the repo, `cd` into it, build the wheel via `python -m build --wheel`
+4 -5
View File
@@ -8,7 +8,7 @@
slurp, slurp,
wl-clipboard, wl-clipboard,
cliphist, cliphist,
app2unit, xdg-utils,
dart-sass, dart-sass,
grim, grim,
fuzzel, fuzzel,
@@ -46,7 +46,7 @@ python3.pkgs.buildPythonApplication {
slurp slurp
wl-clipboard wl-clipboard
cliphist cliphist
app2unit xdg-utils
dart-sass dart-sass
grim grim
fuzzel fuzzel
@@ -65,11 +65,10 @@ python3.pkgs.buildPythonApplication {
substituteInPlace src/caelestia/subcommands/screenshot.py \ substituteInPlace src/caelestia/subcommands/screenshot.py \
--replace-fail '"qs", "-c", "caelestia"' '"caelestia-shell"' --replace-fail '"qs", "-c", "caelestia"' '"caelestia-shell"'
# Use config bin instead of discord + fix todoist + fix app2unit # Use config bin instead of discord + fix todoist
substituteInPlace src/caelestia/subcommands/toggle.py \ substituteInPlace src/caelestia/subcommands/toggle.py \
--replace-fail 'discord' ${discordBin} \ --replace-fail 'discord' ${discordBin} \
--replace-fail '["todoist"]' '["todoist.desktop"]'\ --replace-fail '["todoist"]' '["todoist.desktop"]'
--replace-fail 'app2unit' ${app2unit}/bin/app2unit
# Use config style instead of darkly # Use config style instead of darkly
substituteInPlace src/caelestia/data/templates/qtengine.json \ substituteInPlace src/caelestia/data/templates/qtengine.json \
+2 -2
View File
@@ -120,7 +120,7 @@ class Command:
) )
if action == "watch": if action == "watch":
subprocess.Popen(["app2unit", "-O", new_path], start_new_session=True) subprocess.Popen(["xdg-open", new_path], start_new_session=True)
elif action == "open": elif action == "open":
p = subprocess.run( p = subprocess.run(
[ [
@@ -135,6 +135,6 @@ class Command:
] ]
) )
if p.returncode != 0: if p.returncode != 0:
subprocess.Popen(["app2unit", "-O", new_path.parent], start_new_session=True) subprocess.Popen(["xdg-open", new_path.parent], start_new_session=True)
elif action == "delete": elif action == "delete":
new_path.unlink() new_path.unlink()
+1 -1
View File
@@ -135,7 +135,7 @@ class Command:
if (spawn[0].endswith(".desktop") or shutil.which(spawn[0])) and not any( if (spawn[0].endswith(".desktop") or shutil.which(spawn[0])) and not any(
selector(client) for client in self.get_clients() selector(client) for client in self.get_clients()
): ):
hypr.dispatch("exec", f"[workspace special:{self.args.workspace}] app2unit -- {shlex.join(spawn)}") hypr.dispatch("exec", f"[workspace special:{self.args.workspace}] {shlex.join(spawn)}")
return True return True
else: else:
return False return False