diff --git a/home-manager/face.png b/home-manager/face.png new file mode 100644 index 0000000..9d3376f Binary files /dev/null and b/home-manager/face.png differ diff --git a/home-manager/fish.nix b/home-manager/fish.nix index 9b2bc1c..1706e45 100644 --- a/home-manager/fish.nix +++ b/home-manager/fish.nix @@ -5,7 +5,7 @@ let if current == from then to else current; toSingleLine = with lib.strings; - s: concatMapStrings (stringAsChars (replace "\n" "")) (splitString "n" s); + s: concatMapStrings (stringAsChars (replace "\n" "")) (splitString "\n" s); theme = import ../theme.nix; in { diff --git a/home-manager/hyprland/hyprlock/default.nix b/home-manager/hyprland/hyprlock/default.nix index 4fc85b1..4582442 100644 --- a/home-manager/hyprland/hyprlock/default.nix +++ b/home-manager/hyprland/hyprlock/default.nix @@ -46,6 +46,17 @@ in valign = "top"; } ]; + + # USER AVATAR + image = { + path = "${../../face.png}"; + size = 100; + border_color = "${theme.mauveRgb}"; + position = "0, 75"; + halign = "center"; + valign = "center"; + }; + # INPUT FIELD input-field = { size = "300, 60"; @@ -53,17 +64,17 @@ in dots_size = 0.2; dots_spacing = 0.2; dots_center = true; - outer_color = lib.mkDefault "${theme.mauve}"; + outer_color = lib.mkDefault "${theme.mauveRgb}"; inner_color = lib.mkDefault "${theme.surface0Rgb}"; font_color = lib.mkDefault "${theme.textRgb}"; fade_on_empty = false; placeholder_text = "󰌾 Logged in as $USER"; hide_input = false; - check_color = lib.mkDefault "${theme.mauve}"; + check_color = lib.mkDefault "${theme.mauveRgb}"; fail_color = lib.mkDefault "${theme.redRgb}"; fail_text = "$FAIL ($ATTEMPTS)"; capslock_color = lib.mkDefault "${theme.yellowRgb}"; - position = "0, -200"; # TODO change -200 to -20% at 25.05 + position = "0, -47"; # TODO change to use % at 25.05 halign = "center"; valign = "center"; }; diff --git a/home-manager/hyprland/hyprpanel/default.nix b/home-manager/hyprland/hyprpanel/default.nix index 4602502..faadb00 100644 --- a/home-manager/hyprland/hyprpanel/default.nix +++ b/home-manager/hyprland/hyprpanel/default.nix @@ -1,4 +1,4 @@ -{ inputs, ... }: +{ pkgs, inputs, ... }: let common = import ../../../common.nix; theme = import ../../../theme.nix; @@ -58,40 +58,47 @@ in customModules.kbLayout.leftClick = "hyprctl switchxkblayout keychron-keychron-k8-pro next"; launcher.autoDetectIcon = true; network.label = false; + volume = { + scrollDown = "${pkgs.hyprpanel}/bin/hyprpanel 'vol -1'"; + scrollUp = "${pkgs.hyprpanel}/bin/hyprpanel 'vol +1'"; + }; workspaces = { show_icons = false; show_numbered = true; }; }; - menus.clock = { - time = { - military = true; - hideSeconds = true; + menus = { + clock = { + time = { + military = true; + hideSeconds = true; + }; + weather = { + unit = "metric"; + location = "Bergen, Norway"; # TODO not working + }; }; - weather = { - unit = "metric"; - location = "Bergen, Norway"; # TODO not working - }; - }; - menus.dashboard = { - directories.enabled = false; - shortcuts.left = { - shortcut1 = { - command = common.default.browser; - icon = ""; # TODO replace with Zen icon - tooltip = "Zen"; + dashboard = { + directories.enabled = false; + powermenu.avatar.image = "${../../face.png}"; + shortcuts.left = { + shortcut1 = { + command = common.default.browser; + icon = ""; # TODO replace with Zen icon + tooltip = "Zen"; + }; + shortcut2 = { + command = "spotify"; + icon = ""; + tooltip = "Spotify"; + }; + ## shortcut3 === discord + ## shortcut4 === rofi -show drun }; - shortcut2 = { - command = "spotify"; - icon = ""; - tooltip = "Spotify"; - }; - ## shortcut3 === discord - ## shortcut4 === rofi -show drun + stats.enable_gpu = true; }; - stats.enable_gpu = true; }; scalingPriority = "hyprland"; diff --git a/home-manager/hyprland/settings.nix b/home-manager/hyprland/settings.nix index 0fd57ad..c2d6684 100644 --- a/home-manager/hyprland/settings.nix +++ b/home-manager/hyprland/settings.nix @@ -8,7 +8,7 @@ in wayland.windowManager.hyprland.settings = { monitor = [ "DP-1, 1920x1080@144, 0x0, 1" - "DP-3, 2560x1440@59.95, 1920x0, 1" + "DP-3, 3840x2160@60, 1920x0, 1.5" ]; # Autostart @@ -96,9 +96,7 @@ in preserve_split = true; # You probably want this }; - master = { - new_status = "master"; - }; + master.new_status = "master"; misc = { force_default_wallpaper = 0; diff --git a/modules/stylix.nix b/modules/stylix.nix index cb5ba22..ecf8ae3 100644 --- a/modules/stylix.nix +++ b/modules/stylix.nix @@ -5,7 +5,7 @@ in { stylix = { enable = true; - image = ../catppuccin.png; + image = ../tropic_island_night.jpg; # TODO overrides swww base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-${theme.flavor}.yaml"; polarity = "dark"; opacity.terminal = 0.8; diff --git a/tropic_island_night.jpg b/tropic_island_night.jpg new file mode 100644 index 0000000..c236b9a Binary files /dev/null and b/tropic_island_night.jpg differ