switch to rofi
This commit is contained in:
		
							parent
							
								
									0b04d298ac
								
							
						
					
					
						commit
						f7d596a488
					
				
					 6 changed files with 95 additions and 19 deletions
				
			
		
							
								
								
									
										76
									
								
								user/rofi.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										76
									
								
								user/rofi.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,76 @@ | |||
| { config, pkgs, lib, font, ... }: | ||||
| let inherit (import ./variables.nix) key theme color accent font; | ||||
| in { | ||||
|   config = { | ||||
|     programs.rofi = { | ||||
|       enable = true; | ||||
|       package = pkgs.rofi-wayland.override { plugins = [ pkgs.rofi-emoji ]; }; | ||||
|       extraConfig = { | ||||
|         show-icons = true; | ||||
|         modi = "drun,emoji"; | ||||
|         terminal = "alacritty"; | ||||
|         display-drun = "Iniciar: "; | ||||
| 
 | ||||
|         kb-primary-paste = "Control+V,Shift+Insert"; | ||||
|         kb-secondary-paste = "Control+v,Insert"; | ||||
|       }; | ||||
|       theme = let | ||||
|         # Use `mkLiteral` for string-like values that should show without | ||||
|         # quotes, e.g.: | ||||
|         # { | ||||
|         #   foo = "abc"; => foo: "abc"; | ||||
|         #   bar = mkLiteral "abc"; => bar: abc; | ||||
|         # }; | ||||
|         inherit (config.lib.formats.rasi) mkLiteral; | ||||
|       in { | ||||
|         "*" = { | ||||
|           # foreground-color = mkLiteral color.txt; | ||||
|           text-color = mkLiteral color.txt; | ||||
|           # background-color = mkLiteral color.bg; | ||||
|           background-color= mkLiteral  "transparent"; | ||||
|           # width = 512; | ||||
|         }; | ||||
| 
 | ||||
|         "#window" = { | ||||
|           background-color = mkLiteral "${color.bg}ee"; | ||||
|           # children = map mkLiteral [ "prompt" "entry" ]; | ||||
|           border = mkLiteral "2px solid"; | ||||
|           border-color = mkLiteral accent.color; | ||||
|           padding = 0; | ||||
|         }; | ||||
|         "#inputbar" = { margin = mkLiteral "10px"; }; | ||||
|         "#listview" = { | ||||
|           # fixed-height=0; | ||||
|           border = mkLiteral "2px solid 0px 0px"; | ||||
|           border-color = mkLiteral "@separatorcolor"; | ||||
|           # spacing= 0 ; | ||||
|         }; | ||||
| 
 | ||||
|         # "#textbox-prompt-colon" = { | ||||
|         #   expand = false; | ||||
|         #   str = ":"; | ||||
|         #   margin = mkLiteral "0px 0.3em 0em 0em"; | ||||
|         #   text-color = mkLiteral "@foreground-color"; | ||||
|         # }; | ||||
|         "#element" = { | ||||
|           # text-color = mkLiteral "#252525"; | ||||
|           background-color= mkLiteral "transparent"; | ||||
|           padding = mkLiteral "3px 10px"; | ||||
|         }; | ||||
|         "#element selected" = { | ||||
|           # text-color = mkLiteral "#252525"; | ||||
|           background-color = mkLiteral accent.color; | ||||
|         }; | ||||
|         element-icon=  { | ||||
|             # background-color= inherit; | ||||
|             # text-color=       inherit; | ||||
|             margin-right = mkLiteral "20px"; | ||||
|             size = 24; | ||||
|         }; | ||||
| 
 | ||||
| 
 | ||||
|       }; | ||||
| 
 | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue