settings.nix 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  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. enabled = true;
  92. id = "dock_launcher";
  93. widgetId = "dockLauncher";
  94. }
  95. {
  96. enabled = true;
  97. id = "dock_apps";
  98. widgetId = "appsDock";
  99. }
  100. {
  101. enabled = true;
  102. id = "dock_trash";
  103. widgetId = "dockTrash";
  104. }
  105. ];
  106. }
  107. ];
  108. matugenScheme = "scheme-tonal-spot";
  109. matugenSpec = "2021";
  110. dmsWindowsFloatingSeeded = [
  111. "hyprland"
  112. ];
  113. syncComponentAnimationSpeeds = false;
  114. barElevationEnabled = false;
  115. controlCenterWidgets = [
  116. {
  117. col = 0;
  118. enabled = true;
  119. h = 1;
  120. id = "user";
  121. row = 0;
  122. w = 5;
  123. }
  124. {
  125. col = 5;
  126. enabled = true;
  127. h = 1;
  128. id = "settings";
  129. row = 0;
  130. small = true;
  131. w = 1;
  132. }
  133. {
  134. col = 6;
  135. enabled = true;
  136. h = 1;
  137. id = "lock";
  138. row = 0;
  139. small = true;
  140. w = 1;
  141. }
  142. {
  143. col = 7;
  144. enabled = true;
  145. h = 1;
  146. id = "power";
  147. row = 0;
  148. small = true;
  149. w = 1;
  150. }
  151. {
  152. col = 0;
  153. enabled = true;
  154. h = 1;
  155. id = "volumeSlider";
  156. row = 1;
  157. w = 4;
  158. }
  159. {
  160. col = 4;
  161. enabled = true;
  162. h = 1;
  163. id = "brightnessSlider";
  164. row = 1;
  165. w = 4;
  166. }
  167. {
  168. col = 0;
  169. enabled = true;
  170. h = 1;
  171. id = "wifi";
  172. row = 2;
  173. w = 4;
  174. }
  175. {
  176. col = 4;
  177. enabled = true;
  178. h = 1;
  179. id = "bluetooth";
  180. row = 2;
  181. w = 4;
  182. }
  183. {
  184. col = 0;
  185. enabled = true;
  186. h = 1;
  187. id = "audioOutput";
  188. row = 3;
  189. w = 4;
  190. }
  191. {
  192. col = 4;
  193. enabled = true;
  194. h = 1;
  195. id = "audioInput";
  196. row = 3;
  197. w = 4;
  198. }
  199. {
  200. col = 0;
  201. enabled = true;
  202. h = 1;
  203. id = "nightMode";
  204. row = 4;
  205. w = 4;
  206. }
  207. {
  208. col = 4;
  209. enabled = true;
  210. h = 1;
  211. id = "idleInhibitor";
  212. row = 4;
  213. w = 4;
  214. }
  215. {
  216. col = 0;
  217. enabled = true;
  218. h = 1;
  219. id = "edit";
  220. row = 5;
  221. small = true;
  222. w = 1;
  223. }
  224. {
  225. col = 1;
  226. enabled = true;
  227. h = 1;
  228. id = "runningApps";
  229. row = 5;
  230. small = true;
  231. w = 3;
  232. }
  233. {
  234. col = 4;
  235. enabled = true;
  236. h = 1;
  237. id = "builtin_vpn";
  238. row = 5;
  239. w = 4;
  240. }
  241. ];
  242. appIdSubstitutions = [];
  243. clockDateFormat = "dddd, d. MMM";
  244. dashCards = [
  245. {
  246. id = "clock";
  247. w = 2;
  248. h = 1;
  249. col = 3;
  250. row = 0;
  251. }
  252. {
  253. id = "weather";
  254. w = 1;
  255. h = 1;
  256. }
  257. {
  258. id = "calendar";
  259. w = 5;
  260. h = 3;
  261. col = 0;
  262. row = 1;
  263. }
  264. {
  265. id = "media";
  266. w = 3;
  267. h = 1;
  268. col = 0;
  269. row = 0;
  270. }
  271. ];
  272. dashOptions = {
  273. overview = {
  274. panelColumns = 5;
  275. panelRows = 4;
  276. };
  277. };
  278. networkPreference = "wifi";
  279. cursorSettings = {
  280. dwl = {
  281. cursorHideTimeout = 0;
  282. };
  283. hyprland = {
  284. hideOnKeyPress = false;
  285. hideOnTouch = false;
  286. inactiveTimeout = 0;
  287. };
  288. niri = {
  289. hideAfterInactiveMs = 0;
  290. hideWhenTyping = false;
  291. };
  292. size = 24;
  293. theme = "System Default";
  294. };
  295. acMonitorTimeout = 300;
  296. acLockTimeout = 300;
  297. acSuspendTimeout = 600;
  298. lockBeforeSuspend = true;
  299. enableFprint = true;
  300. enableU2f = true;
  301. notificationHistoryEnabled = false;
  302. notificationHistoryMaxAgeDays = 1;
  303. osdPowerProfileEnabled = true;
  304. updaterUseCustomCommand = true;
  305. updaterCustomCommand = "nix-update";
  306. screenPreferences = {
  307. notepad = [];
  308. notifications = [
  309. "all"
  310. ];
  311. wallpaper = [
  312. "all"
  313. ];
  314. };
  315. showOnLastDisplay = {
  316. notifications = true;
  317. };
  318. connectedFrameBarStyleBackups = {};
  319. barConfigs = [
  320. {
  321. attachToScreenEdge = false;
  322. autoHide = false;
  323. autoHideDelay = 250;
  324. borderColor = "surfaceText";
  325. borderEnabled = false;
  326. borderOpacity = 1;
  327. borderThickness = 1;
  328. bottomGap = 0;
  329. centerWidgets = [
  330. {
  331. clockCompactMode = false;
  332. clockNotificationBadge = false;
  333. enabled = true;
  334. id = "clock";
  335. }
  336. ];
  337. clickThrough = false;
  338. enabled = true;
  339. followInterfaceStyle = true;
  340. fontScale = 1;
  341. gothCornerRadiusOverride = false;
  342. gothCornerRadiusValue = 12;
  343. gothCornersEnabled = false;
  344. iconScale = 1;
  345. id = "default";
  346. innerPadding = -4;
  347. leftWidgets = [
  348. {
  349. enabled = true;
  350. id = "workspaceSwitcher";
  351. showWorkspaceApps = true;
  352. showWorkspaceIndex = true;
  353. }
  354. {
  355. enabled = true;
  356. id = "music";
  357. }
  358. ];
  359. maximizeDetection = true;
  360. maximizeWidgetIcons = false;
  361. maximizeWidgetText = false;
  362. name = "Main Bar";
  363. noBackground = false;
  364. openOnOverview = false;
  365. popupGapsAuto = true;
  366. popupGapsManual = 0;
  367. position = 1;
  368. rightWidgets = [
  369. {
  370. enabled = true;
  371. id = "notificationButton";
  372. }
  373. {
  374. enabled = true;
  375. id = "systemTray";
  376. }
  377. {
  378. enabled = true;
  379. id = "usbManager";
  380. }
  381. {
  382. enabled = true;
  383. id = "battery";
  384. }
  385. {
  386. enabled = true;
  387. id = "controlCenterButton";
  388. showAudioPercent = false;
  389. showBatteryIcon = false;
  390. showBrightnessIcon = true;
  391. showBrightnessPercent = false;
  392. showMicIcon = true;
  393. showMicPercent = false;
  394. showPrinterIcon = false;
  395. showScreenSharingIcon = true;
  396. }
  397. ];
  398. screenPreferences = [
  399. "all"
  400. ];
  401. scrollEnabled = true;
  402. scrollXBehavior = "none";
  403. scrollYBehavior = "none";
  404. shadowColorMode = "text";
  405. shadowCustomColor = "#000000";
  406. shadowIntensity = 0;
  407. shadowOpacity = 60;
  408. showOnLastDisplay = false;
  409. showOnWindowsOpen = false;
  410. spacing = 0;
  411. squareCorners = true;
  412. transparency = 1;
  413. visible = true;
  414. widgetFollowInterfaceStyle = true;
  415. widgetOutlineColor = "primary";
  416. widgetOutlineEnabled = false;
  417. widgetOutlineOpacity = 1;
  418. widgetOutlineThickness = 1;
  419. widgetPadding = 8;
  420. widgetTransparency = 1;
  421. dot = false;
  422. hideOnLastDisplay = false;
  423. hoverPopouts = false;
  424. barLengthMode = "full";
  425. widgetStyle = "segments";
  426. }
  427. {
  428. attachToScreenEdge = false;
  429. autoHide = false;
  430. autoHideDelay = 250;
  431. borderColor = "surfaceText";
  432. borderEnabled = false;
  433. borderOpacity = 1;
  434. borderThickness = 1;
  435. bottomGap = 0;
  436. centerWidgets = [
  437. {
  438. clockCompactMode = false;
  439. clockNotificationBadge = false;
  440. enabled = true;
  441. id = "clock";
  442. }
  443. ];
  444. clickThrough = false;
  445. enabled = false;
  446. followInterfaceStyle = false;
  447. fontScale = 1;
  448. gothCornerRadiusOverride = false;
  449. gothCornerRadiusValue = 12;
  450. gothCornersEnabled = false;
  451. iconScale = 1;
  452. id = "dot1793364076951";
  453. innerPadding = -4;
  454. leftWidgets = [
  455. {
  456. enabled = true;
  457. id = "workspaceSwitcher";
  458. showWorkspaceApps = true;
  459. showWorkspaceIndex = true;
  460. }
  461. {
  462. enabled = true;
  463. id = "music";
  464. }
  465. ];
  466. maximizeDetection = true;
  467. maximizeWidgetIcons = false;
  468. maximizeWidgetText = false;
  469. name = "Dot";
  470. noBackground = false;
  471. openOnOverview = false;
  472. popupGapsAuto = true;
  473. popupGapsManual = 0;
  474. position = 1;
  475. rightWidgets = [
  476. {
  477. enabled = true;
  478. id = "notificationButton";
  479. }
  480. {
  481. enabled = true;
  482. id = "systemTray";
  483. }
  484. {
  485. enabled = true;
  486. id = "usbManager";
  487. }
  488. {
  489. enabled = true;
  490. id = "battery";
  491. }
  492. {
  493. enabled = true;
  494. id = "controlCenterButton";
  495. showAudioPercent = false;
  496. showBatteryIcon = false;
  497. showBrightnessIcon = true;
  498. showBrightnessPercent = false;
  499. showMicIcon = true;
  500. showMicPercent = false;
  501. showPrinterIcon = false;
  502. showScreenSharingIcon = true;
  503. }
  504. ];
  505. screenPreferences = [
  506. "all"
  507. ];
  508. scrollEnabled = true;
  509. scrollXBehavior = "focusWindow";
  510. scrollYBehavior = "workspace";
  511. shadowColorMode = "text";
  512. shadowCustomColor = "#000000";
  513. shadowIntensity = 0;
  514. shadowOpacity = 60;
  515. showOnLastDisplay = true;
  516. showOnWindowsOpen = false;
  517. spacing = 0;
  518. squareCorners = true;
  519. transparency = 1;
  520. visible = true;
  521. widgetFollowInterfaceStyle = true;
  522. widgetOutlineColor = "primary";
  523. widgetOutlineEnabled = false;
  524. widgetOutlineOpacity = 1;
  525. widgetOutlineThickness = 1;
  526. widgetPadding = 8;
  527. widgetTransparency = 1;
  528. dot = true;
  529. island = false;
  530. }
  531. ];
  532. builtInPluginSettings = {
  533. dms_clipboard_search = {
  534. trigger = "cb";
  535. };
  536. dms_notepad = {
  537. enabled = false;
  538. };
  539. dms_settings_search = {
  540. trigger = "?";
  541. };
  542. dms_qr_generator = {
  543. trigger = "qrg";
  544. };
  545. dms_power = {
  546. trigger = "pw";
  547. };
  548. };
  549. frameEnabled = false;
  550. configVersion = 42;
  551. };
  552. };
  553. }