From 803585323bdd11dba7113f66d94f0357f4bfe1ce Mon Sep 17 00:00:00 2001 From: adikro Date: Sat, 22 Nov 2025 17:13:56 +0100 Subject: changed niri, nixcord and yazi configs --- home/editors/nixvim.nix | 1 + home/home.nix | 1 + home/programs/nixcord.nix | 17 +++++------------ home/programs/yazi.nix | 7 +++++++ home/wayland/niri/binds.nix | 15 +++++++++++++++ 5 files changed, 29 insertions(+), 12 deletions(-) create mode 100644 home/programs/yazi.nix (limited to 'home') diff --git a/home/editors/nixvim.nix b/home/editors/nixvim.nix index cddfec0..6bfc119 100644 --- a/home/editors/nixvim.nix +++ b/home/editors/nixvim.nix @@ -7,6 +7,7 @@ viAlias = true; vimAlias = true; + defaultEditor = true; waylandSupport = true; colorschemes.gruvbox.enable = true; diff --git a/home/home.nix b/home/home.nix index afa9053..636225c 100644 --- a/home/home.nix +++ b/home/home.nix @@ -17,6 +17,7 @@ ./shells/starship.nix ./programs/spicetify.nix ./programs/nixcord.nix + ./programs/yazi.nix # Other ./xdg.nix ]; diff --git a/home/programs/nixcord.nix b/home/programs/nixcord.nix index 2e825e3..98e0a74 100644 --- a/home/programs/nixcord.nix +++ b/home/programs/nixcord.nix @@ -9,11 +9,11 @@ equicord.enable = true; autoscroll.enable = true; openASAR.enable = true; - settings = { - MINIMIZE_TO_TRAY = false; - OPEN_ON_STARTUP = false; - ANIMATE_AVATARS = false; - }; + # settings = { + # MINIMIZE_TO_TRAY = false; + # OPEN_ON_STARTUP = false; + # ANIMATE_AVATARS = false; + # }; }; config = { frameless = true; @@ -225,13 +225,6 @@ enable = true; noSpotifyAutoPause = false; }; - timezones = { - enable = true; - _24hTime = true; - # setDatabaseTimezone = { }; - showMessageHeaderTime = false; - showOwnTimezone = false; - }; typingIndicator.enable = true; typingTweaks.enable = true; unindent.enable = true; diff --git a/home/programs/yazi.nix b/home/programs/yazi.nix new file mode 100644 index 0000000..a8e2911 --- /dev/null +++ b/home/programs/yazi.nix @@ -0,0 +1,7 @@ +{ inputs, ... }: +{ +# nixpkgs.overlays = [ inputs.yazi.overlays.default ]; + programs.yazi = { + enable = true; + }; +} diff --git a/home/wayland/niri/binds.nix b/home/wayland/niri/binds.nix index 325b60b..e65a595 100644 --- a/home/wayland/niri/binds.nix +++ b/home/wayland/niri/binds.nix @@ -29,6 +29,21 @@ "Mod+Shift+P".action = power-off-monitors; "Mod+W".action = toggle-column-tabbed-display; + "Mod+S".action = spawn "sh" "-c" + '' + filename="/media/ss/$(date +%Y-%m-%d_%H-%M-%S).png" + grim -g "$(slurp)" - | tee "$filename" | wl-copy + ''; + + "Mod+Shift+S".action = spawn "sh" "-c" + '' + filename="/media/ss/$(date +%Y-%m-%d_%H-%M-%S).png" + grim -g "$(slurp)" "$filename" + + edited="/media/ss/$(date +%Y-%m-%d_%H-%M-%S)-edited.png" + satty --filename "$filename" --output-filename "$edited" + wl-copy < "$edited" + ''; # --- System / General --- "Mod+Return".action = spawn "foot"; -- cgit v1.3