]> Skullheadx's Git Forge - nixos.git/commitdiff
change some stuff in neovim config
authorAndrew <admonty1@protonmail.com>
Sat, 30 Aug 2025 18:02:16 +0000 (14:02 -0400)
committerAndrew <admonty1@protonmail.com>
Sat, 30 Aug 2025 18:02:16 +0000 (14:02 -0400)
home.nix
hyprland/binds.nix
impurities [deleted file]
impurities.md [new file with mode: 0644]
neovim.nix
obsidian.nix
tmux.nix

index a74ffe5ae3bafa178f8cc289a861430fea6bf258..b799b272a57a00a4b99a75296b425717b54614b9 100644 (file)
--- a/home.nix
+++ b/home.nix
@@ -5,9 +5,7 @@
   inputs,
   skullNeovim,
   ...
-}:
-
-{
+}: {
   imports = [
     ./sh.nix
     ./ghostty.nix
@@ -49,8 +47,8 @@
   home.packages = with pkgs; [
     # # Adds the 'hello':wq command to your environment. It prints a friendly
     # # "Hello, world!" when run.
-       audacity
-       mpc
+    audacity
+    mpc
     discord
     catppuccin-gtk
     inter
@@ -78,7 +76,6 @@
 
     skullNeovim.neovim
 
-
     # # It is sometimes useful to fine-tune packages, for example, by applying
     # # overrides. You can do that directly here, just don't forget the
     # # parentheses. Maybe you want to install Nerd Fonts with a limited number of
   # '';
   home.file = {
     ".config/swappy/config".text = ''
-               [Default]
-               save_dir=$HOME/Screenshots
-               save_filename_format=Screenshot-%Y%m%d-%H%M%S.png
-               show_panel=true
-               line_size=5
-               text_size=20
-               text_font=monospace
-               paint_mode=brush
-               early_exit=true
-               fill_shape=false
-               auto_save=true
-               transparent=true
-               transparency=50
-       '';
-
+      [Default]
+      save_dir=$HOME/Screenshots
+      save_filename_format=Screenshot-%Y%m%d-%H%M%S.png
+      show_panel=true
+      line_size=5
+      text_size=20
+      text_font=monospace
+      paint_mode=brush
+      early_exit=true
+      fill_shape=false
+      auto_save=true
+      transparent=true
+      transparency=50
+    '';
   };
 
   # Home Manager can also manage your environment variables through
 
   xdg.portal = {
     enable = true;
-    extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
+    extraPortals = [pkgs.xdg-desktop-portal-hyprland];
   };
 
   services.gnome-keyring = {
index e71dbe196820e456c21294c1c40c7d36e4d22ec7..aed9fd0a365df0bb1a60e327e47d9977392f5961 100644 (file)
@@ -1,31 +1,33 @@
-{lib, config, pkgs, ... }:
-let 
-        # workspaces
-        workspaces =builtins.concatLists (
-          builtins.genList (
-            i:
-            let
-              ws = i + 1;
-            in
-            [
-              "$mod, code:1${toString i}, workspace, ${toString ws}"
-              "$mod SHIFT, code:1${toString i}, movetoWorkspace, ${toString ws}"
-            ]
-          ) 10
-        );
-in
 {
+  lib,
+  config,
+  pkgs,
+  ...
+}: let
+  # workspaces
+  workspaces = builtins.concatLists (
+    builtins.genList (
+      i: let
+        ws = i + 1;
+      in [
+        "$mod, code:1${toString i}, workspace, ${toString ws}"
+        "$mod SHIFT, code:1${toString i}, movetoWorkspace, ${toString ws}"
+      ]
+    )
+    10
+  );
+in {
   wayland.windowManager.hyprland.settings = {
-
     "$mod" = "SUPER";
 
     bindm = [
-       "$mod, mouse:272, movewindow"
-       "$mod, mouse:273, resizewindow"
+      "$mod, mouse:272, movewindow"
+      "$mod, mouse:273, resizewindow"
     ];
-    bind = [
-       # compositor commands
-       "$mod SHIFT, E, exec, pkill Hyprland"
+    bind =
+      [
+        # compositor commands
+        "$mod SHIFT, E, exec, pkill Hyprland"
         "$mod, W, killactive,"
         "$mod, Q, killactive,"
         "$mod, F, fullscreen,"
@@ -55,42 +57,33 @@ in
         "$mod SHIFT, k, movewindow, u"
         "$mod SHIFT, j, movewindow, d"
 
-       
-
-      "$mod, D, exec, uwsm app -- ghostty"
-      "$mod, b, exec, brave"
-      "$mod, space, exec, pkill rofi || rofi -show drun"
-      "$mod, p, exec, pkill hyprpicker || hyprpicker -ar"
-      "$mod SHIFT, s, exec, pkill slurp || grim -g \"$(slurp)\" - | wl-copy"
-      ", PRINT, exec, pkill slurp swappy || grim -g \"$(slurp)\" - | swappy -f -"
-      ", XF86Explorer, exec, hyprlock"
-      ", F1, exec, hyprlock"
-      ", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ && notify-send 'Volume Up'"
-      ", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && notify-send 'Volume Down'"
-      ", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && notify-send 'Mute Toggled'"
-      ", XF86AudioNext, exec, playerctl next && notify-send 'Next Song'"
-      ", XF86AudioPrev, exec, playerctl previous && notify-send 'Previous Song'"
-      ", XF86AudioPlay, exec, playerctl play-pause && notify-send 'Pause/Play Toggled'"
-      ", XF86AudioStop, exec, playerctl stop && notify-send 'Music Stopped'"
-      ", F11, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ && notify-send 'Volume Up'"
-      ", F10, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && notify-send 'Volume Down'"
-      ", F9, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && notify-send 'Mute Toggled'"
-      ", F6, exec, playerctl next && notify-send 'Next Song'"
-      ", F5, exec, playerctl previous && notify-send 'Previous Song'"
-      ", F7, exec, playerctl play-pause && notify-send 'Pause/Play Toggled'"
-      ", F8, exec, playerctl stop && notify-send 'Music Stopped'"
-
-
-      ", F4, workspace, 3"
-      ", XF86Tools, workspace, 3"
-
-       
-
-    ] 
-++ workspaces;
-
-
-    };
-  }
-
+        "$mod, D, exec, uwsm app -- ghostty"
+        "$mod, b, exec, brave"
+        "$mod, space, exec, pkill rofi || rofi -show drun"
+        "$mod, p, exec, pkill hyprpicker || hyprpicker -ar"
+        "$mod SHIFT, s, exec, pkill slurp || grim -g \"$(slurp)\" - | wl-copy"
+        ", PRINT, exec, grim - | wl-copy"
+        "SHIFT, PRINT, exec, pkill slurp swappy || grim -g \"$(slurp)\" - | swappy -f -"
+        ", XF86Explorer, exec, hyprlock"
+        ", F1, exec, hyprlock"
+        ", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ && notify-send 'Volume Up'"
+        ", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && notify-send 'Volume Down'"
+        ", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && notify-send 'Mute Toggled'"
+        ", XF86AudioNext, exec, playerctl next && notify-send 'Next Song'"
+        ", XF86AudioPrev, exec, playerctl previous && notify-send 'Previous Song'"
+        ", XF86AudioPlay, exec, playerctl play-pause && notify-send 'Pause/Play Toggled'"
+        ", XF86AudioStop, exec, playerctl stop && notify-send 'Music Stopped'"
+        ", F11, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ && notify-send 'Volume Up'"
+        ", F10, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && notify-send 'Volume Down'"
+        ", F9, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && notify-send 'Mute Toggled'"
+        ", F6, exec, playerctl next && notify-send 'Next Song'"
+        ", F5, exec, playerctl previous && notify-send 'Previous Song'"
+        ", F7, exec, playerctl play-pause && notify-send 'Pause/Play Toggled'"
+        ", F8, exec, playerctl stop && notify-send 'Music Stopped'"
 
+        ", F4, workspace, 3"
+        ", XF86Tools, workspace, 3"
+      ]
+      ++ workspaces;
+  };
+}
diff --git a/impurities b/impurities
deleted file mode 100644 (file)
index 77e0d9f..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-wireplumber / pavucontrol
-under configuration, i had to set Navi 31 HDMI/DP Audio to be digital stereo HDMI 2 Output instead of HDMI 1 to make the monitor volume to work.
diff --git a/impurities.md b/impurities.md
new file mode 100644 (file)
index 0000000..93c4fdd
--- /dev/null
@@ -0,0 +1,12 @@
+# wireplumber / pavucontrol
+
+under configuration, i had to set Navi 31 HDMI/DP Audio to be digital stereo
+HDMI 2 Output instead of HDMI 1 to make the monitor volume to work.
+
+# fix: o spell file for "programming" in utf-8 Download it?
+
+vim.spellcheck.programmingWordlist.enable Whether to enable vim-dirtytalk, a
+wordlist for programmers containing common programming terms. Enabling this
+option will unconditionally set vim.spellcheck.enable to true as vim-dirtytalk
+depends on spellchecking having been set up. Run :DirtytalkUpdate on first use
+to download the spellfile.
index a6562d937bebbc48fd552c792d119b3df85d3dd5..7e7797c8867b547cced39cf84f8cc8e50ed3bc28 100644 (file)
@@ -1,4 +1,8 @@
-{inputs, pkgs, ...}: {
+{
+  inputs,
+  pkgs,
+  ...
+}: {
   config.vim = {
     viAlias = true;
     vimAlias = true;
       cheatsheet.enable = true;
     };
 
+    keymaps = [
+      {
+        mode = "n";
+        key = "<leader>?";
+        action = ":Cheatsheet<CR>";
+      }
+      {
+        mode = "n";
+        key = "<leader>e";
+        action = ":Neotree toggle<CR>";
+      }
+    ];
+
     telescope.enable = true;
 
     git = {
index 1c55a9007c99cefdc383168fcf07d6c9287d8fd5..7124fe8b58473d2320dfa92a069878891445065f 100644 (file)
@@ -1,5 +1,8 @@
-{ config, pkgs, ... }:
 {
+  config,
+  pkgs,
+  ...
+}: {
   programs.obsidian = {
     enable = true;
     defaultSettings = {
@@ -7,10 +10,9 @@
         showLineNumber = true;
         vimMode = true;
       };
-      cssSnippets = [
-        ./zoom.css
-      ];
-
+      #      cssSnippets = [
+      #        ./zoom.css
+      #      ];
     };
     vaults."Vault" = {
       enable = true;
@@ -18,5 +20,4 @@
       };
     };
   };
-
 }
index 4d8eb5637389811f73dfc5acaaa1821faea9e34e..648e4d99659738cf72fa6fec0f20dc9c817c2818 100644 (file)
--- a/tmux.nix
+++ b/tmux.nix
@@ -1,6 +1,8 @@
-{ config, pkgs, ... }:
-
 {
+  config,
+  pkgs,
+  ...
+}: {
   programs.tmux = {
     enable = true;
     shell = "${pkgs.fish}/bin/fish";
       unbind C-b
       bind C-a send-prefix
 
+        set -g default-terminal "screen-256color"
+        set -ga terminal-overrides ",xterm-256color:Tc"
+
       # Keybindings for easier navigation
       bind -n C-h select-pane -L
       bind -n C-j select-pane -D
       bind -n C-k select-pane -U
       bind -n C-l select-pane -R
 
+      bind-key -r d new-session -s dev
+      bind-key -r m new-session -s music
+      bind-key -r n new-session -s nixos
+
       # Fish-friendly clipboard integration
       set -g set-clipboard on
       bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
   };
 
   home.packages = with pkgs; [
-       tmux
-       xclip
+    tmux
+    xclip
   ];
 
-
   # Create session setup script
   home.file.".config/tmux/setup-sessions.sh" = {
     executable = true;
@@ -81,5 +89,5 @@
       # Attach to dev session by default
       tmux attach-session -t dev
     '';
-};
+  };
 }