feat(rofi): initial rofi configuration
This commit is contained in:
		
							parent
							
								
									2d83b0f10d
								
							
						
					
					
						commit
						81e37c40c0
					
				
					 4 changed files with 25 additions and 1 deletions
				
			
		|  | @ -3,11 +3,15 @@ | ||||||
| { | { | ||||||
|   imports = [ |   imports = [ | ||||||
|     ./anyrun |     ./anyrun | ||||||
|  |     ./rofi | ||||||
|   ]; |   ]; | ||||||
| 
 | 
 | ||||||
|   options.homeModules.desktop.wayland.launcher = { |   options.homeModules.desktop.wayland.launcher = { | ||||||
|     anyrun = { |     anyrun = { | ||||||
|       enable = lib.mkEnableOption "enable anyrun launcher module"; |       enable = lib.mkEnableOption "enable anyrun launcher module"; | ||||||
|     }; |     }; | ||||||
|  |     rofi = { | ||||||
|  |       enable = lib.mkEnableOption "enable rofi launcher module"; | ||||||
|  |     }; | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
							
								
								
									
										16
									
								
								home/modules/desktop/wayland/launcher/rofi/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								home/modules/desktop/wayland/launcher/rofi/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | ||||||
|  | { lib, config, pkgs, ... }: | ||||||
|  | 
 | ||||||
|  | let | ||||||
|  |   cfg = config.homeModules.desktop.wayland.launcher.rofi; | ||||||
|  | in | ||||||
|  | 
 | ||||||
|  | { | ||||||
|  |   config = lib.mkIf cfg.enable { | ||||||
|  |     programs.rofi = { | ||||||
|  |       enable = true; | ||||||
|  |       font = "${config.fontProfiles.monospace.family}"; | ||||||
|  |       package = pkgs.rofi-wayland; | ||||||
|  |     }; | ||||||
|  |   }; | ||||||
|  |    | ||||||
|  | } | ||||||
|  | @ -51,6 +51,7 @@ | ||||||
|     fi |     fi | ||||||
|     fi |     fi | ||||||
|   ''; |   ''; | ||||||
|  |    | ||||||
| in | in | ||||||
| 
 | 
 | ||||||
|   { |   { | ||||||
|  | @ -175,5 +176,8 @@ in | ||||||
|       "SUPER,          mouse:272,     movewindow" |       "SUPER,          mouse:272,     movewindow" | ||||||
|       "SUPER,          mouse:273,     resizewindow" |       "SUPER,          mouse:273,     resizewindow" | ||||||
|     ]; |     ]; | ||||||
|  |     bindr = [ | ||||||
|  |       "SUPER, SUPER_L, exec, killall rofi || run-as-service $(rofi -show drun)" | ||||||
|  |     ]; | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -16,7 +16,7 @@ in | ||||||
|         lockscreen.hyprlock.enable = true; |         lockscreen.hyprlock.enable = true; | ||||||
|         notification.mako.enable = true; |         notification.mako.enable = true; | ||||||
|         bar.waybar.enable = true; |         bar.waybar.enable = true; | ||||||
|         launcher.anyrun.enable = true; |         launcher.rofi.enable = true; | ||||||
|       }; |       }; | ||||||
|       communication = { |       communication = { | ||||||
|         discord.enable = true; |         discord.enable = true; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue