mirror of
https://github.com/RGBCube/ncc
synced 2025-08-01 12:37:46 +00:00
Remove waybar & add eww
This commit is contained in:
parent
6359433991
commit
404f6b266f
6 changed files with 9 additions and 163 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -7,6 +7,7 @@
|
||||||
!machines/enka/discord/
|
!machines/enka/discord/
|
||||||
!machines/enka/docker/
|
!machines/enka/docker/
|
||||||
!machines/enka/dunst/
|
!machines/enka/dunst/
|
||||||
|
!machines/enka/eww/
|
||||||
!machines/enka/firefox/
|
!machines/enka/firefox/
|
||||||
!machines/enka/fuzzel/
|
!machines/enka/fuzzel/
|
||||||
!machines/enka/git/
|
!machines/enka/git/
|
||||||
|
@ -23,7 +24,6 @@
|
||||||
!machines/enka/python/
|
!machines/enka/python/
|
||||||
!machines/enka/steam/
|
!machines/enka/steam/
|
||||||
!machines/enka/steck/
|
!machines/enka/steck/
|
||||||
!machines/enka/waybar/
|
|
||||||
|
|
||||||
!themes/
|
!themes/
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
./discord
|
./discord
|
||||||
./docker
|
./docker
|
||||||
./dunst
|
./dunst
|
||||||
|
./eww
|
||||||
./firefox
|
./firefox
|
||||||
./fuzzel
|
./fuzzel
|
||||||
./git
|
./git
|
||||||
|
@ -37,7 +38,6 @@
|
||||||
./python
|
./python
|
||||||
./steam
|
./steam
|
||||||
./steck
|
./steck
|
||||||
./waybar
|
|
||||||
|
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
./localisation.nix
|
./localisation.nix
|
||||||
|
|
7
machines/enka/eww/default.nix
Normal file
7
machines/enka/eww/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ homeConfiguration, enabled, ... }:
|
||||||
|
|
||||||
|
homeConfiguration "nixos" {
|
||||||
|
programs.eww = enabled {
|
||||||
|
configDir = ./.;
|
||||||
|
};
|
||||||
|
}
|
|
@ -19,8 +19,6 @@ let
|
||||||
|
|
||||||
workspace = 1, default: true, gapsout: 0, gapsin: 0, border: false, decorate: false
|
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 = [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
|
exec-once = ${hyprlandBin}/bin/hyprctl dispatch focuswindow gtkgreet
|
||||||
|
|
|
@ -90,8 +90,6 @@
|
||||||
bind = SUPER, D, exec, discord
|
bind = SUPER, D, exec, discord
|
||||||
bind = SUPER, C, exec, hyprpicker --autocopy
|
bind = SUPER, C, exec, hyprpicker --autocopy
|
||||||
|
|
||||||
bind = SUPER, B, exec, pkill --signal SIGUSR1 waybar
|
|
||||||
|
|
||||||
bind = SUPER, SPACE, exec, pkill fuzzel; fuzzel
|
bind = SUPER, SPACE, exec, pkill fuzzel; fuzzel
|
||||||
bind = SUPER, V, exec, pkill fuzzel; cliphist list | fuzzel --dmenu | cliphist decode | wl-copy
|
bind = SUPER, V, exec, pkill fuzzel; cliphist list | fuzzel --dmenu | cliphist decode | wl-copy
|
||||||
|
|
||||||
|
|
|
@ -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};
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue