]> Skullheadx's Git Forge - nixos.git/commitdiff
screenshot manager PRINT / SUPER+SHIFT+S
authorAndrew <admonty1@protonmail.com>
Fri, 22 Aug 2025 18:38:02 +0000 (14:38 -0400)
committerAndrew <admonty1@protonmail.com>
Fri, 22 Aug 2025 18:38:02 +0000 (14:38 -0400)
configuration.nix
home.nix
hyprland/binds.nix
waybar.nix

index 790532b8ac05640fedeb2e3daa47b201ccb5c515..13d3a6b37e1b12e0d9c0d722c5b4e242b740e990 100644 (file)
     nerd-fonts.jetbrains-mono
     nerd-fonts.fira-code
     nerd-fonts.droid-sans-mono
+       noto-fonts-color-emoji
   ];
+
+
+       security.rtkit.enable = true;
+       services.pipewire = {
+               enable = true;
+               audio.enable = true;
+               pulse.enable = true;
+               alsa.enable = true;
+       };
+       services.pipewire.wireplumber.enable = true;
+
+       hardware = {
+               opengl.enable = true;
+       };
+
   # Some programs need SUID wrappers, can be configured further or are
   # started in user sessions.
   # programs.mtr.enable = true;
index b25457daf3ff5533d32d3290a3de1fb7c2c86e44..602a2deacb61769f6a04078f726f8f28d0509836 100644 (file)
--- a/home.nix
+++ b/home.nix
        hyprgraphics
        hyprland-qtutils
 
+       helvum
+       pavucontrol
+
+       grim
+       slurp
+       swappy
+
+
+
     # # 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
   #   org.gradle.daemon.idletimeout=3600000
   # '';
   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
+       '';
 
   };
 
   #
   home.sessionVariables = {
     EDITOR = "neovim";
+    NIXOS_OZONE_WL = "1";
   };
 
   programs.brave.enable = true;
     extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
   };
        
-       
+       services.gnome-keyring = {
+               enable = true;
+               };
+
 services.hyprpolkitagent.enable = true;
        home.pointerCursor = {
                hyprcursor.enable = true;
index a73016b27a0771962224ae3f678aeb2ec4d737e3..d89f155576768bc866188bd1019e39c695d0d91f 100644 (file)
@@ -60,7 +60,9 @@ in
       "$mod, d, exec, ghostty"
       "$mod, b, exec, brave"
       "$mod, space, exec, pkill rofi || rofi -show drun"
-      "$mod, s, exec, pkill hyprpicker || hyprpicker -ar"
+      "$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'"
@@ -82,6 +84,8 @@ in
       ", F4, workspace, 3"
       ", XF86Tools, workspace, 3"
 
+       
+
     ] 
 ++ workspaces;
 
index 905dcd6028a772dd4bc70f1d4d5a9f69ac304669..cdc18b180b2da0442e93bfdba640863197a07af3 100644 (file)
@@ -5,8 +5,8 @@
 
     settings = [
       {
-        output = [ "DP-3" "DP-2"];
-       # height = 20; # Waybar height
+        output = [ "DP-3"];
+       #height = 24; # Waybar height
         spacing = 4; # Gaps between modules
        fixed-center = true;
 
         };
 
         mpris = {
-          format = " {status_icon} {dynamic}";
+          format = "  {status_icon} {dynamic}";
           interval = 1;
           dynamic-len = 40;
           dynamic-order = [
             "title"
             "artist"
           ];
-          ignored-players = [ "firefox" ];
+          ignored-players = [ "brave" ];
           status-icons = {
             playing = "▶";
             paused = "⏸";
               ""
             ];
           };
-          on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
+          #on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
+          on-click = "pavucontrol";
         };
       }
 
       # Bar for DP-2 only
       {
-        output = [];
+        output = [ "DP-2" ];
         #height = 24;
         spacing = 4;
 
 
 window#waybar {
     /* `otf-font-awesome` is required to be installed for icons */
-    font-family: FontAwesome, monospace;
+    font-family: jetbrains-mono, monospace;
     background-color: transparent;
     border-bottom: 0px;
     color: #ebdbb2;