feat(ags): launch apps with hyprctl instead of ags

This commit is contained in:
matt1432 2023-10-12 01:01:38 -04:00
parent 0604985c71
commit 2e8faa7657
4 changed files with 13 additions and 17 deletions

View file

@ -1,2 +0,0 @@
On fullscreen, make bar disappear (opacity 0)
Click to reappear

View file

@ -1,4 +1,4 @@
import { App, Applications, Widget } from '../../imports.js'; import { App, Applications, Utils, Widget } from '../../imports.js';
const { Label, Box, Icon, Button, Scrollable, Entry, EventBox } = Widget; const { Label, Box, Icon, Button, Scrollable, Entry, EventBox } = Widget;
const { getWindow } = App const { getWindow } = App
@ -21,7 +21,8 @@ const AppItem = (app, window) => {
className: 'app', className: 'app',
connections: [['clicked', () => { connections: [['clicked', () => {
App.closeWindow(window); App.closeWindow(window);
app.launch(); Utils.exec(`hyprctl dispatch exec ${app.executable}`);
++app.frequency;
}]], }]],
child: Box({ child: Box({
children: [ children: [

View file

@ -7,17 +7,14 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1696980982, "lastModified": 1697084795,
"narHash": "sha256-8hXv02iTueoqWgS5aRi2p+jDgXxqPtp4S2hjYQsPCvw=", "narHash": "sha256-LtX5RryB60j6vfSiX54rcGdaQVU5oH9JJc65ZtuizmU=",
"owner": "Aylur", "path": "/home/matt/git/ags",
"repo": "ags", "type": "path"
"rev": "70b8966b2cd3a834d52a1062b1d2cc6a26e9c5ca",
"type": "github"
}, },
"original": { "original": {
"owner": "Aylur", "path": "/home/matt/git/ags",
"repo": "ags", "type": "path"
"type": "github"
} }
}, },
"flake-compat": { "flake-compat": {
@ -530,11 +527,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1697069045, "lastModified": 1697083502,
"narHash": "sha256-80cy1s92pYIhD4FLaSAxLEgVcBo3gcX70GCm0Z7no9U=", "narHash": "sha256-WzXsFXmQJN/noHZPuSw+Yl3KeKOpKbH74iIzqKyiXWg=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "b5f2b4924ed6f505b95c71acd1180475d12396fd", "rev": "6f5c921ddcc818b1e24a117721c58d0d5037e8b6",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -19,7 +19,7 @@
}; };
ags = { ags = {
url = "github:Aylur/ags"; url = "path:/home/matt/git/ags";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };