smashing panel rework
This commit is contained in:
@ -12,17 +12,17 @@
|
|||||||
];
|
];
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/tomorrow-night.yaml";
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/tomorrow.yaml";
|
||||||
polarity = "dark";
|
polarity = "light";
|
||||||
cursor = {
|
cursor = {
|
||||||
package = pkgs.google-cursor;
|
package = pkgs.bibata-cursors;
|
||||||
name = "GoogleDot-Blue";
|
name = "Bibata-Modern-Ice";
|
||||||
size = 24;
|
size = 24;
|
||||||
};
|
};
|
||||||
image = builtins.fetchurl {
|
image = builtins.fetchurl {
|
||||||
url = "https://w.wallhaven.cc/full/9m/wallhaven-9mwzwk.jpg";
|
url = "https://w.wallhaven.cc/full/d6/wallhaven-d6163o.jpg";
|
||||||
name = "wallhaven-9mwzwk";
|
name = "wallhaven-d6163o";
|
||||||
sha256 = "0pj2k30mfhqr02dzdj40z62awmy58s5gg5mm4xzxiialclbd5n8d";
|
sha256 = "c6d298be1520546c0440d64d1073e33a356043e2481a8a67e940d5262c0c2e28";
|
||||||
};
|
};
|
||||||
opacity.terminal = 0.9;
|
opacity.terminal = 0.9;
|
||||||
fonts = {
|
fonts = {
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
}: let
|
}: let
|
||||||
cfg = config.desktop.hyprland;
|
cfg = config.desktop.hyprland;
|
||||||
hostname = osConfig.networking.hostName;
|
hostname = osConfig.networking.hostName;
|
||||||
cursor_size = toString config.stylix.cursor.size;
|
cursor_size = config.stylix.cursor.size;
|
||||||
colors = config.lib.stylix.colors;
|
colors = config.lib.stylix.colors;
|
||||||
keyboard =
|
keyboard =
|
||||||
if hostname == "eldrid"
|
if hostname == "eldrid"
|
||||||
@ -24,6 +24,8 @@ in {
|
|||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
stylix.targets.waybar.enable = false;
|
stylix.targets.waybar.enable = false;
|
||||||
stylix.targets.hyprland.enable = false;
|
stylix.targets.hyprland.enable = false;
|
||||||
|
home.pointerCursor.hyprcursor.enable = true;
|
||||||
|
home.pointerCursor.hyprcursor.size = cursor_size;
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemd = {
|
systemd = {
|
||||||
@ -80,7 +82,7 @@ in {
|
|||||||
"ELECTRON_OZONE_PLATFORM_HINT,auto"
|
"ELECTRON_OZONE_PLATFORM_HINT,auto"
|
||||||
"QT_QPA_PLATFORM,wayland"
|
"QT_QPA_PLATFORM,wayland"
|
||||||
"QT_QPA_PLATFORMTHEME,gtk3"
|
"QT_QPA_PLATFORMTHEME,gtk3"
|
||||||
"XCURSOR_SIZE,${cursor_size}"
|
"XCURSOR_SIZE,${toString cursor_size}"
|
||||||
"GSK_RENDERER,ngl"
|
"GSK_RENDERER,ngl"
|
||||||
];
|
];
|
||||||
decoration = {
|
decoration = {
|
||||||
@ -426,6 +428,12 @@ in {
|
|||||||
"noblur, title:Картинка в картинці"
|
"noblur, title:Картинка в картинці"
|
||||||
"float, title:Картинка в картинці"
|
"float, title:Картинка в картинці"
|
||||||
"pin, title:Картинка в картинці"
|
"pin, title:Картинка в картинці"
|
||||||
|
# and firefox
|
||||||
|
"noborder, title:Picture-in-Picture"
|
||||||
|
"keepaspectratio, title:Picture-in-Picture"
|
||||||
|
"noblur, title:Picture-in-Picture"
|
||||||
|
"float, title:Picture-in-Picture"
|
||||||
|
"pin, title:Picture-in-Picture"
|
||||||
# screenshot editor
|
# screenshot editor
|
||||||
"noanim, class:com.gabm.satty"
|
"noanim, class:com.gabm.satty"
|
||||||
"float, class:com.gabm.satty"
|
"float, class:com.gabm.satty"
|
||||||
@ -508,7 +516,7 @@ in {
|
|||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
name = "Papirus";
|
name = "Papirus-Light";
|
||||||
package = pkgs.papirus-icon-theme;
|
package = pkgs.papirus-icon-theme;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -533,24 +541,30 @@ in {
|
|||||||
layer = "top";
|
layer = "top";
|
||||||
position = "bottom";
|
position = "bottom";
|
||||||
height = 40;
|
height = 40;
|
||||||
spacing = 6;
|
spacing = 4;
|
||||||
margin-left = 11;
|
margin-left = 11;
|
||||||
margin-right = 11;
|
margin-right = 11;
|
||||||
margin-bottom = 8;
|
# margin-bottom = 8;
|
||||||
reload_style_on_change = true;
|
reload_style_on_change = true;
|
||||||
modules-left = [
|
modules-left = [
|
||||||
#"custom/notification"
|
#"custom/notification"
|
||||||
"clock"
|
"hyprland/language"
|
||||||
|
"custom/separator"
|
||||||
|
"hyprland/workspaces"
|
||||||
|
"custom/separator"
|
||||||
"wlr/taskbar"
|
"wlr/taskbar"
|
||||||
];
|
];
|
||||||
modules-center = ["group/hypr" "custom/notification"];
|
# modules-center = [];
|
||||||
modules-right = [
|
modules-right = [
|
||||||
"privacy"
|
|
||||||
"tray"
|
|
||||||
"wireplumber"
|
"wireplumber"
|
||||||
(lib.mkIf (hostname != "dunamis")
|
(lib.mkIf (hostname != "dunamis") "group/laptop")
|
||||||
"group/laptop")
|
"custom/separator"
|
||||||
|
"tray"
|
||||||
|
"privacy"
|
||||||
"idle_inhibitor"
|
"idle_inhibitor"
|
||||||
|
"custom/notification"
|
||||||
|
"custom/separator"
|
||||||
|
"clock"
|
||||||
];
|
];
|
||||||
"hyprland/workspaces" = {
|
"hyprland/workspaces" = {
|
||||||
format = "{icon}";
|
format = "{icon}";
|
||||||
@ -582,17 +596,10 @@ in {
|
|||||||
format-uk = "🇺🇦";
|
format-uk = "🇺🇦";
|
||||||
};
|
};
|
||||||
"custom/separator" = {
|
"custom/separator" = {
|
||||||
format = "|";
|
format = "";
|
||||||
interval = "once";
|
interval = "once";
|
||||||
tooltip = false;
|
tooltip = false;
|
||||||
};
|
};
|
||||||
"group/hypr" = {
|
|
||||||
orientation = "inherit";
|
|
||||||
modules = [
|
|
||||||
"hyprland/language"
|
|
||||||
"hyprland/workspaces"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"group/laptop" = {
|
"group/laptop" = {
|
||||||
orientation = "inherit";
|
orientation = "inherit";
|
||||||
drawer = {
|
drawer = {
|
||||||
@ -603,8 +610,8 @@ in {
|
|||||||
modules = [
|
modules = [
|
||||||
"battery"
|
"battery"
|
||||||
"power-profiles-daemon"
|
"power-profiles-daemon"
|
||||||
"custom/separator"
|
# "custom/separator"
|
||||||
"custom/kbd-backlight"
|
# "custom/kbd-backlight"
|
||||||
"custom/separator"
|
"custom/separator"
|
||||||
"backlight"
|
"backlight"
|
||||||
"custom/separator"
|
"custom/separator"
|
||||||
@ -618,35 +625,19 @@ in {
|
|||||||
"idle_inhibitor" = {
|
"idle_inhibitor" = {
|
||||||
format = "{icon}";
|
format = "{icon}";
|
||||||
format-icons = {
|
format-icons = {
|
||||||
activated = "";
|
activated = "";
|
||||||
deactivated = "";
|
deactivated = "";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"tray" = {
|
"tray" = {
|
||||||
icon-size = 24;
|
icon-size = 24;
|
||||||
spacing = 3;
|
spacing = 2;
|
||||||
};
|
};
|
||||||
"clock" = {
|
"clock" = {
|
||||||
interval = 1;
|
interval = 1;
|
||||||
format = "{:%H:%M:%S}";
|
format = "{:%H:%M:%S}";
|
||||||
tooltip-format = "{:%d.%m.%Y}";
|
tooltip-format = "{:%d.%m.%Y}";
|
||||||
};
|
};
|
||||||
"custom/backlight" = {
|
|
||||||
format = "{}% {icon}";
|
|
||||||
interval = 1;
|
|
||||||
format-icons = [""];
|
|
||||||
exec = "sudo -u user -- ~/.local/bin/brightness.nu get-percentage";
|
|
||||||
on-scroll-up = "sudo -u user -- ~/.local/bin/brightness.nu increase 2";
|
|
||||||
on-scroll-down = "sudo -u user ~/.local/bin/brightness.nu decrease 2";
|
|
||||||
};
|
|
||||||
"custom/kbd-backlight" = {
|
|
||||||
exec = "~/.local/bin/keyboard-brightness.nu get-percentage";
|
|
||||||
interval = 1;
|
|
||||||
format = "{}% {icon}";
|
|
||||||
format-icons = [""];
|
|
||||||
on-scroll-up = "~/.local/bin/keyboard-brightness.nu increase";
|
|
||||||
on-scroll-down = "~/.local/bin/keyboard-brightness.nu decrease";
|
|
||||||
};
|
|
||||||
battery = {
|
battery = {
|
||||||
states = {
|
states = {
|
||||||
good = 95;
|
good = 95;
|
||||||
@ -703,7 +694,7 @@ in {
|
|||||||
escape = true;
|
escape = true;
|
||||||
};
|
};
|
||||||
"privacy" = {
|
"privacy" = {
|
||||||
# icon-spacing = 4;
|
icon-spacing = 2;
|
||||||
icon-size = 16;
|
icon-size = 16;
|
||||||
transition-duration = 250;
|
transition-duration = 250;
|
||||||
screenshare = {
|
screenshare = {
|
||||||
@ -752,21 +743,28 @@ in {
|
|||||||
|
|
||||||
window#waybar {
|
window#waybar {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
/* border-top: 3px solid @overlay0; */
|
|
||||||
color: @base05;
|
color: @base05;
|
||||||
/* padding: 0px 2px 0px 0px; */
|
|
||||||
transition-property: background-color;
|
transition-property: background-color;
|
||||||
transition-duration: 0.5s;
|
transition-duration: 0.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modules-left {
|
.modules-left {
|
||||||
border-radius: 16px;
|
border-top-left-radius: 16px;
|
||||||
}
|
border-top-right-radius: 16px;
|
||||||
.modules-center {
|
border-bottom-left-radius: 0px;
|
||||||
border-radius: 16px;
|
border-bottom-right-radius: 0px;
|
||||||
|
background-color: @base00;
|
||||||
|
color: @base05;
|
||||||
|
padding: 0 0.5em;
|
||||||
}
|
}
|
||||||
.modules-right {
|
.modules-right {
|
||||||
border-radius: 16px;
|
border-top-left-radius: 16px;
|
||||||
|
border-top-right-radius: 16px;
|
||||||
|
border-bottom-left-radius: 0px;
|
||||||
|
border-bottom-right-radius: 0px;
|
||||||
|
background-color: @base00;
|
||||||
|
color: @base05;
|
||||||
|
padding: 0 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
tooltip {
|
tooltip {
|
||||||
@ -776,16 +774,11 @@ in {
|
|||||||
tooltip label {
|
tooltip label {
|
||||||
color: @base05;
|
color: @base05;
|
||||||
}
|
}
|
||||||
/* .modules-center {
|
|
||||||
margin: 4px;
|
|
||||||
margin-top: 6px;
|
|
||||||
}*/
|
|
||||||
button {
|
button {
|
||||||
box-shadow: inset 0 -3px transparent;
|
box-shadow: inset 0 -3px transparent;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
|
||||||
button:hover {
|
button:hover {
|
||||||
background: inherit;
|
background: inherit;
|
||||||
box-shadow: inset 0 -3px transparent;
|
box-shadow: inset 0 -3px transparent;
|
||||||
@ -825,13 +818,12 @@ in {
|
|||||||
#upower,
|
#upower,
|
||||||
#mpris,
|
#mpris,
|
||||||
#mpd {
|
#mpd {
|
||||||
padding: 0 0.8em;
|
padding: 0;
|
||||||
border-radius: 16px;
|
|
||||||
color: @base05;
|
color: @base05;
|
||||||
background-color: @base00;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* #upower, */
|
/* #upower,
|
||||||
#battery,
|
#battery,
|
||||||
#backlight,
|
#backlight,
|
||||||
#custom-kbd-backlight,
|
#custom-kbd-backlight,
|
||||||
@ -842,29 +834,33 @@ in {
|
|||||||
#network,
|
#network,
|
||||||
#wireplumber,
|
#wireplumber,
|
||||||
#power-profiles-daemon {
|
#power-profiles-daemon {
|
||||||
padding-right: 0.8em;
|
padding-right: 0.1em;
|
||||||
|
} */
|
||||||
|
|
||||||
|
#custom-separator {
|
||||||
|
padding: 0 0.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#language {
|
|
||||||
padding-right: 0;
|
|
||||||
border-top-right-radius: 0;
|
|
||||||
border-bottom-right-radius: 0;
|
|
||||||
}
|
|
||||||
#workspaces {
|
#workspaces {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
border-top-left-radius: 0;
|
|
||||||
border-bottom-left-radius: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#taskbar,
|
#tray,
|
||||||
#idle_inhibitor,
|
#tray button,
|
||||||
#workspaces {
|
#privacy,
|
||||||
padding: 0 0.5em;
|
#idle_inhibitor {
|
||||||
|
padding: 0 0.2em;
|
||||||
}
|
}
|
||||||
#taskbar button,
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
padding: 0 0.2em;
|
padding: 0 0.2em;
|
||||||
}
|
}
|
||||||
|
#taskbar button {
|
||||||
|
padding: 0 0.1em;
|
||||||
|
}
|
||||||
|
#taskbar {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
#workspaces button.active {
|
#workspaces button.active {
|
||||||
color: @base0D;
|
color: @base0D;
|
||||||
}
|
}
|
||||||
@ -914,24 +910,6 @@ in {
|
|||||||
background-color: @base08;
|
background-color: @base08;
|
||||||
}
|
}
|
||||||
|
|
||||||
#idle_inhibitor {
|
|
||||||
padding: 0 0.9em;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#idle_inhibitor:hover {
|
|
||||||
box-shadow: inset 0 -3px @base05;
|
|
||||||
}
|
|
||||||
|
|
||||||
#idle_inhibitor.activated {
|
|
||||||
background-color: @base05;
|
|
||||||
color: @base00;
|
|
||||||
}
|
|
||||||
|
|
||||||
#idle_inhibitor.activated:hover {
|
|
||||||
box-shadow: inset 0 -3px @base00;
|
|
||||||
}
|
|
||||||
|
|
||||||
#laptop,
|
#laptop,
|
||||||
#privacy {
|
#privacy {
|
||||||
padding: 0em;
|
padding: 0em;
|
||||||
@ -957,14 +935,14 @@ in {
|
|||||||
settings = {
|
settings = {
|
||||||
drun-launch = true;
|
drun-launch = true;
|
||||||
anchor = "bottom";
|
anchor = "bottom";
|
||||||
width = "99%";
|
width = "50%";
|
||||||
height = 40;
|
height = 38;
|
||||||
padding-right = 6;
|
padding-right = 6;
|
||||||
padding-left = 6;
|
padding-left = 6;
|
||||||
padding-bottom = 2;
|
padding-bottom = 2;
|
||||||
padding-top = 2;
|
padding-top = 2;
|
||||||
margin-bottom = 8;
|
margin-bottom = 2;
|
||||||
border-width = 3;
|
border-width = 0;
|
||||||
corner-radius = 16;
|
corner-radius = 16;
|
||||||
outline-width = 0;
|
outline-width = 0;
|
||||||
min-input-width = 192;
|
min-input-width = 192;
|
||||||
|
Reference in New Issue
Block a user