diff --git a/home/btop/catppuccin_mocha.theme b/home/btop/catppuccin_mocha.theme new file mode 100644 index 0000000..13cec40 --- /dev/null +++ b/home/btop/catppuccin_mocha.theme @@ -0,0 +1,42 @@ +theme[main_bg]="#1E1E2E" +theme[main_fg]="#CDD6F4" +theme[title]="#CDD6F4" +theme[hi_fg]="#89B4FA" +theme[selected_bg]="#45475A" +theme[selected_fg]="#89B4FA" +theme[inactive_fg]="#7F849C" +theme[graph_text]="#F5E0DC" +theme[meter_bg]="#45475A" +theme[proc_misc]="#F5E0DC" +theme[cpu_box]="#74C7EC" +theme[mem_box]="#A6E3A1" +theme[net_box]="#CBA6F7" +theme[proc_box]="#F2CDCD" +theme[div_line]="#6C7086" +theme[temp_start]="#F9E2AF" +theme[temp_mid]="#FAB387" +theme[temp_end]="#F38BA8" +theme[cpu_start]="#74C7EC" +theme[cpu_mid]="#89DCEB" +theme[cpu_end]="#94E2D5" +theme[free_start]="#94E2D5" +theme[free_mid]="#94E2D5" +theme[free_end]="#A6E3A1" +theme[cached_start]="#F5C2E7" +theme[cached_mid]="#F5C2E7" +theme[cached_end]="#CBA6F7" +theme[available_start]="#F5E0DC" +theme[available_mid]="#F2CDCD" +theme[available_end]="#F2CDCD" +theme[used_start]="#FAB387" +theme[used_mid]="#FAB387" +theme[used_end]="#F38BA8" +theme[download_start]="#B4BEFE" +theme[download_mid]="#B4BEFE" +theme[download_end]="#CBA6F7" +theme[upload_start]="#B4BEFE" +theme[upload_mid]="#B4BEFE" +theme[upload_end]="#CBA6F7" +theme[process_start]="#74C7EC" +theme[process_mid]="#89DCEB" +theme[process_end]="#94E2D5" diff --git a/home/btop/default.nix b/home/btop/default.nix new file mode 100644 index 0000000..3c37d0e --- /dev/null +++ b/home/btop/default.nix @@ -0,0 +1,20 @@ +{ + ... +}: { + programs.btop = { + enable = true; + settings = { + color_theme = "/home/notoh/.config/btop/themes/catppuccin_mocha.theme"; + theme_background = false; + truecolor = true; + rounded_corners = true; + show_cpu_freq = true; + show_swap = true; + swap_disk = true; + show_disks = true; + only_physical = true; + use_fstab = true; + }; + }; + xdg.configFile."btop/themes/catppuccin_mocha.theme".source = ./catppuccin_mocha.theme; +} \ No newline at end of file diff --git a/home/default.nix b/home/default.nix index f476089..a9b9405 100644 --- a/home/default.nix +++ b/home/default.nix @@ -8,6 +8,7 @@ ./lazygit ./lf ./direnv + ./btop ]; home.packages = with pkgs; [ diff --git a/home/git/default.nix b/home/git/default.nix index 07e2c26..8754c66 100644 --- a/home/git/default.nix +++ b/home/git/default.nix @@ -1,6 +1,4 @@ {pkgs, ...}: { - home.packages = with pkgs; [gh]; - programs.git = { enable = true; userEmail = "github@notohh.dev"; @@ -11,4 +9,12 @@ }; ignores = ["*result*" ".direnv" "node_modules"]; }; + programs.gh = { + enable = true; + enableGitCredentialHelper = true; + settings = { + editor = "hx"; + prompt = "enabled"; + }; + }; }