summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/editors/nixvim.nix1
-rw-r--r--home/home.nix1
-rw-r--r--home/programs/nixcord.nix17
-rw-r--r--home/programs/yazi.nix7
-rw-r--r--home/wayland/niri/binds.nix15
5 files changed, 29 insertions, 12 deletions
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";