From d97bda1deea7d0f8db250dabd7552570b03f6329 Mon Sep 17 00:00:00 2001 From: Cameron Reed Date: Mon, 29 Jan 2024 22:14:01 -0700 Subject: [PATCH] Random fixes --- common/users/cameron/home-manager/hyprland.nix | 8 ++++---- common/users/cameron/home-manager/lf.nix | 2 +- common/users/cameron/home-manager/zsh.nix | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/common/users/cameron/home-manager/hyprland.nix b/common/users/cameron/home-manager/hyprland.nix index 6984d8c..75a5864 100644 --- a/common/users/cameron/home-manager/hyprland.nix +++ b/common/users/cameron/home-manager/hyprland.nix @@ -8,10 +8,10 @@ hyprpaper & swayidle -w \ - timeout 270 'swaylock -f' \ - timeout 300 'hyprctl dispatch dpms off' \ - before-sleep 'swaylock -f; sleep 1' \ - after-resume 'hyprctl dispatch dpms on' & + timeout 300 'swaylock -f' \ + timeout 330 'hyprctl dispatch dpms off' \ + resume 'hyprctl dispatch dpms on' \ + before-sleep 'swaylock -f; sleep 1' & ''; in { wayland.windowManager.hyprland = { enable = true; diff --git a/common/users/cameron/home-manager/lf.nix b/common/users/cameron/home-manager/lf.nix index 92d3982..b6134db 100644 --- a/common/users/cameron/home-manager/lf.nix +++ b/common/users/cameron/home-manager/lf.nix @@ -25,7 +25,7 @@ preview = true; drawbox = true; icons = true; - cursorpreviewfmt = "\033[7;90m"; + cursorpreviewfmt = "\\033[7;90m"; }; }; diff --git a/common/users/cameron/home-manager/zsh.nix b/common/users/cameron/home-manager/zsh.nix index 4d15b3e..e9d6683 100644 --- a/common/users/cameron/home-manager/zsh.nix +++ b/common/users/cameron/home-manager/zsh.nix @@ -103,7 +103,7 @@ fi if command -v lf &> /dev/null; then lfcd() { - cd "$(command lf -print-last-lf "$@")" + cd "$(command lf -print-last-dir "$@")" } bindkey -s '^o' 'lfcd\n' @@ -122,7 +122,7 @@ fi nv = "nvim"; nvd = "nvim ."; - nvc = "nvim -c \"edit \$MYVIMRC\""; + nvc = "nvim -c \"edit \\$MYVIMRC\""; nvp = "nvim ${config.home.homeDirectory}/projects"; c = "clear";