From cf6ea202e13b8e63bcdd4d34e977c989051007dc Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Fri, 28 Jun 2024 00:58:12 +0200 Subject: [PATCH] Update --- docs/TODO.md | 13 ++++++------- home/system/hyprland/default.nix | 9 ++++++--- hosts/laptop/configuration.nix | 2 +- hosts/modules/nvidia.nix | 3 +-- hosts/server/modules/www/anotherhadi.com.nix | 4 ++-- 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/docs/TODO.md b/docs/TODO.md index 72b949a..dcf3c10 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -10,27 +10,26 @@ feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md)) - [ ] macOS theme - [~] Tofi (Wofi, but terminal based) - [ ] Add Vim Keybindings to KEYBINDINGS.md - - [ ] Keybindings with Icons + - [+] Keybindings with Icons - [ ] Qutebrowser - [~] Bitwarden integration (I need this.) -- [ ] Waybar +- [+] Waybar - [ ] Caffeine status on click - [ ] Night-shift status on click - [ ] Hyprland - - [ ] Implement Hyprcursor (see home/system/hyprland/hyprcursor.nix: Not working, small cursor on some apps, big one on others) + - [-] Implement Hyprcursor (see home/system/hyprland/hyprcursor.nix: Not working, small cursor on some apps, big one on others) - [ ] Animations based on app name - [ ] Wofi: popin - [ ] Wlogout: fade in - [ ] Fix screenshots - [ ] Nixvim - - [ ] Markdown snippets - - [ ] Markdown fold - - [~] Markdown better table (maybe lsp?) - - [ ] Autosave when zen-mode is open + - [+] Markdown snippets + - [+] Markdown fold + - [+] Autosave when zen-mode is open - [ ] Backup system for some folders ($home/dev, $home/pictures, ...) - [ ] Exclude file pattern (nodes modules, ...) diff --git a/home/system/hyprland/default.nix b/home/system/hyprland/default.nix index 7483783..a8cd8b5 100644 --- a/home/system/hyprland/default.nix +++ b/home/system/hyprland/default.nix @@ -47,11 +47,11 @@ monitor = [ "eDP-2,highres,0x0,1" # "DP-9,highrr,2560x0,1" - # ",prefered,auto,1" + ",prefered,auto,1" #"desc:,2560x1440@240.0,0x0,1.0" #"desc:,2560x1440@60.0,645x4362,1.0" - "desc:AOC U34G2G1 0x00000E06,3440x1440@59.97,2560x0,1.0" - ",disable" + # "desc:AOC U34G2G1 0x00000E06,3440x1440@59.97,2560x0,1.0" + # ",disable" ]; bind = [ @@ -115,8 +115,10 @@ "QT_AUTO_SCREEN_SCALE_FACTOR,1" "QT_QPA_PLATFORM=wayland,xcb" "QT_WAYLAND_DISABLE_WINDOWDECORATION,1" + "ELECTRON_OZONE_PLATFORM_HINT,auto" "GTK_THEME,FlatColor:dark" "GTK2_RC_FILES,/home/hadi/.local/share/themes/FlatColor/gtk-2.0/gtkrc" + #"WLR_DRM_DEVICES,$HOME/.config/hypr/card" # "HYPRCURSOR_THEME,macOS" # "HYPRCURSOR_SIZE,16" # "XCURSOR_SIZE,16" @@ -147,6 +149,7 @@ gestures = { workspace_swipe = true; }; misc = { + vfr = true; disable_hyprland_logo = true; disable_splash_rendering = true; disable_autoreload = true; diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 1e55183..055df94 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -3,7 +3,7 @@ ./hardware-configuration.nix ../modules/fonts.nix ../modules/nvidia.nix - ../modules/prime.nix +# ../modules/prime.nix ../modules/tuigreet.nix ../modules/usb.nix ./variables.nix diff --git a/hosts/modules/nvidia.nix b/hosts/modules/nvidia.nix index 67face8..f9d086d 100644 --- a/hosts/modules/nvidia.nix +++ b/hosts/modules/nvidia.nix @@ -9,10 +9,9 @@ in { lib.optionals (lib.elem "nvidia" config.services.xserver.videoDrivers) [ "nvidia-drm.modeset=1" "nvidia_drm.fbdev=1" + "nvidia.NVreg_PreserveVideoMemoryAllocations=1" ]; environment.variables = { - VK_DRIVER_FILES = - /run/opengl-driver/share/vulkan/icd.d/nvidia_icd.x86_64.json; GBM_BACKEND = "nvidia-drm"; WLR_NO_HARDWARE_CURSORS = "1"; LIBVA_DRIVER_NAME = "nvidia"; # hardware acceleration diff --git a/hosts/server/modules/www/anotherhadi.com.nix b/hosts/server/modules/www/anotherhadi.com.nix index 47dd16e..7471fc8 100644 --- a/hosts/server/modules/www/anotherhadi.com.nix +++ b/hosts/server/modules/www/anotherhadi.com.nix @@ -7,8 +7,8 @@ let src = pkgs.fetchFromGitHub { owner = "anotherhadi"; repo = "portfolio"; - rev = "48effd644da4d89921a4c1a3f5f6f5b6bd09eb6d"; - hash = "sha256-cFoq957oKS2MbKm94sUwAbS6GZ+IYWslZmvqyvK25m0="; + rev = "5d54a2d204cdbf0f702173c1bf1279bca25eb736"; + hash = "sha256-8vDm9YwZKpMujILZjXtRERUIxvDqddSxS/gdJfZdUdY="; }; npmDepsHash = "sha256-KMILWgZ6GNKoe/+RZS1tVDTd3SxXl6YtOuCb5kSFeis=";