settings.nix 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. { config, pkgs, lib, inputs, ... }:
  2. let
  3. users = import ./../../../../config/users.nix;
  4. in
  5. {
  6. programs.dank-material-shell = {
  7. settings = {
  8. currentThemeName = "dynamic";
  9. currentThemeCategory = "dynamic";
  10. customThemeFile = "/home/${users.default}/.config/DankMaterialShell/themes/gnomeAdwaita/theme.json";
  11. registryThemeVariants = {
  12. deepmono = {
  13. dark = {
  14. flavor = "mono";
  15. accent = "fog";
  16. };
  17. };
  18. };
  19. cornerRadius = 12;
  20. clockFormat = "24h";
  21. syncComponentAnimationSpeeds = false;
  22. barElevationEnabled = false;
  23. showWeather = false;
  24. controlCenterShowMicPercent = true;
  25. controlCenterWidgets = [
  26. {
  27. id = "volumeSlider";
  28. enabled = true;
  29. width = 50;
  30. }
  31. {
  32. id = "brightnessSlider";
  33. enabled = true;
  34. width = 50;
  35. }
  36. {
  37. id = "wifi";
  38. enabled = true;
  39. width = 50;
  40. }
  41. {
  42. id = "bluetooth";
  43. enabled = true;
  44. width = 50;
  45. }
  46. {
  47. id = "audioOutput";
  48. enabled = true;
  49. width = 50;
  50. }
  51. {
  52. id = "audioInput";
  53. enabled = true;
  54. width = 50;
  55. }
  56. {
  57. id = "nightMode";
  58. enabled = true;
  59. width = 50;
  60. }
  61. {
  62. id = "idleInhibitor";
  63. enabled = true;
  64. width = 50;
  65. }
  66. ];
  67. showWorkspaceIndex = true;
  68. showWorkspaceApps = true;
  69. appIdSubstitutions = [];
  70. clockDateFormat = "dddd, d. MMM";
  71. greeterEnableFprint = true;
  72. greeterEnableU2f = true;
  73. greeterWallpaperPath = "/home/${users.default}/Pictures/shell-imgs/bg.png";
  74. weatherEnabled = false;
  75. networkPreference = "wifi";
  76. cursorSettings = {
  77. theme = "System Default";
  78. size = 24;
  79. niri = {
  80. hideWhenTyping = false;
  81. hideAfterInactiveMs = 0;
  82. };
  83. hyprland = {
  84. hideOnKeyPress = false;
  85. hideOnTouch = false;
  86. inactiveTimeout = 0;
  87. };
  88. dwl = {
  89. cursorHideTimeout = 0;
  90. };
  91. };
  92. fontFamily = "Adwaita Sans";
  93. monoFontFamily = "Adwaita Mono";
  94. acMonitorTimeout = 300;
  95. acLockTimeout = 300;
  96. acSuspendTimeout = 600;
  97. lockBeforeSuspend = true;
  98. dockPosition = 0;
  99. enableFprint = true;
  100. enableU2f = true;
  101. notificationHistoryEnabled = false;
  102. notificationHistoryMaxAgeDays = 1;
  103. osdPowerProfileEnabled = true;
  104. powerMenuActions = [
  105. "reboot"
  106. "logout"
  107. "poweroff"
  108. "lock"
  109. "suspend"
  110. "restart"
  111. "hibernate"
  112. ];
  113. powerMenuDefaultAction = "poweroff";
  114. updaterUseCustomCommand = true;
  115. updaterCustomCommand = "nix-update";
  116. screenPreferences = {
  117. dock = [];
  118. notifications = [
  119. "all"
  120. ];
  121. wallpaper = [
  122. "all"
  123. ];
  124. notepad = [];
  125. };
  126. showOnLastDisplay = {
  127. dock = false;
  128. notifications = true;
  129. };
  130. barConfigs = [
  131. {
  132. id = "default";
  133. name = "Main Bar";
  134. enabled = true;
  135. position = 1;
  136. screenPreferences = [
  137. "all"
  138. ];
  139. showOnLastDisplay = true;
  140. leftWidgets = [
  141. "workspaceSwitcher"
  142. {
  143. id = "music";
  144. enabled = true;
  145. }
  146. ];
  147. centerWidgets = [
  148. {
  149. id = "clock";
  150. enabled = true;
  151. clockCompactMode = false;
  152. }
  153. ];
  154. rightWidgets = [
  155. {
  156. id = "notificationButton";
  157. enabled = true;
  158. }
  159. {
  160. id = "systemTray";
  161. enabled = true;
  162. }
  163. {
  164. id = "usbManager";
  165. enabled = true;
  166. }
  167. {
  168. id = "battery";
  169. enabled = true;
  170. }
  171. {
  172. id = "controlCenterButton";
  173. enabled = true;
  174. showAudioPercent = false;
  175. showBrightnessIcon = true;
  176. showBrightnessPercent = false;
  177. showMicIcon = true;
  178. showMicPercent = false;
  179. showBatteryIcon = false;
  180. showPrinterIcon = false;
  181. showScreenSharingIcon = true;
  182. }
  183. ];
  184. spacing = 0;
  185. innerPadding = -4;
  186. bottomGap = 0;
  187. transparency = 1;
  188. widgetTransparency = 1;
  189. squareCorners = true;
  190. noBackground = false;
  191. maximizeWidgetIcons = false;
  192. maximizeWidgetText = false;
  193. removeWidgetPadding = false;
  194. widgetPadding = 8;
  195. gothCornersEnabled = false;
  196. gothCornerRadiusOverride = false;
  197. gothCornerRadiusValue = 12;
  198. borderEnabled = false;
  199. borderColor = "surfaceText";
  200. borderOpacity = 1;
  201. borderThickness = 1;
  202. widgetOutlineEnabled = false;
  203. widgetOutlineColor = "primary";
  204. widgetOutlineOpacity = 1;
  205. widgetOutlineThickness = 1;
  206. fontScale = 1;
  207. iconScale = 1;
  208. autoHide = false;
  209. autoHideDelay = 250;
  210. showOnWindowsOpen = false;
  211. openOnOverview = false;
  212. visible = true;
  213. popupGapsAuto = true;
  214. popupGapsManual = 0;
  215. maximizeDetection = true;
  216. scrollEnabled = true;
  217. scrollXBehavior = "column";
  218. scrollYBehavior = "workspace";
  219. shadowIntensity = 0;
  220. shadowOpacity = 60;
  221. shadowColorMode = "text";
  222. shadowCustomColor = "#000000";
  223. clickThrough = false;
  224. attachToScreenEdge = false;
  225. }
  226. ];
  227. desktopClockCustomColor = {
  228. r = 1;
  229. g = 1;
  230. b = 1;
  231. a = 1;
  232. hsvHue = -1;
  233. hsvSaturation = 0;
  234. hsvValue = 1;
  235. hslHue = -1;
  236. hslSaturation = 0;
  237. hslLightness = 1;
  238. valid = true;
  239. };
  240. systemMonitorCustomColor = {
  241. r = 1;
  242. g = 1;
  243. b = 1;
  244. a = 1;
  245. hsvHue = -1;
  246. hsvSaturation = 0;
  247. hsvValue = 1;
  248. hslHue = -1;
  249. hslSaturation = 0;
  250. hslLightness = 1;
  251. valid = true;
  252. };
  253. builtInPluginSettings = {
  254. dms_settings_search = {
  255. trigger = "?";
  256. };
  257. dms_notepad = {
  258. enabled = false;
  259. };
  260. dms_clipboard_search = {
  261. trigger = "cb";
  262. };
  263. };
  264. configVersion = 17;
  265. };
  266. };
  267. }