diff --git a/.wezterm.lua b/.wezterm.lua index 192a1ad..946ca0c 100644 --- a/.wezterm.lua +++ b/.wezterm.lua @@ -1,24 +1,15 @@ -local wezterm = require 'wezterm' +local wezterm = require("wezterm") local config = wezterm.config_builder() - -config.initial_cols = 120 -config.initial_rows = 28 - -config.font_size = 12 -config.font = wezterm.font("MapleMono") - -config.window_close_confirmation = 'NeverPrompt' -config.enable_tab_bar = false - -config.window_background_opacity = 0.9 - +config.font_size = 15 +config.color_scheme = "Mashup Colors (terminal.sexy)" config.window_padding = { - left = 5, - right = 5, - top = 5, - bottom = 5, + left = 4, + right = 4, + top = 4, + bottom = 4, } - -config.color_scheme = 'Afterglow' - +config.enable_tab_bar = false +config.font = wezterm.font("JetBrainsMono Nerd Font") +config.window_close_confirmation = "NeverPrompt" +config.window_background_opacity = 0.90 return config diff --git a/config/niri/config.kdl b/config/niri/config.kdl index 18b82ad..957488e 100644 --- a/config/niri/config.kdl +++ b/config/niri/config.kdl @@ -34,7 +34,7 @@ output "HDMI-A-1" { } output "eDP-1" { - //off + off scale 1 transform "normal" position x=1280 y=0 diff --git a/config/nvim/init.lua b/config/nvim/init.lua index f1f3633..0983320 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -7,4 +7,4 @@ require("plugins/treesitter") --require("plugins/whichkey") require("config") require("plugins/render-markdown") -require("nvim-toggler").setup() +require("plugins/monokai-pro") diff --git a/config/nvim/lazy-lock.json b/config/nvim/lazy-lock.json index ae6a39d..9e685ea 100644 --- a/config/nvim/lazy-lock.json +++ b/config/nvim/lazy-lock.json @@ -7,12 +7,12 @@ "cmp-spell": { "branch": "master", "commit": "694a4e50809d6d645c1ea29015dad0c293f019d6" }, "cmp-vsnip": { "branch": "main", "commit": "989a8a73c44e926199bfd05fa7a516d51f2d2752" }, "comfy-line-numbers.nvim": { "branch": "main", "commit": "31e2f9287b4491ad72defb9e0185eb2739983799" }, - "gruvbox.nvim": { "branch": "main", "commit": "5e0a460d8e0f7f669c158dedd5f9ae2bcac31437" }, "lazy.nvim": { "branch": "main", "commit": "db067881fff0fd4be8c00e5bde7492e0e1c77a2f" }, "lsp_signature.nvim": { "branch": "master", "commit": "d50e40b3bf9324128e71b0b7e589765ce89466d2" }, "lualine.nvim": { "branch": "master", "commit": "a94fc68960665e54408fe37dcf573193c4ce82c9" }, "mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" }, "mini.nvim": { "branch": "main", "commit": "429e5f9dc9cd59bf76cd98b687300f0a384a7f52" }, + "monokai-pro.nvim": { "branch": "master", "commit": "1ac671f6da720cba967d28d25c2f16b8b4e18808" }, "none-ls-extras.nvim": { "branch": "main", "commit": "924fe88a9983c7d90dbb31fc4e3129a583ea0a90" }, "none-ls.nvim": { "branch": "main", "commit": "db2a48b79cfcdab8baa5d3f37f21c78b6705c62e" }, "nvim-autopairs": { "branch": "master", "commit": "4d74e75913832866aa7de35e4202463ddf6efd1b" }, diff --git a/config/nvim/lua/config.lua b/config/nvim/lua/config.lua index 4a6e620..2abef13 100644 --- a/config/nvim/lua/config.lua +++ b/config/nvim/lua/config.lua @@ -29,7 +29,7 @@ else cfg.shell = "/run/current-system/sw/bin/zsh" end -vim.cmd([[colorscheme gruvbox]]) +vim.cmd([[colorscheme monokai-pro]]) vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { border = "single", diff --git a/config/nvim/lua/plugins/lazy/plugins.lua b/config/nvim/lua/plugins/lazy/plugins.lua index 17aea2e..27d0526 100644 --- a/config/nvim/lua/plugins/lazy/plugins.lua +++ b/config/nvim/lua/plugins/lazy/plugins.lua @@ -1,7 +1,7 @@ return { { "andweeb/presence.nvim", - "ellisonleao/gruvbox.nvim", + "loctvl842/monokai-pro.nvim", "neovim/nvim-lspconfig", "williamboman/mason.nvim", { diff --git a/config/nvim/lua/plugins/monokai-pro/init.lua b/config/nvim/lua/plugins/monokai-pro/init.lua new file mode 100644 index 0000000..fe10ba8 --- /dev/null +++ b/config/nvim/lua/plugins/monokai-pro/init.lua @@ -0,0 +1,20 @@ +require("monokai-pro").setup({ + transparent_background = true, + devicons = true, + terminal_colors = true, + styles = { + comment = { italic = true }, + keyword = { italic = true }, + type = { italic = true }, + storageclass = { italic = true }, + structure = { italic = true }, + parameter = { italic = true }, + annotation = { italic = true }, + tag_attribute = { italic = true }, + }, + filter = "spectrum", + day_night = { enable = false }, + background_clear = { "toggleterm", "telescope", "notify", "nvim-tree" }, +}) + +vim.cmd("colorscheme monokai-pro") diff --git a/config/starship.toml b/config/starship.toml index cff67bf..1ebe738 100644 --- a/config/starship.toml +++ b/config/starship.toml @@ -1,44 +1,39 @@ format = """ -[](#1d2021)\ +[](#1e1e1e)\ $os\ $username\ -[](bg:#3c3836 fg:#1d2021)\ +[](bg:#2a2a2a fg:#1e1e1e)\ $directory\ -[](fg:#3c3836 bg:#2a2a2a)\ +[](fg:#2a2a2a bg:#3a3830)\ $all_langs\ -[](fg:#2a2a2a bg:#1d2021)\ -$git_branch\ -[](fg:#1d2021 bg:#4a4a4a)\ +[](fg:#3a3830 bg:#1e1e1e)\ $time\ -[ ](fg:#4a4a4a)\ +[](fg:#1e1e1e bg:#3e3a32)\ +$time\ +[ ](fg:#3e3a32)\ """ add_newline = false [username] show_always = true -style_user = "bg:#1d2021 fg:#bdae93" -style_root = "bg:#1d2021 fg:#fb4934" +style_user = "bg:#1e1e1e fg:#dcd7ba" +style_root = "bg:#1e1e1e fg:#c05a3b" format = '[$user]($style)' disabled = false [os] -style = "bg:#1d2021 fg:#bdae93" +style = "bg:#2a2a2a fg:#dcd7ba" disabled = true [directory] -style = "fg:#bdae93 bg:#3c3836" +style = "fg:#dcd7ba bg:#2a2a2a" format = "[ $path ]($style)" truncation_length = 3 truncation_symbol = "…/" + [directory.substitutions] "Documents" = "󰈙 " "Downloads" = " " "Music" = " " "Pictures" = " " - - -[git_branch] -symbol = " " -style = "bg:#1d2021 fg:#bdae93" -format = "[ $symbol$branch ]($style)" diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc index fb764c5..bad82e6 100644 --- a/config/waybar/config.jsonc +++ b/config/waybar/config.jsonc @@ -1,6 +1,7 @@ { - "position": "bottom", - "layer": "bottom", + "position": "top", + "output": "HDMI-A-1", + "layer": "top", "modules-left": [ "niri/workspaces", "niri/mode", @@ -9,7 +10,7 @@ ], "modules-right": [ "clock", - "battery", +// "battery", "pulseaudio", "network" ], @@ -83,8 +84,8 @@ "format": "{}" }, "network": { - "interface": "wlo1", -// "interface": "eno1", + // "interface": "wlo1", + "interface": "eno1", "format-wifi": "WLAN {essid}", "format-ethernet": "ETH {ipaddr}/{cidr}", "format-disconnected": "disconnected", diff --git a/config/waybar/style.css b/config/waybar/style.css index 20a3430..f8eff7c 100644 --- a/config/waybar/style.css +++ b/config/waybar/style.css @@ -1,18 +1,19 @@ -@define-color border #3c3836; -@define-color background #282828; -@define-color surface0 #3c3836; -@define-color overlay0 #504945; -@define-color text #ebdbb2; -@define-color text_dim #a89984; -@define-color blue #458588; -@define-color green #b8bb26; -@define-color yellow #d79921; -@define-color peach #fe8019; -@define-color maroon #fb4934; -@define-color lavender #b16286; -@define-color pink #d3869b; -@define-color teal #689d6a; -@define-color grey #928374; +@define-color border #3e3a32; +@define-color background #1e1e1e; +@define-color surface0 #2a2a2a; +@define-color overlay0 #3a3830; +@define-color text #dcd7ba; +@define-color text_dim #8c8a75; + +@define-color blue #7fbbb3; +@define-color green #55393D; /* changed */ +@define-color yellow #f9e2af; +@define-color peach #e69875; +@define-color maroon #c05a3b; +@define-color lavender #b4beff; +@define-color pink #f4b8e4; +@define-color teal #7fc1ca; +@define-color grey #5c6773; * { border: none; @@ -23,7 +24,7 @@ window#waybar { background: @background; - border-top: 2px solid @surface0; + border-bottom: 2px solid @surface0; } #disk, @@ -48,9 +49,7 @@ window#waybar { border-radius: 8px; } -#window { - transition: none; -} +#window { transition: none; } window#waybar.empty #window { background: transparent; @@ -58,15 +57,8 @@ window#waybar.empty #window { border: none; } -#network { - margin: 8px 12px 8px 12px; - color: @text; -} - -#pulseaudio, -#clock { - color: @text; -} +#network { margin: 8px 12px; color: @text; } +#pulseaudio, #clock { color: @text; } #workspaces { margin-left: 12px; @@ -80,19 +72,12 @@ window#waybar.empty #window { transition: none; } -#workspaces button.empty { - color: @text; -} - -#workspaces button.active { - color: @peach; -} - -#workspaces button.urgent { - color: @maroon; -} +#workspaces button.empty { color: @text_dim; } +#workspaces button.active { color: @green; } /* now #55393D */ +#workspaces button.urgent { color: @maroon; } #workspaces button:hover { background: @overlay0; color: @text; } + diff --git a/nixos/configuration/configuration.nix b/nixos/configuration/configuration.nix index 50d1e15..c79997b 100644 --- a/nixos/configuration/configuration.nix +++ b/nixos/configuration/configuration.nix @@ -72,10 +72,8 @@ in security.sudo-rs.enable = true; virtualisation = { - waydroid.enable = true; - podman = { - enable = true; - }; + waydroid.enable = false; + podman.enable = true; }; environment.systemPackages = with pkgs; [ @@ -122,6 +120,14 @@ in vazir-fonts ]; + xdg.portal = { + enable = true; + extraPortals = with pkgs; [ + xdg-desktop-portal-gtk + xdg-desktop-portal-gnome + ]; + }; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; services.openssh.enable = true; system.stateVersion = "25.05"; diff --git a/nixos/configuration/sys/swap.nix b/nixos/configuration/sys/swap.nix new file mode 100644 index 0000000..72cba4f --- /dev/null +++ b/nixos/configuration/sys/swap.nix @@ -0,0 +1,11 @@ +{ + ... +}: +{ + swapDevices = [ + { + device = "/var/lib/swapfile"; + size = 12*1024; + } + ]; +} diff --git a/nixos/configuration/sys/zram.nix b/nixos/configuration/sys/zram.nix new file mode 100644 index 0000000..8e7037d --- /dev/null +++ b/nixos/configuration/sys/zram.nix @@ -0,0 +1,10 @@ +{ + config, + ... +}: +{ + zramSwap = { + enable = true; + writebackDevice = "/dev/nvme0n1p3"; + }; +} diff --git a/nixos/flake.nix b/nixos/flake.nix index f552f14..6483900 100644 --- a/nixos/flake.nix +++ b/nixos/flake.nix @@ -23,6 +23,7 @@ modules = [ (import ./configuration/configuration.nix { inherit pkgs pkgsUnstable; }) ./configuration/sys/coreutils-configuration.nix + ./configuration/sys/swap.nix ./hardware-configuration.nix { diff --git a/nixos/hardware-configuration.nix b/nixos/hardware-configuration.nix deleted file mode 100644 index 52e9450..0000000 --- a/nixos/hardware-configuration.nix +++ /dev/null @@ -1,39 +0,0 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: - -{ - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; - - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/2ed14a91-f00e-4c66-8c33-29f93a8451d7"; - fsType = "ext4"; - }; - - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/FB28-548D"; - fsType = "vfat"; - options = [ "fmask=0022" "dmask=0022" ]; - }; - - swapDevices = [ ]; - - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking - # (the default) this is the recommended approach. When using systemd-networkd it's - # still possible to use this option, but it's recommended to use it in conjunction - # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.eno1.useDHCP = lib.mkDefault true; - # networking.interfaces.wlo1.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -} diff --git a/nixos/home-configuration/apps/zsh.nix b/nixos/home-configuration/apps/zsh.nix index c6c4a48..da7fd97 100644 --- a/nixos/home-configuration/apps/zsh.nix +++ b/nixos/home-configuration/apps/zsh.nix @@ -36,6 +36,7 @@ suod = "sudo"; sduo = "sudo"; sd = "sudo"; + fastfetch = "fastfetch --pipe false | uwuify.awk"; }; initContent = '' autoload -U compinit @@ -52,6 +53,7 @@ EDITOR=vim bindkey -e PS1="[%n in %m %~] " + eval "$(starship init zsh)" ''; }; } diff --git a/nixos/home-configuration/configuration.nix b/nixos/home-configuration/configuration.nix index 972ca98..b41d33e 100644 --- a/nixos/home-configuration/configuration.nix +++ b/nixos/home-configuration/configuration.nix @@ -13,7 +13,9 @@ nvim = "nvim"; eww = "eww"; waybar = "waybar"; - niri = "niri"; + rofi = "rofi"; + niri = "niri"; + "starship.toml" = "starship.toml"; }; in { xdg.configFile = builtins.mapAttrs (name: subpath: { @@ -30,9 +32,12 @@ in { nix-search-cli fastfetch dysk - autotiling + ncurses + ollama tree + pyright stylua + starship gopls lua-language-server serve-d @@ -45,7 +50,7 @@ in { mate.caja htop nixpkgs-fmt - swaybg + swww wmenu mako nwg-look