From 6ad2bfa1efc98434c6b7b636c2e5851beb758d91 Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Mon, 5 Jun 2023 17:00:34 +0200 Subject: [PATCH] Ricing --- nixos-configurations/pc/default.nix | 75 +++++++++++++++++++++++++---- nixos-configurations/shared.nix | 9 +++- 2 files changed, 73 insertions(+), 11 deletions(-) diff --git a/nixos-configurations/pc/default.nix b/nixos-configurations/pc/default.nix index 3ffb050..7dd8f0d 100644 --- a/nixos-configurations/pc/default.nix +++ b/nixos-configurations/pc/default.nix @@ -34,18 +34,81 @@ config = { modifier = "Mod1"; terminal = "alacritty"; - menu = "bemenu-run"; + menu = '' + tofi-run --width "100%" --height "100%" --border-width 0 --outline-width 0 --padding-left "35%" --padding-top "35%" --result-spacing 25 --num-results 5 --font "monospace" --background-color "#000A" | xargs swaymsg exec -- + ''; output = { DP-1 = { + bg = "/home/thiloho/background.jpg fill"; res = "1920x1080@144.000Hz"; }; DP-2 = { + bg = "/home/thiloho/background.jpg fill"; res = "1920x1080@144.000Hz"; }; }; + bars = [ + { command = "waybar"; } + ]; }; xwayland = false; }; + programs = { + waybar = { + enable = true; + settings = [ + { + modules-left = [ "sway/workspaces" ]; + modules-center = [ "sway/window" ]; + modules-right = [ "memory" "disk" "cpu" "clock" ]; + + memory = { + format = "Memory: {used}GiB"; + }; + + disk = { + format = "Disk: {free}"; + }; + + cpu = { + format = "CPU: {usage}%"; + }; + + clock = { + interval = 60; + format = "{:%Y-%m-%d %H:%M}"; + }; + } + ]; + style = '' + * { + font-size: 0.875rem; + border: none; + border-radius: 0; + } + + window#waybar { + background-color: #1a1a1a; + color: #e6e6e6; + } + + #workspaces button, #memory, #disk, #cpu, #clock { + padding-top: 0.125rem; + padding-bottom: 0.125rem; + padding-left: 0.5rem; + padding-right: 0.5rem; + background-color: #262626; + border: 0.0625rem solid #404040; + } + ''; + }; + git = { + signing = { + key = "C7F24D961CB819A5"; + }; + }; + swaylock.enable = true; + }; gtk = { enable = true; theme = { @@ -53,17 +116,9 @@ name = "Adwaita-dark"; }; }; - programs = { - git = { - signing = { - key = "C7F24D961CB819A5"; - }; - }; - swaylock.enable = true; - }; home.packages = with pkgs; [ dconf - bemenu + tofi wayshot wl-clipboard xdg-utils diff --git a/nixos-configurations/shared.nix b/nixos-configurations/shared.nix index f8c16ca..219dea8 100644 --- a/nixos-configurations/shared.nix +++ b/nixos-configurations/shared.nix @@ -53,7 +53,7 @@ helix = { enable = true; settings = { - theme = "dark_plus"; + theme = "gruvbox_transparent"; editor = { line-number = "relative"; cursorline = true; @@ -64,6 +64,12 @@ }; }; }; + themes = { + gruvbox_transparent = { + "inherits" = "gruvbox"; + "ui.background" = "{}"; + }; + }; }; vscode = { enable = true; @@ -78,6 +84,7 @@ alacritty = { enable = true; settings = { + window.opacity = 0.9; font = { normal = { family = "JetBrainsMono";