1
0

default.nix 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. { config, pkgs, lib, inputs, ... }:
  2. {
  3. imports = [
  4. inputs.dms.homeModules.dank-material-shell
  5. ];
  6. home.packages = with pkgs; [
  7. ];
  8. home.file.".config/DankMaterialShell/settings.json".source = ./settings.json;
  9. home.file.".config/DankMaterialShell/clsettings.json".source = ./clsettings.json;
  10. home.file.".config/DankMaterialShell/plugin_settings.json".source = ./plugin_settings.json;
  11. programs.dank-material-shell = {
  12. enable = true;
  13. systemd = {
  14. enable = true;
  15. restartIfChanged = true;
  16. };
  17. enableSystemMonitoring = true;
  18. enableVPN = true;
  19. enableDynamicTheming = true;
  20. enableAudioWavelength = true;
  21. enableCalendarEvents = true;
  22. };
  23. custom.hyprExtras = {
  24. shell = ''
  25. mainMod = "ALT"
  26. secMod = "SUPER"
  27. --hl.on("hyprland.start", function ()
  28. -- hl.exec_cmd("dms run")
  29. --end)
  30. hl.bind(mainMod .. " + D", hl.dsp.exec_cmd("dms ipc spotlight toggle"))
  31. hl.bind(secMod .. " + V", hl.dsp.exec_cmd("dms ipc clipboard open"))
  32. hl.bind(mainMod .. " + SHIFT + E", hl.dsp.exec_cmd("dms ipc powermenu open"))
  33. hl.bind("CONTROL + ALT + DELETE", hl.dsp.exec_cmd("dms ipc powermenu open"))
  34. hl.bind(secMod .. " + L", hl.dsp.exec_cmd("dms ipc lock lock"))
  35. hl.bind(secMod .. " + SHIFT + S", hl.dsp.exec_cmd("dms screenshot"))
  36. hl.bind("CONTROL + SHIFT + ESCAPE", hl.dsp.exec_cmd("dms ipc call processlist open"))
  37. hl.bind(secMod .. " + CONTROL + SHIFT + C", hl.dsp.exec_cmd("dms ipc color-picker toggle"))
  38. '';
  39. };
  40. }