Changed Desktop
This commit is contained in:
@@ -152,6 +152,13 @@
|
||||
interval = 60;
|
||||
tooltip = false;
|
||||
};
|
||||
|
||||
"custom/weather-side" = {
|
||||
format = "{}";
|
||||
exec = "curl -s 'wttr.in/52.281311,10.527029?format=1'";
|
||||
interval = 60;
|
||||
tooltip = false;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
17
home/hyprland/waybar/configs/side.css
Normal file
17
home/hyprland/waybar/configs/side.css
Normal file
@@ -0,0 +1,17 @@
|
||||
@import "mocha.css";
|
||||
|
||||
/* -- Global rules -- */
|
||||
* {
|
||||
border: none;
|
||||
font-family: "JetbrainsMono Nerd Font";
|
||||
font-size: 15px;
|
||||
min-height: 10px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: @crust;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
@@ -1,5 +1,6 @@
|
||||
{
|
||||
pkgs,
|
||||
monitorSetup,
|
||||
...
|
||||
}:
|
||||
{
|
||||
@@ -8,9 +9,27 @@
|
||||
package = pkgs.waybar;
|
||||
};
|
||||
|
||||
home.file.".config/waybar" = {
|
||||
source = ./configs;
|
||||
# copy the scripts directory recursively
|
||||
recursive = true;
|
||||
};
|
||||
home.file.".config/waybar/style.css" =
|
||||
if monitorSetup == "side" then
|
||||
{
|
||||
source = ./configs/side.css;
|
||||
}
|
||||
else
|
||||
{
|
||||
source = ./configs/style.css;
|
||||
};
|
||||
home.file.".config/waybar/cava.sh".source = ./configs/cava.sh;
|
||||
home.file.".config/waybar/mocha.css".source = ./configs/mocha.css;
|
||||
|
||||
/*
|
||||
home.file.".config/waybar" = {
|
||||
source = ./configs;
|
||||
# copy the scripts directory recursively
|
||||
recursive = true;
|
||||
};
|
||||
|
||||
home.file.".config/waybar/style.css" = lib.mkIf (monitorSetup == "side") {
|
||||
source = ./configs/side.css;
|
||||
};
|
||||
*/
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
let
|
||||
common = import ./common.nix;
|
||||
hyprland = import ./hyprland.nix;
|
||||
wm = import ./wm.nix;
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
@@ -17,13 +17,14 @@ in
|
||||
];
|
||||
modules-center = [
|
||||
"hyprland/workspaces"
|
||||
"niri/workspaces"
|
||||
];
|
||||
modules-right = [
|
||||
"group/hardware"
|
||||
];
|
||||
}
|
||||
// common.widgets
|
||||
// hyprland.widgets;
|
||||
// wm.widgets;
|
||||
|
||||
secondBar =
|
||||
{
|
||||
@@ -32,11 +33,14 @@ in
|
||||
height = 30;
|
||||
output = [ "HDMI-A-2" ];
|
||||
modules-left = [ "group/media" ];
|
||||
modules-center = [ "hyprland/workspaces" ];
|
||||
modules-center = [
|
||||
"hyprland/workspaces"
|
||||
"niri/workspaces"
|
||||
];
|
||||
modules-right = [ "custom/weather" ];
|
||||
}
|
||||
// common.widgets
|
||||
// hyprland.widgets;
|
||||
// wm.widgets;
|
||||
};
|
||||
|
||||
}
|
||||
|
36
home/hyprland/waybar/side.nix
Normal file
36
home/hyprland/waybar/side.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
let
|
||||
common = import ./common.nix;
|
||||
wm = import ./wm.nix;
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
settings = {
|
||||
mainBar =
|
||||
{
|
||||
layer = "top";
|
||||
position = "left";
|
||||
#height = 30;
|
||||
modules-left = [
|
||||
"custom/nixicon"
|
||||
"clock"
|
||||
"custom/cava"
|
||||
"mpris"
|
||||
"wireplumber"
|
||||
];
|
||||
modules-center = [
|
||||
"hyprland/workspaces"
|
||||
"niri/workspaces"
|
||||
];
|
||||
modules-right = [
|
||||
"custom/weather-side"
|
||||
"cpu"
|
||||
"network"
|
||||
"memory"
|
||||
"disk"
|
||||
"temperature"
|
||||
];
|
||||
}
|
||||
// common.widgets
|
||||
// wm.widgets;
|
||||
};
|
||||
}
|
@@ -1,6 +1,6 @@
|
||||
let
|
||||
common = import ./common.nix;
|
||||
hyprland = import ./hyprland.nix;
|
||||
wm = import ./wm.nix;
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
@@ -10,15 +10,6 @@ in
|
||||
layer = "top";
|
||||
position = "top";
|
||||
height = 30;
|
||||
/*
|
||||
Waybar should use every display available if not output is specified
|
||||
output = [
|
||||
"eDP-1"
|
||||
"DP-1"
|
||||
"HDMI-A-1"
|
||||
"Virtual-1"
|
||||
];
|
||||
*/
|
||||
modules-left = [
|
||||
"custom/nixicon"
|
||||
"clock"
|
||||
@@ -26,14 +17,14 @@ in
|
||||
];
|
||||
modules-center = [
|
||||
"hyprland/workspaces"
|
||||
"niri/workspaces"
|
||||
];
|
||||
modules-right = [
|
||||
"custom/weather"
|
||||
"group/hardware"
|
||||
];
|
||||
# Widget configurations
|
||||
}
|
||||
// common.widgets
|
||||
// hyprland.widgets;
|
||||
// wm.widgets;
|
||||
};
|
||||
}
|
||||
|
@@ -7,5 +7,13 @@
|
||||
active = "";
|
||||
};
|
||||
};
|
||||
|
||||
"niri/workspaces" = {
|
||||
format = "{icon}";
|
||||
format-icons = {
|
||||
default = "";
|
||||
active = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user