Use xeniagda/tiny-dfr, configure button style
This commit is contained in:
parent
89031aa0af
commit
e0edef2e30
|
@ -1,7 +1,15 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
tiny-dfr ? pkgs.tiny-dfr
|
|
||||||
}:
|
}:
|
||||||
|
let tiny-dfr = pkgs.tiny-dfr.overrideAttrs (old: {
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "xeniagda";
|
||||||
|
repo = "tiny-dfr";
|
||||||
|
rev = "master";
|
||||||
|
hash = "sha256-I2R28wQz4Vd8VonbDcM6TZOn5lnWSXqwX4w/sieaQL8=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
in
|
||||||
assert tiny-dfr.version == "0.3.1";
|
assert tiny-dfr.version == "0.3.1";
|
||||||
{
|
{
|
||||||
services.udev.packages = [ tiny-dfr ];
|
services.udev.packages = [ tiny-dfr ];
|
||||||
|
@ -37,8 +45,8 @@
|
||||||
MediaLayerDefault = true;
|
MediaLayerDefault = true;
|
||||||
|
|
||||||
MediaLayerKeys = [
|
MediaLayerKeys = [
|
||||||
{ Icon = "prev-workspace"; Action = "Finance"; } # bind me in the window manager!
|
{ Icon = "prev-workspace"; Action = "Finance"; } # bind me in the window manager!
|
||||||
{ Icon = "next-workspace"; Action = "Sport"; } # bind me in the window manager!
|
{ Icon = "next-workspace"; Action = "Sport"; } # bind me in the window manager!
|
||||||
{ Icon = "brightness_low"; Action = "BrightnessDown"; }
|
{ Icon = "brightness_low"; Action = "BrightnessDown"; }
|
||||||
{ Icon = "brightness_high"; Action = "BrightnessUp"; }
|
{ Icon = "brightness_high"; Action = "BrightnessUp"; }
|
||||||
{ Icon = "backlight_low"; Action = "IllumDown"; }
|
{ Icon = "backlight_low"; Action = "IllumDown"; }
|
||||||
|
@ -51,18 +59,25 @@
|
||||||
{ Icon = "volume_up"; Action = "VolumeUp"; }
|
{ Icon = "volume_up"; Action = "VolumeUp"; }
|
||||||
];
|
];
|
||||||
PrimaryLayerKeys = [
|
PrimaryLayerKeys = [
|
||||||
{ Text = "F1"; Action = "F1"; }
|
{ Text = "F1"; Action = "F1"; }
|
||||||
{ Text = "F2"; Action = "F2"; }
|
{ Text = "F2"; Action = "F2"; }
|
||||||
{ Text = "F3"; Action = "F3"; }
|
{ Text = "F3"; Action = "F3"; }
|
||||||
{ Text = "F4"; Action = "F4"; }
|
{ Text = "F4"; Action = "F4"; }
|
||||||
{ Text = "F5"; Action = "F5"; }
|
{ Text = "F5"; Action = "F5"; }
|
||||||
{ Text = "F6"; Action = "F6"; }
|
{ Text = "F6"; Action = "F6"; }
|
||||||
{ Text = "F7"; Action = "F7"; }
|
{ Text = "F7"; Action = "F7"; }
|
||||||
{ Text = "F8"; Action = "F8"; }
|
{ Text = "F8"; Action = "F8"; }
|
||||||
{ Text = "3"; Action = "Num3"; }
|
{ Text = "3"; Action = "Num3"; }
|
||||||
{ Text = "F10"; Action = "F10"; }
|
{ Text = "F10"; Action = "F10"; }
|
||||||
{ Text = "F11"; Action = "F11"; }
|
{ Text = "F11"; Action = "F11"; }
|
||||||
{ Text = "F12"; Action = "F12"; }
|
{ Text = "F12"; Action = "F12"; }
|
||||||
];
|
];
|
||||||
|
ButtonStyle = {
|
||||||
|
InactiveColor = [0.05 0.0 0.1];
|
||||||
|
ActiveColor = [0.3 0.2 0.7];
|
||||||
|
OnTime = 0.05;
|
||||||
|
OffTime = 0.1;
|
||||||
|
Bounce = 5;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user