Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { config, pkgs, ... }:
- {
- home = {
- username = "<username>";
- homeDirectory = "/home/<username>";
- stateVersion = "23.11";
- };
- programs = {
- home-manager.enable = true;
- waybar = {
- enable = true;
- settings.mainBar = {
- layer = "top";
- position = "top";
- margin = "3 3 0 3";
- modules-left = [
- "clock"
- "custom/weather"
- "hyprland/workspaces"
- ];
- modules-center = [
- ];
- modules-right = [
- "tray"
- "network"
- "bluetooth"
- "memory"
- "cpu"
- "wireplumber"
- ];
- clock = {
- interval = 1;
- format = "{:%H:%M %d %b}";
- tooltip = false;
- };
- "custom/weather" = {
- exec = "sleep 5s; curl wttr.in/?format='%t+(%f)'";
- interval = 600;
- tooltip = false;
- };
- tray = {
- icon-size = 18;
- spacing = 10;
- };
- network = {
- interval = 1;
- format-wifi = " {bandwidthDownBits} on {ipaddr} ({signalStrength}% )";
- format-ethernet = " {bandwidthDownBits} on {ipaddr} ( )";
- format-disconnected = "Disconnected";
- tooltip = false;
- };
- bluetooth = {
- interval = 1;
- format = " {status}";
- format-connected = " {device_alias}";
- format-connected-battery = " {device_alias} {device_battery_percentage}%";
- tooltip-format = "controller = {controller_alias}\t{controller_address}\n\n{num_connections} devices connected";
- tooltip-format-connected = "controller = {controller_alias}\t{controller_address}\n\n{num_connections} devices connected\n\n{device_enumerate}";
- tooltip-format-enumerate-connected = "{device_alias}\t{device_address}";
- tooltip-format-enumerate-connected-battery = "{device_alias}\t{device_address}\t{device_battery_percentage}%";
- on-click = "bluetoothctl power on";
- on-click-right = "bluetoothctl power off";
- on-scroll-up = "bluetoothctl discoverable on";
- on-scroll-down = "bluetoothctl discoverable off";
- };
- memory = {
- interval = 5;
- format = " {used}GiB";
- states = {
- warning = 70;
- critical = 90;
- };
- tooltip = false;
- };
- cpu = {
- interval = 2;
- format = " {usage}%";
- states = {
- warning = 70;
- critical = 90;
- };
- };
- wireplumber = {
- format = " {volume}%";
- format-muted = "";
- };
- };
- style = ''
- * {
- border: none;
- border-radius: 0;
- min-height: 0;
- margin: 1px;
- padding: 0;
- }
- #waybar {
- background: transparent;
- }
- .modules-left,
- .modules-center,
- .modules-right {
- background-color: #282828;
- border-radius: 10px;
- color: #ebdbb2;
- font-family: 'Noto sans';
- font-size: 14px;
- }
- #clock,
- #custom-weather,
- #cpu,
- #memory,
- #network,
- #wireplumber,
- #tray,
- #bluetooth {
- padding: 0.2rem 0.5rem;
- }
- #cpu.warning {
- color: #d79921;
- }
- #cpu.critical {
- color: #cc241d;
- }
- #memory.warning {
- color: #d79921;
- }
- #memory.critical {
- color: #cc241d;
- }
- #network.disconnected {
- color: #d79921;
- }
- #wireplumber.muted {
- color: #d79921;
- }
- #workspaces button {
- border-radius: 8px;
- color: #ebdbb2;
- padding: 0px 3px;
- }
- #workspaces button.active {
- color: #282828;
- background-color: #458588;
- }
- #workspaces button.persistent,
- #workspaces button.special {
- font-weight: bold;
- font-style: italic;
- }
- #bluetooth.disabled,
- #bluetooth.off {
- color: #d79921
- }
- #bluetooth.connected {
- color: #689d6a
- }
- #bluetooth.discoverable {
- text-decoration: underline;
- }
- '';
- };
- kitty = {
- enable = true;
- theme = "Gruvbox Dark";
- settings = {
- confirm_os_window_close = 0;
- font_family = "Cascadia Code";
- };
- };
- wayland.windowManager.hyprland = {
- enable = true;
- settings = {
- monitor = [
- "DP-1, 1680x1050, 0x0, 1, transform, 3"
- "HDMI-A-1, 1920x1080, 1050x0, 1"
- ", preferred, auto, auto"
- ];
- exec-once = [
- "waybar"
- "swaybg -i /home/<username>/wallpaper.jpg -m fill"
- ];
- general = {
- gaps_in = 5;
- gaps_out = 5;
- border_size = 2;
- "col.active_border" = "rgb(689d6a) rgb(b16286) 45deg";
- "col.inactive_border" = "rgb(282828)";
- cursor_inactive_timeout = 5;
- };
- decoration = {
- rounding = 10;
- drop_shadow = false;
- };
- animations = {
- enabled = true;
- bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
- animation = [
- "windows, 1, 7, myBezier"
- "windowsOut, 1, 7, default, popin 80%"
- "border, 1, 10, default"
- "borderangle, 1, 8, default"
- "fade, 1, 7, default"
- "workspaces, 1, 6, default"
- ];
- };
- dwindle = {
- pseudotile = true;
- preserve_split = true;
- };
- misc = {
- disable_hyprland_logo = true;
- };
- "$mainMod" = "SUPER";
- bind = [
- "$mainMod, U, exec, kitty"
- "$mainMod, I, exec, firefox"
- "$mainMod, J, exec, fuzzel"
- "$mainMod, K, killactive,"
- "$mainMod, L, exec, systemctl suspend"
- "$mainMod, M, togglefloating,"
- "$mainMod, comma, pseudo,"
- "$mainMod, period, togglesplit,"
- "$mainMod, slash, fullscreen,"
- "$mainMod, left, movefocus, l"
- "$mainMod, right, movefocus, r"
- "$mainMod, up, movefocus, u"
- "$mainMod, down, movefocus, d"
- "$mainMod shift, left, movewindow, l"
- "$mainMod shift, right, movewindow, r"
- "$mainMod shift, up, movewindow, u"
- "$mainMod shift, down, movewindow, d"
- "$mainMod, 1, workspace, 1"
- "$mainMod, 2, workspace, 2"
- "$mainMod, 3, workspace, 3"
- "$mainMod, 4, workspace, 4"
- "$mainMod, 5, workspace, 5"
- "$mainMod, 6, workspace, 6"
- "$mainMod, 7, workspace, 7"
- "$mainMod, 8, workspace, 8"
- "$mainMod, 9, workspace, 9"
- "$mainMod, 0, workspace, 10"
- "$mainMod SHIFT, 1, movetoworkspace, 1"
- "$mainMod SHIFT, 2, movetoworkspace, 2"
- "$mainMod SHIFT, 3, movetoworkspace, 3"
- "$mainMod SHIFT, 4, movetoworkspace, 4"
- "$mainMod SHIFT, 5, movetoworkspace, 5"
- "$mainMod SHIFT, 6, movetoworkspace, 6"
- "$mainMod SHIFT, 7, movetoworkspace, 7"
- "$mainMod SHIFT, 8, movetoworkspace, 8"
- "$mainMod SHIFT, 9, movetoworkspace, 9"
- "$mainMod SHIFT, 0, movetoworkspace, 10"
- "$mainMod, mouse_down, workspace, e+1"
- "$mainMod, mouse_up, workspace, e-1"
- ", XF86AudioPlay, exec, playerctl play-pause"
- ", XF86AudioNext, exec, playerctl next"
- ", XF86AudioPrev, exec, playerctl previous"
- ", XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle"
- ", print, exec, grimblast copy area"
- ];
- bindm = [
- "$mainMod, mouse:272, movewindow"
- "$mainMod, mouse:273, resizewindow"
- ];
- binde = [
- ", XF86AudioRaiseVolume, exec, pactl set-sink-mute @DEFAULT_SINK@ false && pactl set-sink-volume @DEFAULT_SINK@ +1%"
- ", XF86AudioLowerVolume, exec, pactl set-sink-mute @DEFAULT_SINK@ false && pactl set-sink-volume @DEFAULT_SINK@ -1%"
- ];
- };
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement