1
0
Fork 0

Better Hotkeys

This commit is contained in:
Malte Brandy 2021-10-13 16:51:32 +02:00
parent 57fd2da67c
commit d270d94d67
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
3 changed files with 36 additions and 1 deletions

View file

@ -1,5 +1,8 @@
{ pkgs, lib, ... }:
let
hotkeys = {
Firefox = "firefox";
};
mkTuple = lib.hm.gvariant.mkTuple;
statusScript = pkgs.writeHaskellScript
{
@ -221,7 +224,7 @@ in
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/hotkeys" =
{
binding = "<Super>space";
command = "kitty hotkeys";
command = "kitty ${pkgs.haskell-dialog}/bin/hotkeys ${pkgs.writeText "hotkeys.yaml" (builtins.toJSON hotkeys)}";
name = "Hotkeys";
};
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/clear-notifications" =

View file

@ -1,4 +1,10 @@
{
"haskell-dialog": {
"branch": "main",
"repo": "git:haskell-dialog",
"rev": "66354c1cf519957c5acae1b14a99ba8c941a06c6",
"type": "git"
},
"hexa-nur-packages": {
"branch": "master",
"description": "My personal NUR repository: [maintainer=@mweinelt] ",

View file

@ -0,0 +1,26 @@
final: prev:
let
override = hfinal: hprev: {
relude = hfinal.relude_1_0_0_1;
semialign = hfinal.semialign_1_2;
time-compat = hfinal.time-compat_1_9_6_1;
hashable = hfinal.hashable_1_3_4_1;
yaml = hfinal.callHackageDirect
{
ver = "0.11.7.0";
pkg = "yaml";
sha256 = "0mn08dh5h49np5rd8ym7wl3i8nfdj9vgawprcdgrmvz5j59nsp0n";
}
{ };
aeson = hfinal.callHackageDirect
{
ver = "2.0.1.0";
pkg = "aeson";
sha256 = "0nhzbnygj17m4x39mmf8r13xisc0hnkijnrwyqskf8gk276x9dpz";
}
{ };
};
in
{
haskell-dialog = (prev.unstableHaskellPackages.override { overrides = override; }).callCabal2nix "haskell-dialog" prev.sources.haskell-dialog { };
}