Adding icons to power menu.
This commit is contained in:
parent
30b652f400
commit
dac2d58209
1 changed files with 1 additions and 20 deletions
|
|
@ -5,8 +5,6 @@
|
|||
programs.hyprland = {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
# Pin to upstream Hyprland flake — 25.11's nixpkgs only has 0.52.1
|
||||
# and the resize-lag fix landed in 0.52.2.
|
||||
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||
};
|
||||
|
|
@ -63,15 +61,7 @@
|
|||
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
|
||||
settings = {
|
||||
# Use the EDID-native 180 Hz mode. 190 Hz is technically faster
|
||||
# but the OC mode doesn't advertise FreeSync — at 180 Hz we get
|
||||
# working VRR, which usually beats the +10 Hz on perceived
|
||||
# smoothness.
|
||||
monitor = "DP-2,3440x1440@180,0x0,1";
|
||||
|
||||
# FredOS-Gaming has both a Ryzen iGPU (card0, 1002:164E) and a
|
||||
# Navi 22 dGPU (card1, 1002:73DF). Force aquamarine + clients onto
|
||||
# the dGPU so we don't pay PRIME-copy latency every frame.
|
||||
env = [
|
||||
"AQ_DRM_DEVICES,/dev/dri/card1"
|
||||
"WLR_DRM_DEVICES,/dev/dri/card1"
|
||||
|
|
@ -95,9 +85,6 @@
|
|||
"$menu" = "fuzzel";
|
||||
|
||||
exec-once = [
|
||||
# waybar starts via its systemd user service — see programs.waybar
|
||||
# below — so it waits for graphical-session.target instead of
|
||||
# racing the Wayland init.
|
||||
"mako"
|
||||
"hyprpaper"
|
||||
"nm-applet --indicator"
|
||||
|
|
@ -116,9 +103,6 @@
|
|||
|
||||
decoration = {
|
||||
rounding = 8;
|
||||
# Blur disabled — two passes at 3440x1440 was the biggest
|
||||
# contributor to per-frame compositor latency. Re-enable with
|
||||
# smaller size/passes if you miss the look.
|
||||
blur = {
|
||||
enabled = true;
|
||||
};
|
||||
|
|
@ -348,7 +332,7 @@
|
|||
format = "⏻";
|
||||
tooltip = false;
|
||||
on-click = "${pkgs.writeShellScript "power-menu" ''
|
||||
choice=$(printf "Lock\nLogout\nReboot\nShutdown" \
|
||||
choice=$(printf " Lock\n Logout\n Reboot\n Shutdown" \
|
||||
| ${pkgs.fuzzel}/bin/fuzzel --dmenu --prompt="Power: " --lines=4 --width=12)
|
||||
case "$choice" in
|
||||
Lock) ${pkgs.hyprlock}/bin/hyprlock ;;
|
||||
|
|
@ -360,9 +344,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
# Colour tokens (@base00..@base0F) are injected by stylix's waybar
|
||||
# target. We reference them instead of hardcoded hex so the bar
|
||||
# follows the wallpaper-derived palette.
|
||||
style = ''
|
||||
* {
|
||||
font-family: "FiraMono Nerd Font", monospace;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue