Advertisement
Guest User

dotfiles

a guest
Mar 19th, 2024
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.20 KB | Source Code | 0 0
  1. { config, pkgs, ... }:
  2.  
  3. {
  4. home = {
  5. username = "<username>";
  6. homeDirectory = "/home/<username>";
  7. stateVersion = "23.11";
  8. };
  9.  
  10. programs = {
  11. home-manager.enable = true;
  12. waybar = {
  13. enable = true;
  14. settings.mainBar = {
  15. layer = "top";
  16. position = "top";
  17. margin = "3 3 0 3";
  18. modules-left = [
  19. "clock"
  20. "custom/weather"
  21. "hyprland/workspaces"
  22. ];
  23. modules-center = [
  24. ];
  25. modules-right = [
  26. "tray"
  27. "network"
  28. "bluetooth"
  29. "memory"
  30. "cpu"
  31. "wireplumber"
  32. ];
  33. clock = {
  34. interval = 1;
  35. format = "{:%H:%M %d %b}";
  36. tooltip = false;
  37. };
  38. "custom/weather" = {
  39. exec = "sleep 5s; curl wttr.in/?format='%t+(%f)'";
  40. interval = 600;
  41. tooltip = false;
  42. };
  43. tray = {
  44. icon-size = 18;
  45. spacing = 10;
  46. };
  47. network = {
  48. interval = 1;
  49. format-wifi = " {bandwidthDownBits} on {ipaddr} ({signalStrength}%  )";
  50. format-ethernet = " {bandwidthDownBits} on {ipaddr} ( 󰈀 )";
  51. format-disconnected = "Disconnected";
  52. tooltip = false;
  53. };
  54. bluetooth = {
  55. interval = 1;
  56. format = " {status}";
  57. format-connected = " {device_alias}";
  58. format-connected-battery = " {device_alias} {device_battery_percentage}%";
  59. tooltip-format = "controller = {controller_alias}\t{controller_address}\n\n{num_connections} devices connected";
  60. tooltip-format-connected = "controller = {controller_alias}\t{controller_address}\n\n{num_connections} devices connected\n\n{device_enumerate}";
  61. tooltip-format-enumerate-connected = "{device_alias}\t{device_address}";
  62. tooltip-format-enumerate-connected-battery = "{device_alias}\t{device_address}\t{device_battery_percentage}%";
  63. on-click = "bluetoothctl power on";
  64. on-click-right = "bluetoothctl power off";
  65. on-scroll-up = "bluetoothctl discoverable on";
  66. on-scroll-down = "bluetoothctl discoverable off";
  67. };
  68. memory = {
  69. interval = 5;
  70. format = " {used}GiB";
  71. states = {
  72. warning = 70;
  73. critical = 90;
  74. };
  75. tooltip = false;
  76. };
  77. cpu = {
  78. interval = 2;
  79. format = " {usage}%";
  80. states = {
  81. warning = 70;
  82. critical = 90;
  83. };
  84. };
  85. wireplumber = {
  86. format = "󰕾 {volume}%";
  87. format-muted = "󰖁";
  88. };
  89. };
  90. style = ''
  91. * {
  92. border: none;
  93. border-radius: 0;
  94. min-height: 0;
  95. margin: 1px;
  96. padding: 0;
  97. }
  98.  
  99. #waybar {
  100. background: transparent;
  101. }
  102.  
  103. .modules-left,
  104. .modules-center,
  105. .modules-right {
  106. background-color: #282828;
  107. border-radius: 10px;
  108. color: #ebdbb2;
  109. font-family: 'Noto sans';
  110. font-size: 14px;
  111. }
  112.  
  113. #clock,
  114. #custom-weather,
  115. #cpu,
  116. #memory,
  117. #network,
  118. #wireplumber,
  119. #tray,
  120. #bluetooth {
  121. padding: 0.2rem 0.5rem;
  122. }
  123.  
  124. #cpu.warning {
  125. color: #d79921;
  126. }
  127.  
  128. #cpu.critical {
  129. color: #cc241d;
  130. }
  131.  
  132. #memory.warning {
  133. color: #d79921;
  134. }
  135.  
  136. #memory.critical {
  137. color: #cc241d;
  138. }
  139.  
  140. #network.disconnected {
  141. color: #d79921;
  142. }
  143.  
  144. #wireplumber.muted {
  145. color: #d79921;
  146. }
  147.  
  148. #workspaces button {
  149. border-radius: 8px;
  150. color: #ebdbb2;
  151. padding: 0px 3px;
  152. }
  153.  
  154. #workspaces button.active {
  155. color: #282828;
  156. background-color: #458588;
  157. }
  158.  
  159. #workspaces button.persistent,
  160. #workspaces button.special {
  161. font-weight: bold;
  162. font-style: italic;
  163. }
  164.  
  165. #bluetooth.disabled,
  166. #bluetooth.off {
  167. color: #d79921
  168. }
  169.  
  170. #bluetooth.connected {
  171. color: #689d6a
  172. }
  173.  
  174. #bluetooth.discoverable {
  175. text-decoration: underline;
  176. }
  177. '';
  178. };
  179. kitty = {
  180. enable = true;
  181. theme = "Gruvbox Dark";
  182. settings = {
  183. confirm_os_window_close = 0;
  184. font_family = "Cascadia Code";
  185. };
  186. };
  187. wayland.windowManager.hyprland = {
  188. enable = true;
  189. settings = {
  190. monitor = [
  191. "DP-1, 1680x1050, 0x0, 1, transform, 3"
  192. "HDMI-A-1, 1920x1080, 1050x0, 1"
  193. ", preferred, auto, auto"
  194. ];
  195. exec-once = [
  196. "waybar"
  197. "swaybg -i /home/<username>/wallpaper.jpg -m fill"
  198. ];
  199. general = {
  200. gaps_in = 5;
  201. gaps_out = 5;
  202. border_size = 2;
  203. "col.active_border" = "rgb(689d6a) rgb(b16286) 45deg";
  204. "col.inactive_border" = "rgb(282828)";
  205. cursor_inactive_timeout = 5;
  206. };
  207. decoration = {
  208. rounding = 10;
  209. drop_shadow = false;
  210. };
  211. animations = {
  212. enabled = true;
  213. bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
  214. animation = [
  215. "windows, 1, 7, myBezier"
  216. "windowsOut, 1, 7, default, popin 80%"
  217. "border, 1, 10, default"
  218. "borderangle, 1, 8, default"
  219. "fade, 1, 7, default"
  220. "workspaces, 1, 6, default"
  221. ];
  222. };
  223. dwindle = {
  224. pseudotile = true;
  225. preserve_split = true;
  226. };
  227. misc = {
  228. disable_hyprland_logo = true;
  229. };
  230. "$mainMod" = "SUPER";
  231. bind = [
  232. "$mainMod, U, exec, kitty"
  233. "$mainMod, I, exec, firefox"
  234. "$mainMod, J, exec, fuzzel"
  235. "$mainMod, K, killactive,"
  236. "$mainMod, L, exec, systemctl suspend"
  237. "$mainMod, M, togglefloating,"
  238. "$mainMod, comma, pseudo,"
  239. "$mainMod, period, togglesplit,"
  240. "$mainMod, slash, fullscreen,"
  241. "$mainMod, left, movefocus, l"
  242. "$mainMod, right, movefocus, r"
  243. "$mainMod, up, movefocus, u"
  244. "$mainMod, down, movefocus, d"
  245. "$mainMod shift, left, movewindow, l"
  246. "$mainMod shift, right, movewindow, r"
  247. "$mainMod shift, up, movewindow, u"
  248. "$mainMod shift, down, movewindow, d"
  249. "$mainMod, 1, workspace, 1"
  250. "$mainMod, 2, workspace, 2"
  251. "$mainMod, 3, workspace, 3"
  252. "$mainMod, 4, workspace, 4"
  253. "$mainMod, 5, workspace, 5"
  254. "$mainMod, 6, workspace, 6"
  255. "$mainMod, 7, workspace, 7"
  256. "$mainMod, 8, workspace, 8"
  257. "$mainMod, 9, workspace, 9"
  258. "$mainMod, 0, workspace, 10"
  259. "$mainMod SHIFT, 1, movetoworkspace, 1"
  260. "$mainMod SHIFT, 2, movetoworkspace, 2"
  261. "$mainMod SHIFT, 3, movetoworkspace, 3"
  262. "$mainMod SHIFT, 4, movetoworkspace, 4"
  263. "$mainMod SHIFT, 5, movetoworkspace, 5"
  264. "$mainMod SHIFT, 6, movetoworkspace, 6"
  265. "$mainMod SHIFT, 7, movetoworkspace, 7"
  266. "$mainMod SHIFT, 8, movetoworkspace, 8"
  267. "$mainMod SHIFT, 9, movetoworkspace, 9"
  268. "$mainMod SHIFT, 0, movetoworkspace, 10"
  269. "$mainMod, mouse_down, workspace, e+1"
  270. "$mainMod, mouse_up, workspace, e-1"
  271. ", XF86AudioPlay, exec, playerctl play-pause"
  272. ", XF86AudioNext, exec, playerctl next"
  273. ", XF86AudioPrev, exec, playerctl previous"
  274. ", XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle"
  275. ", print, exec, grimblast copy area"
  276. ];
  277. bindm = [
  278. "$mainMod, mouse:272, movewindow"
  279. "$mainMod, mouse:273, resizewindow"
  280. ];
  281. binde = [
  282. ", XF86AudioRaiseVolume, exec, pactl set-sink-mute @DEFAULT_SINK@ false && pactl set-sink-volume @DEFAULT_SINK@ +1%"
  283. ", XF86AudioLowerVolume, exec, pactl set-sink-mute @DEFAULT_SINK@ false && pactl set-sink-volume @DEFAULT_SINK@ -1%"
  284. ];
  285. };
  286. };
  287. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement