1
0

default.nix 1.5 KB

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