1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-31 03:57:44 +00:00

Remove waybar & add eww

This commit is contained in:
RGBCube 2023-11-28 22:59:23 +03:00
parent 6359433991
commit 404f6b266f
No known key found for this signature in database
6 changed files with 9 additions and 163 deletions

2
.gitignore vendored
View file

@ -7,6 +7,7 @@
!machines/enka/discord/
!machines/enka/docker/
!machines/enka/dunst/
!machines/enka/eww/
!machines/enka/firefox/
!machines/enka/fuzzel/
!machines/enka/git/
@ -23,7 +24,6 @@
!machines/enka/python/
!machines/enka/steam/
!machines/enka/steck/
!machines/enka/waybar/
!themes/

View file

@ -21,6 +21,7 @@
./discord
./docker
./dunst
./eww
./firefox
./fuzzel
./git
@ -37,7 +38,6 @@
./python
./steam
./steck
./waybar
./fonts.nix
./localisation.nix

View file

@ -0,0 +1,7 @@
{ homeConfiguration, enabled, ... }:
homeConfiguration "nixos" {
programs.eww = enabled {
configDir = ./.;
};
}

View file

@ -19,8 +19,6 @@ let
workspace = 1, default: true, gapsout: 0, gapsin: 0, border: false, decorate: false
exec-once = systemctl --user stop waybar.service
exec-once = [workspace 1; fullscreen; noanim] ${pkgs.greetd.gtkgreet}/bin/gtkgreet --layer-shell --command Hyprland; ${hyprlandBin}}/bin/hyprctl dispatch exit
exec-once = ${hyprlandBin}/bin/hyprctl dispatch focuswindow gtkgreet

View file

@ -90,8 +90,6 @@
bind = SUPER, D, exec, discord
bind = SUPER, C, exec, hyprpicker --autocopy
bind = SUPER, B, exec, pkill --signal SIGUSR1 waybar
bind = SUPER, SPACE, exec, pkill fuzzel; fuzzel
bind = SUPER, V, exec, pkill fuzzel; cliphist list | fuzzel --dmenu | cliphist decode | wl-copy

View file

@ -1,157 +0,0 @@
{ upkgs, homeConfiguration, enabled, ... }:
homeConfiguration "nixos" {
programs.waybar = enabled {
systemd = enabled {};
settings = [{
layer = "top";
height = 30;
margin-right = 10;
margin-left = 10;
margin-top = 10;
modules-left = [
"hyprland/workspaces"
];
"hyprland/workspaces" = {
format = "{icon}";
format-icons.default = "";
format-icons.active = "";
persistent-workspaces."*" = 5;
};
modules-center = [
"hyprland/window"
];
"hyprland/window" = {
seperate-outputs = true;
rewrite."(.*) - Discord" = "󰙯$1";
rewrite."(.*) Mozilla Firefox" = "󰖟$1";
rewrite."(.*) nu" = "$1";
};
modules-right = [
"tray"
"pulseaudio"
"backlight"
"cpu"
"memory"
"network"
"battery"
"clock"
];
pulseaudio = {
format = "{format_source} {icon}{volume}%";
format-bluetooth = "{format_source} {icon}󰂯{volume}%";
format-bluetooth-muted = "{format_source} 󰝟{icon}󰂯";
format-muted = "{format_source} 󰝟";
format-source = "󰍬";
format-source-muted = "󰍭";
format-icons.headphone = "󰋋";
format-icons.headset = "󰋋";
format-icons.default = [
"󰕿"
"󰖀"
"󰕾"
];
};
backlight = {
format = "{icon}{percent}%";
format-icons = [
""
""
""
""
""
""
""
""
""
];
};
cpu.format = "{usage}%";
memory.format = "{}%";
network = {
format-disconnected = "󰤮";
format-ethernet = "󰈀{ipaddr}/{cidr}";
format-linked = "{ifname} (No IP)";
format-wifi = "{essid}{signalStrength}%";
};
battery = {
format = "{icon}{capacity}%";
format-charging = "󰂄{capacity}%";
format-plugged = "󰂄{capacity}%";
format-icons = [
"󰁺"
"󰁻"
"󰁼"
"󰁽"
"󰁾"
"󰁿"
"󰂀"
"󰂁"
"󰂂"
"󰁹"
];
states.warning = 30;
states.critical = 15;
};
clock = {
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
};
}];
style = with upkgs.theme.withHashtag; ''
* {
border: none;
border-radius: 0;
font-family: "OpenSans";
}
#waybar {
background: ${base00};
color: ${base05};
}
#waybar:hover {
border: 3px;
border-color: ${base0A};
}
#workspace-1 {
color: ${base08};
}
#workspace-2 {
color: ${base09};
}
#workspace-3 {
color: ${base0A};
}
#workspace-4 {
color: ${base0B};
}
#workspace-5 {
color: ${base0C};
}
'';
};
}