adding laptop checks
This commit is contained in:
		
							parent
							
								
									5bce22f990
								
							
						
					
					
						commit
						4fb17150a6
					
				
					 1 changed files with 16 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -1,5 +1,8 @@
 | 
			
		|||
{ config, lib, pkgs, ... }:
 | 
			
		||||
 | 
			
		||||
let
 | 
			
		||||
  laptop = builtins.readFile "/etc/hostname" == "syl\n";
 | 
			
		||||
in
 | 
			
		||||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./modules/hyprland.nix
 | 
			
		||||
| 
						 | 
				
			
			@ -270,9 +273,9 @@
 | 
			
		|||
      mainBar = {
 | 
			
		||||
        layer = "top";
 | 
			
		||||
        output = ["DP-1" "eDP-1"];
 | 
			
		||||
        position = "bottom";
 | 
			
		||||
        position = if laptop then "bottom" else "top";
 | 
			
		||||
        height = 35;
 | 
			
		||||
        width = 1400;
 | 
			
		||||
        width = if laptop then 1300 else 1100;
 | 
			
		||||
        # Choose the order of the modules "custom/wintitle", 
 | 
			
		||||
        modules-left = ["hyprland/workspaces" "hyprland/window"];
 | 
			
		||||
        modules-center = ["clock"];
 | 
			
		||||
| 
						 | 
				
			
			@ -375,6 +378,7 @@
 | 
			
		|||
            default = ["" "" ""];
 | 
			
		||||
          };
 | 
			
		||||
          on-click = "alacritty --class pulsemixer -e pulsemixer";
 | 
			
		||||
          ignored-sinks = ["Easy Effects Sink"];
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
| 
						 | 
				
			
			@ -422,11 +426,20 @@ window#waybar > box {
 | 
			
		|||
    padding-left: 3px;
 | 
			
		||||
    padding-right: 10px;
 | 
			
		||||
    color:      @base05;
 | 
			
		||||
    box-shadow: 5px 5px 3px 3px #101010;
 | 
			
		||||
    box-shadow: 5px 5px 4px 4px #202020;
 | 
			
		||||
    margin: 12px 14px 14px 14px;
 | 
			
		||||
    background: @backtransparent;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
tooltip {
 | 
			
		||||
  background: @base00;
 | 
			
		||||
  border: 1px solid @base0D;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
tooltip label {
 | 
			
		||||
  padding: 10px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#workspaces {
 | 
			
		||||
    border-radius: 20px;
 | 
			
		||||
    margin-left: 10px;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue