way-edges feature
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
otter-launcher = self'.packages.otter-launcher;
|
||||
quickshell = self'.packages.quickshell;
|
||||
waybar = self'.packages.waybar;
|
||||
way-edges = self'.packages.way-edges;
|
||||
};
|
||||
};
|
||||
wpaperd = let
|
||||
|
||||
60
modules/features/way-edges/config.jsonc
Normal file
60
modules/features/way-edges/config.jsonc
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"allow-trailing-commas": true,
|
||||
"widgets": [
|
||||
{
|
||||
"type": "slider",
|
||||
"edge": "right",
|
||||
"position": "top",
|
||||
"thickness": 30,
|
||||
"length": "25%",
|
||||
"margins": {
|
||||
"top": "50%"
|
||||
},
|
||||
"border-width": 4,
|
||||
"border-color": "#cba6f7ff",
|
||||
"fg-color": "#cba6f7bb",
|
||||
"bg-color": "#31324466",
|
||||
"fg-text-color": "#11111bff",
|
||||
"bg-text-color": "#bac2dedd",
|
||||
"transition-duration": 100,
|
||||
"redraw-only-on-internal-update": true,
|
||||
"radius": 10, // corner radius
|
||||
"obtuse-angle": 90, // in degrees(90~180). controls how much curve the widget has
|
||||
"scroll-unit": 0.005,
|
||||
"pinnable": false,
|
||||
"preset": {
|
||||
"type": "speaker",
|
||||
"animation-curve": "Linear", // mute animation
|
||||
"mute-text-color": "#f38ba8ff",
|
||||
"mute-color": "#f38ba8bb",
|
||||
},
|
||||
},
|
||||
{
|
||||
"type": "slider",
|
||||
"edge": "right",
|
||||
"position": "top",
|
||||
"thickness": 30,
|
||||
"length": "25%",
|
||||
"margins": {
|
||||
"top": "25%"
|
||||
},
|
||||
"border-width": 4,
|
||||
"border-color": "#f9e2afff",
|
||||
"fg-color": "#f9e2afbb",
|
||||
"bg-color": "#31324466",
|
||||
"fg-text-color": "#11111bff",
|
||||
"bg-text-color": "#bac2dedd",
|
||||
"transition-duration": 100,
|
||||
"redraw-only-on-internal-update": true,
|
||||
"radius": 10, // corner radius
|
||||
"obtuse-angle": 90, // in degrees(90~180). controls how much curve the widget has
|
||||
"scroll-unit": 0.005,
|
||||
"pinnable": false,
|
||||
"preset": {
|
||||
"type": "backlight",
|
||||
"device": "intel_backlight", // this is the name of the device. Find it under `/sys/class/backlight/` It should be something like `nvidia_0`, `intel_0`, etc.
|
||||
},
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
20
modules/features/way-edges/default.nix
Normal file
20
modules/features/way-edges/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
inputs,
|
||||
moduleWithSystem,
|
||||
...
|
||||
}: {
|
||||
flake.nixosModules.way-edges = moduleWithSystem ({self', ...}: {
|
||||
environment.systemPackages = with self'.packages; [
|
||||
way-edges
|
||||
];
|
||||
});
|
||||
perSystem = {pkgs, ...}: {
|
||||
packages.way-edges = inputs.wrappers.lib.wrapPackage ({...}: {
|
||||
inherit pkgs;
|
||||
package = pkgs.way-edges;
|
||||
flags = {
|
||||
"--config-path" = ./config.jsonc;
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user