From 759d691d620f643cac50dd7b4d852ecca75f2a6d Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 3 Jan 2024 22:40:04 +0900 Subject: [PATCH] Update themes --- .../software/cli/themes/stylix/btop.nix | 83 ++++++++ .../cli/themes/stylix/doom-emacs.d/config.el | 22 ++ .../cli/themes/stylix/doom-emacs.d/init.el | 193 ++++++++++++++++++ .../themes/stylix/doom-emacs.d/packages.el | 3 + .../gui/themes/stylix/firefox-theme.nix | 9 + .../gui/themes/stylix/kitty-theme.nix | 30 +++ 6 files changed, 340 insertions(+) create mode 100644 home-manager/common/software/cli/themes/stylix/btop.nix create mode 100644 home-manager/common/software/cli/themes/stylix/doom-emacs.d/config.el create mode 100644 home-manager/common/software/cli/themes/stylix/doom-emacs.d/init.el create mode 100644 home-manager/common/software/cli/themes/stylix/doom-emacs.d/packages.el create mode 100644 home-manager/common/software/gui/themes/stylix/firefox-theme.nix create mode 100644 home-manager/common/software/gui/themes/stylix/kitty-theme.nix diff --git a/home-manager/common/software/cli/themes/stylix/btop.nix b/home-manager/common/software/cli/themes/stylix/btop.nix new file mode 100644 index 00000000..b7b818d9 --- /dev/null +++ b/home-manager/common/software/cli/themes/stylix/btop.nix @@ -0,0 +1,83 @@ +{ ... }: { + home.file.".config/btop/btop.conf".text = '' +#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes" +color_theme = "everforest-dark-hard" +theme_background = True +truecolor = True +force_tty = False +presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:default cpu:0:block,net:0:tty" +vim_keys = False +rounded_corners = True + +#* Default symbols to use for graph creation, "braille", "block" or "tty". +#* "braille" offers the highest resolution but might not be included in all fonts. +#* "block" has half the resolution of braille but uses more common characters. +#* "tty" uses only 3 different symbols but will work with most fonts and should work in a real TTY. +#* Note that "tty" only has half the horizontal resolution of the other two, so will show a shorter historical view. +graph_symbol = "braille" +graph_symbol_cpu = "default" +graph_symbol_mem = "default" +graph_symbol_net = "default" +graph_symbol_proc = "default" +shown_boxes = "cpu net proc mem" +update_ms = 1000 + +#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct", +#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly. +proc_sorting = "cpu lazy" + +proc_reversed = False +proc_tree = True +proc_colors = True +proc_gradient = True +proc_per_core = False +proc_mem_bytes = True +proc_cpu_graphs = True +proc_info_smaps = False +proc_left = False +proc_filter_kernel = False +cpu_graph_upper = "total" +cpu_graph_lower = "total" +cpu_invert_lower = True +cpu_single_graph = False +cpu_bottom = False +show_uptime = True +check_temp = True +cpu_sensor = "Auto" +show_coretemp = True +cpu_core_map = "" +temp_scale = "celsius" +base_10_sizes = False +show_cpu_freq = True + +#* Special formatting: /host = hostname | /user = username | /uptime = system uptime +clock_format = "[/user@/host] [/uptime] [%X]" + +background_update = True +custom_cpu_name = "" +disks_filter = "" +mem_graphs = True +mem_below_net = False +zfs_arc_cached = True +show_swap = True +swap_disk = True +show_disks = True +only_physical = True +use_fstab = True +zfs_hide_datasets = False +disk_free_priv = False +show_io_stat = True +io_mode = False +io_graph_combined = False +io_graph_speeds = "" +net_download = 100 +net_upload = 100 +net_auto = True +net_sync = False +net_iface = "" +show_battery = True +selected_battery = "Auto" +log_level = "WARNING" + + ''; +} diff --git a/home-manager/common/software/cli/themes/stylix/doom-emacs.d/config.el b/home-manager/common/software/cli/themes/stylix/doom-emacs.d/config.el new file mode 100644 index 00000000..64dffa3a --- /dev/null +++ b/home-manager/common/software/cli/themes/stylix/doom-emacs.d/config.el @@ -0,0 +1,22 @@ +;; Themes +(setq doom-theme 'doom-pine) +(setq doom-themes-treemacs-theme "doom-colors") + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; LSP Modules + ;; Bash + (use-package lsp-mode + :commands lsp + :hook + (sh-mode . lsp)) + + ;; Python + (defun lspython () + "Updates the lsp-python-ms-executable variable and runs lsp." + (interactive) + (setq lsp-python-ms-executable (executable-find "python-lsp-server")) + (lsp-deferred)) + + ;; Rust + (after! rustic + (setq rustic-lsp-server 'rls)) \ No newline at end of file diff --git a/home-manager/common/software/cli/themes/stylix/doom-emacs.d/init.el b/home-manager/common/software/cli/themes/stylix/doom-emacs.d/init.el new file mode 100644 index 00000000..3ba2dc03 --- /dev/null +++ b/home-manager/common/software/cli/themes/stylix/doom-emacs.d/init.el @@ -0,0 +1,193 @@ +;;; init.el -*- lexical-binding: t; -*- + +;; This file controls what Doom modules are enabled and what order they load +;; in. Remember to run 'doom sync' after modifying it! + +;; NOTE Press 'SPC h d h' (or 'C-h d h' for non-vim users) to access Doom's +;; documentation. There you'll find a "Module Index" link where you'll find +;; a comprehensive list of Doom's modules and what flags they support. + +;; NOTE Move your cursor over a module's name (or its flags) and press 'K' (or +;; 'C-c c k' for non-vim users) to view its documentation. This works on +;; flags as well (those symbols that start with a plus). +;; +;; Alternatively, press 'gd' (or 'C-c c d') on a module to browse its +;; directory (for easy access to its source code). + +(doom! :input + ;;chinese + ;;japanese + ;;layout ; auie,ctsrnm is the superior home row + + :completion + company ; the ultimate code completion backend + ivy ; a search engine for love and life + vertico ; the search engine of the future + ;;ido ; the other *other* search engine... + ;;helm ; the *other* search engine for love and life + + :ui + doom ; what makes DOOM look the way it does + doom-dashboard ; a nifty splash screen for Emacs + ;;doom-quit ; DOOM quit-message prompts when you quit Emacs + (emoji +unicode) ; 🙂 + hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW + indent-guides ; highlighted indent columns + ligatures ; ligatures and symbols to make your code pretty again + minimap ; show a map of the code on the side + modeline ; snazzy, Atom-inspired modeline, plus API + nav-flash ; blink cursor line after big motions + ophints ; highlight the region an operation acts on + (popup +defaults) ; tame sudden yet inevitable temporary windows + ;; tabs ; a tab bar for Emacs + treemacs ; a project drawer, like neotree but cooler + vc-gutter ; vcs diff in the fringe + vi-tilde-fringe ; fringe tildes to mark beyond EOB + window-select ; visually switch windows + workspaces ; tab emulation, persistence & separate workspaces + zen ; distraction-free coding or writing + ;;unicode ; extended unicode support for various languages + ;;hydra + ;;neotree ; a project drawer, like NERDTree for vim + ;;deft ; notational velocity for Emacs + + :editor + (evil +everywhere) ; come to the dark side, we have cookies + file-templates ; auto-snippets for empty files + fold ; (nigh) universal code folding + snippets ; my elves. They type so I don't have to + + ;;(format +onsave) ; automated prettiness + ;;god ; run Emacs commands without modifier keys + ;;lispy ; vim for lisp, for people who don't like vim + ;;multiple-cursors ; editing in many places at once + ;;objed ; text object editing for the innocent + ;;parinfer ; turn lisp into python, sort of + ;;rotate-text ; cycle region at point between text candidates + ;;word-wrap ; soft wrapping with language-aware indent + + :emacs + dired ; making dired pretty [functional] + electric ; smarter, keyword-based electric-indent + ibuffer ; interactive buffer management + undo ; persistent, smarter undo for your inevitable mistakes + vc ; version-control and Emacs, sitting in a tree + + :term + vterm ; the best terminal emulation in Emacs + ;;eshell ; the elisp shell that works everywhere + ;;shell ; simple shell REPL for Emacs + ;;term ; basic terminal emulator for Emacs + + :checkers + syntax ; tasing you for every semicolon you forget + ;;(spell +flyspell) ; tasing you for misspelling mispelling + ;;grammar ; tasing grammar mistake every you make + + :tools + (eval +overlay) ; run code, run (also, repls) + lookup ; navigate your code and its documentation + lsp ; M-x vscode + magit ; a git porcelain for Emacs + ;;ansible + ;;biblio ; Writes a PhD for you (citation needed) + ;;debugger ; FIXME stepping through code, to help you add bugs + ;;direnv + ;;docker + ;;editorconfig ; let someone else argue about tabs vs spaces + ;;ein ; tame Jupyter notebooks with emacs + ;;gist ; interacting with github gists + ;;make ; run make tasks from Emacs + ;;pass ; password manager for nerds + ;;pdf ; pdf enhancements + ;;prodigy ; FIXME managing external services & code builders + ;;rgb ; creating color strings + ;;taskrunner ; taskrunner for all your projects + ;;terraform ; infrastructure as code + ;;tmux ; an API for interacting with tmux + ;;upload ; map local to remote projects via ssh/ftp + + :os + tty ; improve the terminal Emacs experience + + :lang + emacs-lisp ; drown in parentheses + json ; At least it ain't XML + markdown ; writing docs for people to ignore + javascript ; all(hope(abandon(ye(who(enter(here)))))) + nix ; I hereby declare "nix geht mehr!" + org ; organize your plain life in plain text + web ; the tubes + yaml ; JSON, but readable + (rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap() + (python +lsp) ; beautiful is better than ugly + (sh +lsp) ; she sells {ba,z,fi}sh shells on the C xor + (nix +lsp) ; Nix LSP + + ;;agda ; types of types of types of types... + ;;beancount ; mind the GAAP + ;;cc ; C > C++ == 1 + ;;clojure ; java with a lisp + ;;common-lisp ; if you've seen one lisp, you've seen them all + ;;coq ; proofs-as-programs + ;;crystal ; ruby at the speed of c + ;;csharp ; unity, .NET, and mono shenanigans + ;;data ; config/data formats + ;;(dart +flutter) ; paint ui and not much else + ;;dhall + ;;elixir ; erlang done right + ;;elm ; care for a cup of TEA? + ;;erlang ; an elegant language for a more civilized age + ;;ess ; emacs speaks statistics + ;;factor + ;;faust ; dsp, but you get to keep your soul + ;;fortran ; in FORTRAN, GOD is REAL (unless declared INTEGER) + ;;fsharp ; ML stands for Microsoft's Language + ;;fstar ; (dependent) types and (monadic) effects and Z3 + ;;gdscript ; the language you waited for + ;;(go +lsp) ; the hipster dialect + ;;(haskell +lsp) ; a language that's lazier than I am + ;;hy ; readability of scheme w/ speed of python + ;;idris ; a language you can depend on + ;;(java +meghanada) ; the poster child for carpal tunnel syndrome + ;;julia ; a better, faster MATLAB + ;;kotlin ; a better, slicker Java(Script) + ;;latex ; writing papers in Emacs has never been so fun + ;;lean ; for folks with too much to prove + ;;ledger ; be audit you can be + ;;lua ; one-based indices? one-based indices + ;;nim ; python + lisp at the speed of c + ;;ocaml ; an objective camel + ;;php ; perl's insecure younger brother + ;;plantuml ; diagrams for confusing people more + ;;purescript ; javascript, but functional + ;;qt ; the 'cutest' gui framework ever + ;;racket ; a DSL for DSLs + ;;raku ; the artist formerly known as perl6 + ;;rest ; Emacs as a REST client + ;;rst ; ReST in peace + ;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} + ;;scala ; java, but good + ;;(scheme +guile) ; a fully conniving family of lisps + ;;sml + ;;solidity ; do you need a blockchain? No. + ;;swift ; who asked for emoji variables? + ;;terra ; Earth and Moon in alignment for performance. + ;;zig ; C, but simpler + + :email + ;;(mu4e +org +gmail) + ;;notmuch + ;;(wanderlust +gmail) + + :app + ;;calendar + ;;emms + ;;everywhere ; *leave* Emacs!? You must be joking + ;;irc ; how neckbeards socialize + ;;(rss +org) ; emacs as an RSS reader + ;;twitter ; twitter client https://twitter.com/vnought + + :config + ;;literate + (default +bindings +smartparens)) diff --git a/home-manager/common/software/cli/themes/stylix/doom-emacs.d/packages.el b/home-manager/common/software/cli/themes/stylix/doom-emacs.d/packages.el new file mode 100644 index 00000000..c60b4b1a --- /dev/null +++ b/home-manager/common/software/cli/themes/stylix/doom-emacs.d/packages.el @@ -0,0 +1,3 @@ +;; Themes - Test +(package! gruvbox-theme) +(package! forest-blue-theme) diff --git a/home-manager/common/software/gui/themes/stylix/firefox-theme.nix b/home-manager/common/software/gui/themes/stylix/firefox-theme.nix new file mode 100644 index 00000000..0df9b8e4 --- /dev/null +++ b/home-manager/common/software/gui/themes/stylix/firefox-theme.nix @@ -0,0 +1,9 @@ +{ config, pkgs, theme, ... }: { + programs.firefox.profiles.default = { + # https://nur.nix-community.org/repos/rycee/ + extensions = with pkgs.nur.repos.rycee.firefox-addons; [ + # Theming + gruvbox-dark-theme + ]; + }; +} \ No newline at end of file diff --git a/home-manager/common/software/gui/themes/stylix/kitty-theme.nix b/home-manager/common/software/gui/themes/stylix/kitty-theme.nix new file mode 100644 index 00000000..248e5484 --- /dev/null +++ b/home-manager/common/software/gui/themes/stylix/kitty-theme.nix @@ -0,0 +1,30 @@ +{ ... }: { + home.file.".config/kitty/theme.conf".text = '' + ## name: Gruvbox Dark +## author: Pavel Pertsev +## license: MIT/X11 +## upstream: https://github.com/dexpota/kitty-themes/blob/master/themes/Hipster_Green.conf + +background #252525 +foreground #d9eed2 +cursor #41ff58 +selection_background #2a9b34 +color0 #1e1e1e +color8 #03260f +color1 #da6a6a +color9 #a6ff3e +color2 #329b24 +color10 #9fff6d +color3 #649a25 +color11 #d1ff6d +color4 #149b45 +color12 #72ffb5 +color5 #53b82b +color13 #50ff3d +color6 #2bb767 +color14 #22ff71 +color7 #dffeee +color15 #daeed0 +selection_foreground #3a3c3e + ''; +}