some more desktop functionality
This commit is contained in:
		| @@ -22,6 +22,10 @@ | ||||
|     ]; | ||||
|   }; | ||||
|  | ||||
|   home.packages = [ | ||||
|     pkgs.fishPlugins.tide | ||||
|   ]; | ||||
|  | ||||
|   # sets the "default" shell to fish | ||||
|   # actually keeps bash as a posix-compliant default but starts fish if the shell is not bash | ||||
|   # See https://nixos.wiki/wiki/Fish | ||||
|   | ||||
| @@ -13,11 +13,24 @@ | ||||
|           "$mod, return, exec, walker" | ||||
|           "$mod_SHIFT, return, exec, kitty" | ||||
|           "$mod, s, exec, code" | ||||
|           "$mod, Q, killactive," # Close window | ||||
|           "$mod, T, togglefloating," # Toggle Floating | ||||
|  | ||||
|           "$mod, left, movefocus, l" # Move focus left | ||||
|           "$mod, right, movefocus, r" # Move focus Right | ||||
|           "$mod, up, movefocus, u" # Move focus Up | ||||
|           "$mod, down, movefocus, d" # Move focus Down | ||||
|           # "$shiftMod, up, focusmonitor, -1" # Focus previous monitor | ||||
|           # "$shiftMod, down, focusmonitor, 1" # Focus next monitor | ||||
|           # "$shiftMod, left, layoutmsg, addmaster" # Add to master | ||||
|           # "$shiftMod, right, layoutmsg, removemaster" # Remove from master | ||||
|         ]; | ||||
|       general = { | ||||
|         resize_on_border = true; | ||||
|         gaps_in = 5; | ||||
|         gaps_out = 5; | ||||
|         border_size = 1; | ||||
|         layout = "master"; | ||||
|       }; | ||||
|        | ||||
|       misc = { | ||||
| @@ -26,12 +39,31 @@ | ||||
|  | ||||
|       input = { | ||||
|         kb_layout = "de"; | ||||
|         kb_options = "caps:control"; | ||||
|         numlock_by_default = true; | ||||
|         # mouse input should be unchanged | ||||
|         natural_scroll = false; | ||||
|         touchpad = { | ||||
|           disable_while_typing = false; | ||||
|           natural_scroll = true; | ||||
|         }; | ||||
|       }; | ||||
|  | ||||
|       gestures = { | ||||
|         workspace_swipe = true; | ||||
|         workspace_swipe_fingers = 4; | ||||
|         workspace_swipe_touch = true; | ||||
|       }; | ||||
|      | ||||
|       decoration = { | ||||
|         rounding = 5; | ||||
|       }; | ||||
|       # plugin.virtual-desktops = {} | ||||
|  | ||||
|       monitor = [ | ||||
|         "eDP-1, highres, 0x0, 1.5" # the internal laptop monitor | ||||
|         ", preferred, auto, 1" # automatically add any newly detected monitor | ||||
|       ]; | ||||
|     }; | ||||
|  | ||||
|     plugins = [ | ||||
| @@ -46,21 +78,33 @@ | ||||
|   # the overlay makes this available as a home manager module | ||||
|   programs.hyprpanel = { | ||||
|     enable = true; | ||||
|     # autostart after hyprland | ||||
|     hyprland.enable = true; | ||||
|     overwrite.enable = true; | ||||
|     overlay.enable = true; | ||||
|      | ||||
|     theme = "monochrome"; | ||||
|  | ||||
|     settings = { | ||||
|       bar = { | ||||
|         clock.format = "%H:%M"; | ||||
|         clock.showIcon = false; | ||||
|         launcher.icon = "🚀"; | ||||
|         launcher.autoDetectIcon = true; | ||||
|         workspaces.show_icons = true; | ||||
|       }; | ||||
|     }; | ||||
|  | ||||
|     layout = { | ||||
|       "bar.layouts" = { | ||||
|         "*" = { | ||||
|           left = ["workspaces"]; | ||||
|           middle = ["clock"]; | ||||
|           right = ["volume" "systray" "nm-applet" "notifications" ]; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
|      | ||||
|      | ||||
|      | ||||
|     # Add custom widgets + styling | ||||
|   }; | ||||
|  | ||||
|  | ||||
|   | ||||
							
								
								
									
										11
									
								
								modules/home-manager/xdg-portals.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								modules/home-manager/xdg-portals.nix
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| {inputs, pkgs, ...}:  | ||||
| { | ||||
|   xdg.enable = true; | ||||
|  | ||||
|   xdg.portal = { | ||||
|     enable = true; | ||||
|     extraPortals = [ | ||||
|         pkgs.xdg-desktop-portal-gtk | ||||
|     ]; | ||||
|   }; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user