mirror of
https://github.com/RGBCube/ncc
synced 2025-07-31 20:17:45 +00:00
parent
a9ac7fb5cd
commit
baf0a4a6f0
5 changed files with 163 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -24,6 +24,7 @@
|
||||||
!machines/enka/qt/
|
!machines/enka/qt/
|
||||||
!machines/enka/steam/
|
!machines/enka/steam/
|
||||||
!machines/enka/steck/
|
!machines/enka/steck/
|
||||||
|
!machines/enka/waybar/
|
||||||
|
|
||||||
!themes/
|
!themes/
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
./python
|
./python
|
||||||
./steam
|
./steam
|
||||||
./steck
|
./steck
|
||||||
|
./waybar
|
||||||
|
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
./localisation.nix
|
./localisation.nix
|
||||||
|
|
|
@ -19,6 +19,8 @@ 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,6 +90,8 @@
|
||||||
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
|
||||||
|
|
||||||
|
|
157
machines/enka/waybar/default.nix
Normal file
157
machines/enka/waybar/default.nix
Normal file
|
@ -0,0 +1,157 @@
|
||||||
|
{ 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