mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 09:53: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;
|
||||
|
||||
programs.waybar.enable = true;
|
||||
programs.waybar.settings = {
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
settings = {
|
||||
mainBar = {
|
||||
height = 36;
|
||||
layer = "top";
|
||||
|
@ -29,7 +30,6 @@
|
|||
"tray"
|
||||
"bluetooth"
|
||||
"pulseaudio"
|
||||
# "group/power"
|
||||
"power-profiles-daemon"
|
||||
"battery"
|
||||
"custom/logout"
|
||||
|
@ -62,7 +62,7 @@
|
|||
"sort-by" = "id";
|
||||
};
|
||||
"sway/mode" = {
|
||||
"on-click" = "${pkgs.sway}/bin/swaymsg mode default";
|
||||
"on-click" = "${config.wayland.windowManager.sway.package}/bin/swaymsg mode default";
|
||||
};
|
||||
"sway/window" = {
|
||||
"max-length" = 100;
|
||||
|
@ -78,19 +78,6 @@
|
|||
"interval" = 60;
|
||||
"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" = {
|
||||
"states" = {"critical" = 20;};
|
||||
"format" = "{icon}";
|
||||
|
@ -165,4 +152,5 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -48,11 +48,15 @@
|
|||
|
||||
services.cliphist.enable = lib.mkDefault true;
|
||||
|
||||
programs.waybar.settings = {
|
||||
programs.waybar = {
|
||||
settings = {
|
||||
mainBar = {
|
||||
modules-left = ["sway/workspaces" "sway/mode"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
xdg.configFile."waybar/sway-style.css".source = ./waybar.css;
|
||||
|
||||
wayland.windowManager.sway.enable = true;
|
||||
wayland.windowManager.sway.package = pkgs.swayfx;
|
||||
|
@ -67,7 +71,7 @@
|
|||
terminal = pkgs.alacritty + "/bin/alacritty";
|
||||
|
||||
# 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";
|
||||
notifyd = pkgs.mako + "/bin/mako";
|
||||
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