This commit is contained in:
ediblerope 2026-05-14 10:04:34 +01:00
parent c81c9b8a94
commit 857b145df6

View file

@ -118,7 +118,7 @@ in
"$mod" = "SUPER"; "$mod" = "SUPER";
"$term" = "ghostty"; "$term" = "ghostty";
"$menu" = "killall anyrun || anyrun"; "$menu" = "rofi -show drun";
exec-once = [ exec-once = [
"mako" "mako"
@ -283,63 +283,15 @@ in
}; };
}; };
programs.anyrun = { programs.rofi = {
enable = true; enable = true;
config = { package = pkgs.rofi-wayland;
plugins = [ "${pkgs.anyrun}/lib/libapplications.so" ]; terminal = "${pkgs.ghostty}/bin/ghostty";
x.fraction = 0.5; extraConfig = {
y.fraction = 0.5; show-icons = true;
width.fraction = 0.3; location = 0;
height.absolute = 0; hide-scrollbar = true;
margin = 16;
hideIcons = false;
ignoreExclusiveZones = false;
layer = "overlay";
hidePluginInfo = true;
closeOnClick = true;
maxEntries = 8;
}; };
extraCss =
let c = config.lib.stylix.colors; in
''
* { all: unset; font-family: "FiraMono Nerd Font", monospace; font-size: 13px; }
window { background: transparent; }
box.main {
background: #${c.base00};
border: 1px solid #${c.base03};
border-radius: 10px;
padding: 8px;
margin: 16px;
}
text {
background: #${c.base01};
color: #${c.base05};
caret-color: #${c.base0D};
padding: 8px 16px;
border-radius: 6px;
min-height: 0;
}
list.plugin { background: transparent; }
.matches { background: transparent; }
.match {
padding: 4px 16px;
border-radius: 6px;
color: #${c.base05};
background: transparent;
}
.match:selected {
background: #${c.base02};
border: none;
}
label.match.description { color: #${c.base04}; font-size: 11px; }
'';
extraConfigFiles."applications.ron".text = ''
Config(
desktop_actions: false,
max_entries: Some(8),
terminal: Some("ghostty"),
)
'';
}; };
# Scope all HM Wayland services (hyprpaper, waybar, …) to the # Scope all HM Wayland services (hyprpaper, waybar, …) to the
@ -408,17 +360,13 @@ in
format = ""; format = "";
tooltip = false; tooltip = false;
on-click = "${pkgs.writeShellScript "power-menu" '' on-click = "${pkgs.writeShellScript "power-menu" ''
choice=$(printf " Lock\n Logout\n Reboot\n Shutdown" \ choice=$(printf "Lock\nLogout\nReboot\nShutdown" \
| ${pkgs.anyrun}/bin/anyrun \ | ${pkgs.rofi-wayland}/bin/rofi -dmenu -p "Power")
--plugins "${pkgs.anyrun}/lib/libstdin.so" \
--show-results-immediately true \
--hide-plugin-info true \
--close-on-click true)
case "$choice" in case "$choice" in
*Lock) ${pkgs.hyprlock}/bin/hyprlock ;; Lock) ${pkgs.hyprlock}/bin/hyprlock ;;
*Logout) hyprctl dispatch exit ;; Logout) hyprctl dispatch exit ;;
*Reboot) systemctl reboot ;; Reboot) systemctl reboot ;;
*Shutdown) systemctl poweroff ;; Shutdown) systemctl poweroff ;;
esac esac
''}"; ''}";
}; };