Add initial ironbar
This commit is contained in:
		
							parent
							
								
									f051d864a7
								
							
						
					
					
						commit
						bf5e7e9636
					
				
					 9 changed files with 120 additions and 0 deletions
				
			
		
							
								
								
									
										13
									
								
								modules/ironbar/config.corn
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								modules/ironbar/config.corn
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,13 @@
 | 
			
		|||
{
 | 
			
		||||
  position = "left"
 | 
			
		||||
 | 
			
		||||
  margin = {
 | 
			
		||||
    top = 3
 | 
			
		||||
    bottom = 3
 | 
			
		||||
    right = 5
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  start = [
 | 
			
		||||
    { type = "workspaces" }
 | 
			
		||||
  ]
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										16
									
								
								modules/ironbar/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								modules/ironbar/default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,16 @@
 | 
			
		|||
{ system, inputs, config, lib, impurity, ... }: {
 | 
			
		||||
  home-manager.users.${config.main-user} = {
 | 
			
		||||
    imports = [ inputs.ironbar.homeManagerModules.default ];
 | 
			
		||||
 | 
			
		||||
    programs.ironbar = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      package = inputs.ironbar.packages.${system}.default;
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    xdg.configFile = {
 | 
			
		||||
      "ironbar/config.json".enable = false;
 | 
			
		||||
      "ironbar/config.corn".source = (impurity.link ./config.corn);
 | 
			
		||||
      "ironbar/style.css".source = (impurity.link ./style.css);
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										47
									
								
								modules/ironbar/style.css
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								modules/ironbar/style.css
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,47 @@
 | 
			
		|||
* {
 | 
			
		||||
		background: transparent;
 | 
			
		||||
		border: none;
 | 
			
		||||
		padding: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.background {
 | 
			
		||||
		background-color: rgba(0x00, 0x10, 0x17, 0.4);
 | 
			
		||||
 | 
			
		||||
		border-width: 2px;
 | 
			
		||||
		border-style: solid;
 | 
			
		||||
		border-left-width: 0;
 | 
			
		||||
		border-radius: 10px;
 | 
			
		||||
		border-top-left-radius: 0;
 | 
			
		||||
		border-bottom-left-radius: 0;
 | 
			
		||||
		border-color: rgba(0x59, 0x59, 0x59, 0.7);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#bar {
 | 
			
		||||
		margin: 7px;
 | 
			
		||||
		margin-left: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.popup {
 | 
			
		||||
		margin-left: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.workspaces > .item {
 | 
			
		||||
		padding: 4px 0;
 | 
			
		||||
		border-radius: 0;
 | 
			
		||||
		border-left-width: 4px;
 | 
			
		||||
		border-style: solid;
 | 
			
		||||
		border-color: transparent;
 | 
			
		||||
		padding-right: 4px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.workspaces > .item.focused {
 | 
			
		||||
		border-color: rgba(0x59, 0x59, 0x59, 0.5);
 | 
			
		||||
		background-color: rgba(0xff, 0xff, 0xff, 0.1);
 | 
			
		||||
		border-top-right-radius: 5px;
 | 
			
		||||
		border-bottom-right-radius: 5px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.clock {
 | 
			
		||||
		border-radius: 0;
 | 
			
		||||
		box-shadow: none;
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue