diff options
| author | Tomuus <tomasz1.mrozinski@proton.me> | 2025-12-17 21:46:33 +0100 |
|---|---|---|
| committer | Tomuus <tomasz1.mrozinski@proton.me> | 2025-12-17 21:46:33 +0100 |
| commit | ef16f6efba39ce990585a4b28274f1eb2834f8ec (patch) | |
| tree | f4ba333597fef588a60e33886912c3966cb0d910 | |
| parent | 7ab0ec6f2c49694a429ff539d39a4342b43f5d7d (diff) | |
More config changes
| -rw-r--r-- | modules/hyprland/catppuccin/default.nix | 1 | ||||
| -rw-r--r-- | modules/hyprland/new/config/default.nix | 9 | ||||
| -rw-r--r-- | modules/hyprland/new/config/omp.json | 67 | ||||
| -rw-r--r-- | modules/hyprland/new/default.nix | 8 |
4 files changed, 84 insertions, 1 deletions
diff --git a/modules/hyprland/catppuccin/default.nix b/modules/hyprland/catppuccin/default.nix index a71dd68..67af03e 100644 --- a/modules/hyprland/catppuccin/default.nix +++ b/modules/hyprland/catppuccin/default.nix @@ -8,6 +8,7 @@ programs.hyprland.package = pkgs.hyprland; environment.systemPackages = with pkgs; [ + oh-my-posh kitty waybar rofi diff --git a/modules/hyprland/new/config/default.nix b/modules/hyprland/new/config/default.nix new file mode 100644 index 0000000..0c0d7c5 --- /dev/null +++ b/modules/hyprland/new/config/default.nix @@ -0,0 +1,9 @@ +{ ... }: + +{ + home.file.".config/omp/catppuccin_mocha.json".source = ./omp.json; + + programs.zsh.initContent = '' + eval "$(oh-my-posh init zsh --config ~/.config/omp/catppuccin_mocha.json)" + ''; +} diff --git a/modules/hyprland/new/config/omp.json b/modules/hyprland/new/config/omp.json new file mode 100644 index 0000000..a744979 --- /dev/null +++ b/modules/hyprland/new/config/omp.json @@ -0,0 +1,67 @@ +{ + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", + "palette": { + "os": "#ACB0BE", + "closer": "p:os", + "pink": "#F5C2E7", + "lavender": "#B4BEFE", + "blue": "#89B4FA" + }, + "blocks": [ + { + "alignment": "left", + "segments": [ + { + "foreground": "p:os", + "style": "plain", + "template": "{{.Icon}} ", + "type": "os" + }, + { + "foreground": "p:blue", + "style": "plain", + "template": "{{ .UserName | title }}@{{ .HostName }} ", + "type": "session" + }, + { + "foreground": "p:pink", + "properties": { + "folder_icon": "..\ue5fe..", + "home_icon": "~", + "style": "agnoster_short" + }, + "style": "plain", + "template": "{{ .Path }} ", + "type": "path" + }, + { + "foreground": "p:lavender", + "properties": { + "branch_icon": "\ue725 ", + "cherry_pick_icon": "\ue29b ", + "commit_icon": "\uf417 ", + "fetch_status": false, + "fetch_upstream_icon": false, + "merge_icon": "\ue727 ", + "no_commits_icon": "\uf0c3 ", + "rebase_icon": "\ue728 ", + "revert_icon": "\uf0e2 ", + "tag_icon": "\uf412 " + }, + "template": "{{ .HEAD }} ", + "style": "plain", + "type": "git" + }, + { + "style": "plain", + "foreground": "p:closer", + "template": "\uf105", + "type": "text" + } + ], + "type": "prompt" + } + ], + "final_space": true, + "version": 3 +} diff --git a/modules/hyprland/new/default.nix b/modules/hyprland/new/default.nix index 2e03d1e..c5c16aa 100644 --- a/modules/hyprland/new/default.nix +++ b/modules/hyprland/new/default.nix @@ -1,7 +1,8 @@ -{ pkgs, ... }: +{ pkgs, userName, ... }: { programs.hyprland.enable = true; + services.udisks2.enable = true; environment.systemPackages = with pkgs; [ @@ -21,5 +22,10 @@ kdePackages.baloo-widgets kdePackages.baloo kdePackages.kio-extras + oh-my-posh + hyprmon + lxqt.lxqt-policykit ]; + + home-manager.users.${userName} = import ./config; } |
