settings.nix 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  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. accent = "fog";
  15. flavor = "mono";
  16. };
  17. };
  18. };
  19. radiusStrength = 38;
  20. clockFormat = "24h";
  21. greeterEnableFprint = true;
  22. greeterEnableU2f = true;
  23. weatherEnabled = false;
  24. fontFamily = "Adwaita Sans";
  25. monoFontFamily = "Adwaita Mono";
  26. powerMenuActions = [
  27. "reboot"
  28. "logout"
  29. "poweroff"
  30. "lock"
  31. "suspend"
  32. "restart"
  33. "hibernate"
  34. ];
  35. powerMenuDefaultAction = "poweroff";
  36. dockConfigs = [
  37. {
  38. id = "dock";
  39. name = "Dock";
  40. enabled = false;
  41. screenPreferences = [
  42. "all"
  43. ];
  44. showOnLastDisplay = false;
  45. position = 0;
  46. mode = "compact";
  47. taskbarAlign = "center";
  48. widgetExpansion = "popout";
  49. iconSize = 40;
  50. spacing = 4;
  51. itemSpacing = 4;
  52. margin = 0;
  53. bottomGap = 0;
  54. transparency = 1;
  55. followInterfaceStyle = true;
  56. autoHide = false;
  57. smartAutoHide = false;
  58. useOverlayLayer = false;
  59. editOnRightClick = false;
  60. showOnFullscreen = false;
  61. openOnOverview = false;
  62. groupByApp = false;
  63. separatePinnedAndRunningApps = false;
  64. restoreSpecialWorkspaceOnClick = false;
  65. isolateDisplays = false;
  66. indicatorStyle = "circle";
  67. borderEnabled = false;
  68. borderColor = "surfaceText";
  69. borderOpacity = 1;
  70. borderThickness = 1;
  71. launcherEnabled = false;
  72. launcherLogoMode = "apps";
  73. launcherLogoCustomPath = "";
  74. launcherLogoColorOverride = "";
  75. launcherLogoSizeOffset = 0;
  76. launcherLogoBrightness = 0.5;
  77. launcherLogoContrast = 1;
  78. maxVisibleApps = 0;
  79. maxVisibleRunningApps = 0;
  80. showOverflowBadge = true;
  81. showTrash = false;
  82. trashFileManager = "default";
  83. trashCustomCommand = "";
  84. magnification = false;
  85. magnificationScale = 130;
  86. magnificationProfile = "parabolic";
  87. magnificationExpand = false;
  88. order = [];
  89. widgets = [
  90. {
  91. id = "dock_launcher";
  92. widgetId = "dockLauncher";
  93. enabled = true;
  94. }
  95. {
  96. id = "dock_apps";
  97. widgetId = "appsDock";
  98. enabled = true;
  99. }
  100. {
  101. id = "dock_trash";
  102. widgetId = "dockTrash";
  103. enabled = true;
  104. }
  105. ];
  106. }
  107. ];
  108. matugenSpec = "2021";
  109. dmsWindowsFloatingSeeded = [
  110. "hyprland"
  111. ];
  112. syncComponentAnimationSpeeds = false;
  113. barElevationEnabled = false;
  114. controlCenterWidgets = [
  115. {
  116. id = "user";
  117. enabled = true;
  118. w = 5;
  119. h = 1;
  120. col = 0;
  121. row = 0;
  122. }
  123. {
  124. id = "settings";
  125. enabled = true;
  126. w = 1;
  127. h = 1;
  128. small = true;
  129. col = 5;
  130. row = 0;
  131. }
  132. {
  133. id = "lock";
  134. enabled = true;
  135. w = 1;
  136. h = 1;
  137. small = true;
  138. col = 6;
  139. row = 0;
  140. }
  141. {
  142. id = "power";
  143. enabled = true;
  144. w = 1;
  145. h = 1;
  146. small = true;
  147. col = 7;
  148. row = 0;
  149. }
  150. {
  151. enabled = true;
  152. id = "volumeSlider";
  153. w = 4;
  154. h = 1;
  155. col = 0;
  156. row = 1;
  157. }
  158. {
  159. enabled = true;
  160. id = "brightnessSlider";
  161. w = 4;
  162. h = 1;
  163. col = 4;
  164. row = 1;
  165. }
  166. {
  167. enabled = true;
  168. id = "wifi";
  169. w = 4;
  170. h = 1;
  171. col = 0;
  172. row = 2;
  173. }
  174. {
  175. enabled = true;
  176. id = "bluetooth";
  177. w = 4;
  178. h = 1;
  179. col = 4;
  180. row = 2;
  181. }
  182. {
  183. enabled = true;
  184. id = "audioOutput";
  185. w = 4;
  186. h = 1;
  187. col = 0;
  188. row = 3;
  189. }
  190. {
  191. enabled = true;
  192. id = "audioInput";
  193. w = 4;
  194. h = 1;
  195. col = 4;
  196. row = 3;
  197. }
  198. {
  199. enabled = true;
  200. id = "nightMode";
  201. w = 4;
  202. h = 1;
  203. col = 0;
  204. row = 4;
  205. }
  206. {
  207. enabled = true;
  208. id = "idleInhibitor";
  209. w = 4;
  210. h = 1;
  211. col = 4;
  212. row = 4;
  213. }
  214. {
  215. id = "edit";
  216. enabled = true;
  217. w = 1;
  218. h = 1;
  219. small = true;
  220. col = 0;
  221. row = 5;
  222. }
  223. {
  224. id = "runningApps";
  225. enabled = true;
  226. w = 3;
  227. h = 1;
  228. small = true;
  229. col = 1;
  230. row = 5;
  231. }
  232. {
  233. id = "builtin_vpn";
  234. enabled = true;
  235. w = 4;
  236. h = 1;
  237. col = 4;
  238. row = 5;
  239. }
  240. ];
  241. appIdSubstitutions = [];
  242. clockDateFormat = "dddd, d. MMM";
  243. networkPreference = "wifi";
  244. cursorSettings = {
  245. dwl = {
  246. cursorHideTimeout = 0;
  247. };
  248. hyprland = {
  249. hideOnKeyPress = false;
  250. hideOnTouch = false;
  251. inactiveTimeout = 0;
  252. };
  253. niri = {
  254. hideAfterInactiveMs = 0;
  255. hideWhenTyping = false;
  256. };
  257. size = 24;
  258. theme = "System Default";
  259. };
  260. acMonitorTimeout = 300;
  261. acLockTimeout = 300;
  262. acSuspendTimeout = 600;
  263. lockBeforeSuspend = true;
  264. enableFprint = true;
  265. enableU2f = true;
  266. notificationHistoryEnabled = false;
  267. notificationHistoryMaxAgeDays = 1;
  268. osdPowerProfileEnabled = true;
  269. updaterUseCustomCommand = true;
  270. updaterCustomCommand = "nix-update";
  271. screenPreferences = {
  272. notepad = [];
  273. notifications = [
  274. "all"
  275. ];
  276. wallpaper = [
  277. "all"
  278. ];
  279. };
  280. showOnLastDisplay = {
  281. notifications = true;
  282. };
  283. barConfigs = [
  284. {
  285. attachToScreenEdge = false;
  286. autoHide = false;
  287. autoHideDelay = 250;
  288. borderColor = "surfaceText";
  289. borderEnabled = false;
  290. borderOpacity = 1;
  291. borderThickness = 1;
  292. bottomGap = 0;
  293. centerWidgets = [
  294. {
  295. clockCompactMode = false;
  296. enabled = true;
  297. id = "clock";
  298. }
  299. ];
  300. clickThrough = false;
  301. enabled = true;
  302. fontScale = 1;
  303. gothCornerRadiusOverride = false;
  304. gothCornerRadiusValue = 12;
  305. gothCornersEnabled = false;
  306. iconScale = 1;
  307. id = "default";
  308. innerPadding = -4;
  309. leftWidgets = [
  310. {
  311. id = "workspaceSwitcher";
  312. enabled = true;
  313. showWorkspaceIndex = true;
  314. showWorkspaceApps = true;
  315. }
  316. {
  317. enabled = true;
  318. id = "music";
  319. }
  320. ];
  321. maximizeDetection = true;
  322. maximizeWidgetIcons = false;
  323. maximizeWidgetText = false;
  324. name = "Main Bar";
  325. noBackground = false;
  326. openOnOverview = false;
  327. popupGapsAuto = true;
  328. popupGapsManual = 0;
  329. position = 1;
  330. rightWidgets = [
  331. {
  332. enabled = true;
  333. id = "notificationButton";
  334. }
  335. {
  336. enabled = true;
  337. id = "systemTray";
  338. }
  339. {
  340. enabled = true;
  341. id = "usbManager";
  342. }
  343. {
  344. enabled = true;
  345. id = "battery";
  346. }
  347. {
  348. enabled = true;
  349. id = "controlCenterButton";
  350. showAudioPercent = false;
  351. showBatteryIcon = false;
  352. showBrightnessIcon = true;
  353. showBrightnessPercent = false;
  354. showMicIcon = true;
  355. showMicPercent = false;
  356. showPrinterIcon = false;
  357. showScreenSharingIcon = true;
  358. }
  359. ];
  360. screenPreferences = [
  361. "all"
  362. ];
  363. scrollEnabled = true;
  364. scrollXBehavior = "focusWindow";
  365. scrollYBehavior = "workspace";
  366. shadowColorMode = "text";
  367. shadowCustomColor = "#000000";
  368. shadowIntensity = 0;
  369. shadowOpacity = 60;
  370. showOnLastDisplay = true;
  371. showOnWindowsOpen = false;
  372. spacing = 0;
  373. squareCorners = true;
  374. transparency = 1;
  375. visible = true;
  376. widgetOutlineColor = "primary";
  377. widgetOutlineEnabled = false;
  378. widgetOutlineOpacity = 1;
  379. widgetOutlineThickness = 1;
  380. widgetPadding = 8;
  381. widgetTransparency = 1;
  382. followInterfaceStyle = true;
  383. widgetFollowInterfaceStyle = true;
  384. }
  385. ];
  386. builtInPluginSettings = {
  387. dms_clipboard_search = {
  388. trigger = "cb";
  389. };
  390. dms_notepad = {
  391. enabled = false;
  392. };
  393. dms_settings_search = {
  394. trigger = "?";
  395. };
  396. };
  397. configVersion = 42;
  398. };
  399. };
  400. }