change eww to ags
This commit is contained in:
parent
7b32e3330c
commit
48c4277b9d
7 changed files with 144 additions and 16 deletions
7
programs/ags/config/config.js
Normal file
7
programs/ags/config/config.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { Switch } from "./modules/workspace-switch.js";
|
||||
|
||||
export default {
|
||||
windows: [
|
||||
Switch(1)
|
||||
]
|
||||
}
|
||||
22
programs/ags/config/modules/clock.js
Normal file
22
programs/ags/config/modules/clock.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
export const Clock = (monitor = 0) => {
|
||||
|
||||
return Widget.Window({
|
||||
monitor,
|
||||
name: `switch${monitor}`,
|
||||
anchor: ['top', 'left', 'right'],
|
||||
margins: [864, 1030],
|
||||
css: 'background: transparent;',
|
||||
child: container,
|
||||
});
|
||||
};
|
||||
|
||||
const container = Widget.Box({
|
||||
css: `
|
||||
min-height: 110px;
|
||||
min-width: 500px;
|
||||
border: 4px solid #f4d80a;
|
||||
border-radius: 50px;
|
||||
margin: 3px;
|
||||
box-shadow: 0 0 0 3px white;
|
||||
`,
|
||||
});
|
||||
22
programs/ags/config/modules/workspace-switch.js
Normal file
22
programs/ags/config/modules/workspace-switch.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
export const Switch = (monitor = 0) => {
|
||||
|
||||
return Widget.Window({
|
||||
monitor,
|
||||
name: `switch${monitor}`,
|
||||
anchor: ['top', 'left', 'right'],
|
||||
margins: [864, 1030],
|
||||
css: 'background: transparent;',
|
||||
child: container,
|
||||
});
|
||||
};
|
||||
|
||||
const container = Widget.Box({
|
||||
css: `
|
||||
min-height: 110px;
|
||||
min-width: 500px;
|
||||
border: 4px solid #f4d80a;
|
||||
border-radius: 50px;
|
||||
margin: 3px;
|
||||
box-shadow: 0 0 0 3px white;
|
||||
`,
|
||||
});
|
||||
19
programs/ags/default.nix
Normal file
19
programs/ags/default.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
# add the home manager module
|
||||
imports = [ inputs.ags.homeManagerModules.default ];
|
||||
|
||||
programs.ags = {
|
||||
enable = true;
|
||||
|
||||
# null or path, leave as null if you don't want hm to manage the config
|
||||
configDir = ./config;
|
||||
|
||||
# additional packages to add to gjs's runtime
|
||||
extraPackages = with pkgs; [
|
||||
gtksourceview
|
||||
webkitgtk
|
||||
accountsservice
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue