forked from Shinonome/caelestia-cli
feat: remove app2unit
This commit is contained in:
@@ -8,7 +8,6 @@ The main control script for the Caelestia dotfiles.
|
||||
- [`swappy`](https://github.com/jtheoof/swappy) - screenshot editor
|
||||
- [`grim`](https://gitlab.freedesktop.org/emersion/grim) - taking screenshots
|
||||
- [`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
|
||||
- [`slurp`](https://github.com/emersion/slurp) - selecting an area
|
||||
- [`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)
|
||||
|
||||
```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`
|
||||
|
||||
+4
-5
@@ -8,7 +8,7 @@
|
||||
slurp,
|
||||
wl-clipboard,
|
||||
cliphist,
|
||||
app2unit,
|
||||
xdg-utils,
|
||||
dart-sass,
|
||||
grim,
|
||||
fuzzel,
|
||||
@@ -46,7 +46,7 @@ python3.pkgs.buildPythonApplication {
|
||||
slurp
|
||||
wl-clipboard
|
||||
cliphist
|
||||
app2unit
|
||||
xdg-utils
|
||||
dart-sass
|
||||
grim
|
||||
fuzzel
|
||||
@@ -65,11 +65,10 @@ python3.pkgs.buildPythonApplication {
|
||||
substituteInPlace src/caelestia/subcommands/screenshot.py \
|
||||
--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 \
|
||||
--replace-fail 'discord' ${discordBin} \
|
||||
--replace-fail '["todoist"]' '["todoist.desktop"]'\
|
||||
--replace-fail 'app2unit' ${app2unit}/bin/app2unit
|
||||
--replace-fail '["todoist"]' '["todoist.desktop"]'
|
||||
|
||||
# Use config style instead of darkly
|
||||
substituteInPlace src/caelestia/data/templates/qtengine.json \
|
||||
|
||||
@@ -120,7 +120,7 @@ class Command:
|
||||
)
|
||||
|
||||
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":
|
||||
p = subprocess.run(
|
||||
[
|
||||
@@ -135,6 +135,6 @@ class Command:
|
||||
]
|
||||
)
|
||||
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":
|
||||
new_path.unlink()
|
||||
|
||||
@@ -135,7 +135,7 @@ class Command:
|
||||
if (spawn[0].endswith(".desktop") or shutil.which(spawn[0])) and not any(
|
||||
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
|
||||
else:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user