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