mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 15:03:55 -05:00
waybar/sway: use special waybar css with sway
This commit is contained in:
parent
3c3f7604fa
commit
dab2d33585
|
@ -16,8 +16,9 @@
|
||||||
|
|
||||||
xdg.configFile."waybar/style.css".source = ./waybar.css;
|
xdg.configFile."waybar/style.css".source = ./waybar.css;
|
||||||
|
|
||||||
programs.waybar.enable = true;
|
programs.waybar = {
|
||||||
programs.waybar.settings = {
|
enable = true;
|
||||||
|
settings = {
|
||||||
mainBar = {
|
mainBar = {
|
||||||
height = 36;
|
height = 36;
|
||||||
layer = "top";
|
layer = "top";
|
||||||
|
@ -29,7 +30,6 @@
|
||||||
"tray"
|
"tray"
|
||||||
"bluetooth"
|
"bluetooth"
|
||||||
"pulseaudio"
|
"pulseaudio"
|
||||||
# "group/power"
|
|
||||||
"power-profiles-daemon"
|
"power-profiles-daemon"
|
||||||
"battery"
|
"battery"
|
||||||
"custom/logout"
|
"custom/logout"
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
"sort-by" = "id";
|
"sort-by" = "id";
|
||||||
};
|
};
|
||||||
"sway/mode" = {
|
"sway/mode" = {
|
||||||
"on-click" = "${pkgs.sway}/bin/swaymsg mode default";
|
"on-click" = "${config.wayland.windowManager.sway.package}/bin/swaymsg mode default";
|
||||||
};
|
};
|
||||||
"sway/window" = {
|
"sway/window" = {
|
||||||
"max-length" = 100;
|
"max-length" = 100;
|
||||||
|
@ -78,19 +78,6 @@
|
||||||
"interval" = 60;
|
"interval" = 60;
|
||||||
"format" = "{:%I:%M%p}";
|
"format" = "{:%I:%M%p}";
|
||||||
};
|
};
|
||||||
# "group/power" = {
|
|
||||||
# "orientation" = "inherit";
|
|
||||||
# "drawer" = {
|
|
||||||
# "transition-duration" = 500;
|
|
||||||
# "children-class" = "not-power";
|
|
||||||
# "transition-left-to-right" = false;
|
|
||||||
# };
|
|
||||||
# "modules" = [
|
|
||||||
# "battery"
|
|
||||||
# "power-profiles-daemon"
|
|
||||||
# "inhibitor"
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
"battery" = {
|
"battery" = {
|
||||||
"states" = {"critical" = 20;};
|
"states" = {"critical" = 20;};
|
||||||
"format" = "{icon}";
|
"format" = "{icon}";
|
||||||
|
@ -165,4 +152,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,11 +48,15 @@
|
||||||
|
|
||||||
services.cliphist.enable = lib.mkDefault true;
|
services.cliphist.enable = lib.mkDefault true;
|
||||||
|
|
||||||
programs.waybar.settings = {
|
programs.waybar = {
|
||||||
|
settings = {
|
||||||
mainBar = {
|
mainBar = {
|
||||||
modules-left = ["sway/workspaces" "sway/mode"];
|
modules-left = ["sway/workspaces" "sway/mode"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile."waybar/sway-style.css".source = ./waybar.css;
|
||||||
|
|
||||||
wayland.windowManager.sway.enable = true;
|
wayland.windowManager.sway.enable = true;
|
||||||
wayland.windowManager.sway.package = pkgs.swayfx;
|
wayland.windowManager.sway.package = pkgs.swayfx;
|
||||||
|
@ -67,7 +71,7 @@
|
||||||
terminal = pkgs.alacritty + "/bin/alacritty";
|
terminal = pkgs.alacritty + "/bin/alacritty";
|
||||||
|
|
||||||
# Sway desktop utilities
|
# Sway desktop utilities
|
||||||
bar = pkgs.waybar + "/bin/waybar";
|
bar = pkgs.waybar + "/bin/waybar -s ${config.xdg.configHome}/waybar/sway-style.css";
|
||||||
launcher = pkgs.fuzzel + "/bin/fuzzel";
|
launcher = pkgs.fuzzel + "/bin/fuzzel";
|
||||||
notifyd = pkgs.mako + "/bin/mako";
|
notifyd = pkgs.mako + "/bin/mako";
|
||||||
wallpaperd = pkgs.swaybg + "/bin/swaybg -i ~/.local/share/backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg";
|
wallpaperd = pkgs.swaybg + "/bin/swaybg -i ~/.local/share/backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg";
|
||||||
|
|
7
homeManagerModules/desktop/sway/waybar.css
Normal file
7
homeManagerModules/desktop/sway/waybar.css
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
@import url("style.css");
|
||||||
|
|
||||||
|
/* Style overrides for sway */
|
||||||
|
|
||||||
|
window#waybar {
|
||||||
|
background: rgba (35, 38, 52, 1.0);
|
||||||
|
}
|
Loading…
Reference in a new issue