mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-20 07:50:00 -05:00
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
|
- [`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
@@ -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 \
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user