From 9662cede9baafa882d7d3e5de40b4cd65d106e3c Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Sat, 8 Feb 2025 02:42:07 +0530 Subject: [PATCH] feat: Updated ddcbacklight and use wezterm by default on linux as well misc: Forward agent to shiro On ssh-ing to ryu have HYPRLAND_INSTANCE_SIGNATURE set from hyprland instances --- flake.lock | 6 +++--- home/gui-programs/wezterm.nix | 4 ++-- home/linux/hyprland.nix | 3 ++- home/programs/fish.nix | 3 +++ home/programs/ssh.nix | 2 +- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/flake.lock b/flake.lock index 164ab53d..f38045d3 100644 --- a/flake.lock +++ b/flake.lock @@ -349,11 +349,11 @@ "rust-overlay": "rust-overlay_3" }, "locked": { - "lastModified": 1735943174, - "narHash": "sha256-zaIej6m1Hk+JfBLzDDGSis36CSkF0aZ8smqgOds469s=", + "lastModified": 1738962130, + "narHash": "sha256-QwBW2n07mBaQJbaFaBe9BcYe9lDFn+/yaqDFKGuPA5o=", "owner": "uttarayan21", "repo": "ddcbacklight", - "rev": "43b0aac9f8f0be12a0aac749f3ba89b2f66809b8", + "rev": "08a922be3b662453c5d046ed3f4373de2beb0708", "type": "github" }, "original": { diff --git a/home/gui-programs/wezterm.nix b/home/gui-programs/wezterm.nix index c9a95408..c87f1764 100644 --- a/home/gui-programs/wezterm.nix +++ b/home/gui-programs/wezterm.nix @@ -18,7 +18,7 @@ }), color_scheme = "Catppuccin Mocha", colors = { - background = "#1e1e1e", + background = "#000000", }, font_size = 16, initial_cols = 200, @@ -34,7 +34,7 @@ top = 2, bottom = 0, }, - window_decorations = "RESIZE", + window_decorations = ${if pkgs.stdenv.isLinux then "NONE" else "RESIZE"}, use_ime = false, } ''; diff --git a/home/linux/hyprland.nix b/home/linux/hyprland.nix index b6cf2628..60cb7fad 100644 --- a/home/linux/hyprland.nix +++ b/home/linux/hyprland.nix @@ -154,7 +154,8 @@ ]; bind = [ # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more - "$mainMod, Return, exec, ${pkgs.kitty}/bin/kitty" + # "$mainMod, Return, exec, ${pkgs.kitty}/bin/kitty" + "$mainMod, Return, exec, ${pkgs.wezterm}/bin/wezterm" "$mainModShift, Return, exec, ${pkgs.foot}/bin/foot" "$mainModShift, Q, killactive," "$mainModShift, s, exec, ${pkgs.hyprshot}/bin/hyprshot -m region" diff --git a/home/programs/fish.nix b/home/programs/fish.nix index 85b33c9f..2e12e1f3 100644 --- a/home/programs/fish.nix +++ b/home/programs/fish.nix @@ -35,6 +35,9 @@ interactiveShellInit = '' ${pkgs.pfetch-rs}/bin/pfetch ${lib.optionalString (device.isLinux && !device.isNix) "source /etc/profile.d/nix-daemon.fish"} + if not set -q HYPRLAND_INSTANCE_SIGNATURE + set -x HYPRLAND_INSTANCE_SIGNATURE (hyprctl instances | head -1 | cut -d ' ' -f2 | tr -d :) + end ''; }; } diff --git a/home/programs/ssh.nix b/home/programs/ssh.nix index f2b01e51..37dd247e 100644 --- a/home/programs/ssh.nix +++ b/home/programs/ssh.nix @@ -34,7 +34,7 @@ shiro = { user = "servius"; hostname = "shiro"; - forwardAgent = false; + forwardAgent = true; }; }; serverAliveInterval = 120;