refactor(hypr): separated even mooore

This commit is contained in:
kenji
2026-01-02 12:26:36 -06:00
parent a2acedf2bb
commit d667dbdb91
10 changed files with 45 additions and 30 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
}: {
wayland.windowManager.hyprland.settings = {
exec-once = [
"uwsm app -- pywalfox start"
];
};
imports = [
+2
View File
@@ -14,6 +14,8 @@
./hypr/layers.nix
./scripts/movement.nix
# volume stuff
];
wayland.windowManager.hyprland.enable = true;
wayland.windowManager.hyprland.systemd.enable = false; # for UWSM support...
+1 -16
View File
@@ -1,24 +1,9 @@
{pkgs, ...}: {
services.swayosd.enable = true;
home.packages = [
pkgs.playerctl
];
wayland.windowManager.hyprland.settings = {
bindel = [
", XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise"
", XF86AudioLowerVolume, exec, swayosd-client --output-volume lower"
", XF86MonBrightnessUp, exec, ddcutil setvcp 10 + 10"
", XF86MonBrightnessDown, exec, ddcutil setvcp 10 - 10"
];
bindl = [
", XF86AudioMute, exec, swayosd-client --output-volume mute-toggle"
", Caps_Lock, exec, swayosd-client --caps-lock"
", XF86AudioPlay, exec, playerctl play-pause && notify-send -u low -t 1000 \"Media\" \"$(playerctl status)\""
", XF86AudioPrev, exec, playerctl previous && notify-send -u low -t 1000 \"Previous Track\" \"$(playerctl metadata title)\""
", XF86AudioNext, exec, playerctl next && notify-send -u low -t 1000 \"Next Track\" \"$(playerctl metadata title)\""
", XF86AudioMute, exec, swayosd-client --output-volume mute-toggle"
]; # FIXME: not working
bindm = [
"SUPER, mouse:272, movewindow"
"SUPER, mouse:273, resizewindow"
@@ -57,7 +42,7 @@
"SUPER, O, Toggle Split, layoutmsg, togglesplit"
# apps
"SUPER, W, Open Browser, exec, uwsm app -- firefox" # FIXME: must be xdg-open
"SUPER, W, Open Browser, exec, uwsm app -- firefox" # TODO: must be modular
# "SUPER, SPACE, Open App Launcher, exec, nc -U $XDG_RUNTIME_DIR/walker/walker.sock"
"SUPER, T, Toggle Steam, togglespecialworkspace, steam"
"SUPER, M, Toggle Music, togglespecialworkspace, music"
+2 -7
View File
@@ -9,7 +9,7 @@
wayland.windowManager.hyprland.settings = {
exec = [
# "pkill -x hyprpaper; uwsm app -- hyprpaper"
"matugen image ${config.home.homeDirectory}/.cache/current_wallpaper"
# "matugen image ${config.home.homeDirectory}/.cache/current_wallpaper"
];
exec-once = [
# essentials
@@ -20,14 +20,9 @@
# apps
"fcitx5 -d --replace"
"[workspace special:preload silent] sleep 4; uwsm app -- firefox"
"[workspace special:preload silent] uwsm app -- firefox; hakase-workspace-switch-force 1"
"[workspace special:preload silent] uwsm app -- xdg-terminal-exec"
"uwsm app -- swayosd-server"
"uwsm app -- pywalfox start"
# "sh -c 'sleep 3; hakase-workspace-switch-force 1'"
"[workspace 1] uwsm app -- ghostty -e bash -c 'fastfetch; exec $SHELL'"
"[workspace special:steam silent] uwsm app -- steam"
];
+2
View File
@@ -23,6 +23,8 @@
# Prevent Firefox and Terminal from stealing focus on launch
"suppressevent activate, workspace:special:preload"
"noinitialfocus, workspace:special:preload"
"suppressevent activate, class:^(firefox)$, workspace:special:preload"
"noinitialfocus, class:^(firefox)$, workspace:special:preload"
# --- STEAM RULES ---
"workspace special:steam silent, class:^(steam)$"
+13
View File
@@ -0,0 +1,13 @@
{pkgs, ...}: {
home.packages = [
pkgs.playerctl
];
wayland.windowManager.hyprland.settings = {
bindl = [
", XF86AudioPlay, exec, playerctl play-pause && notify-send -u low -t 1000 \"Media\" \"$(playerctl status)\""
", XF86AudioPrev, exec, playerctl previous && notify-send -u low -t 1000 \"Previous Track\" \"$(playerctl metadata title)\""
", XF86AudioNext, exec, playerctl next && notify-send -u low -t 1000 \"Next Track\" \"$(playerctl metadata title)\""
]; # FIXME: not working
};
}
+18
View File
@@ -0,0 +1,18 @@
{pkgs, ...}: {
services.swayosd.enable = true;
wayland.windowManager.hyprland.settings = {
exec-once = [
"uwsm app -- swayosd-server"
];
bindel = [
", XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise"
", XF86AudioLowerVolume, exec, swayosd-client --output-volume lower"
];
bindl = [
", XF86AudioMute, exec, swayosd-client --output-volume mute-toggle"
", Caps_Lock, exec, swayosd-client --caps-lock"
", XF86AudioMute, exec, swayosd-client --output-volume mute-toggle"
];
};
}
+1 -1
View File
@@ -231,7 +231,7 @@ in {
"custom/omarchy" = {
format = "";
on-click = "nc -U $XDG_RUNTIME_DIR/walker/walker.sock";
on-click = "vicinae toggle"; # TODO: add fallback
on-click-right = "xdg-terminal-exec";
tooltip-format = "Omarchy Menu\n\nSuper + Alt + Space";
};
-1
View File
@@ -5,7 +5,6 @@
../../apps/firefox
../../apps/loupe
../../apps/mako
../../apps/screenshot
# ../../apps/starship
];
}
+5 -4
View File
@@ -3,11 +3,12 @@
../../apps/hyprland
../../apps/hypridle
../../apps/hyprlock
../../apps/walker
../../apps/vicinae
# ../../apps/fsel
../../apps/hyprpaper
../../apps/screenshot
../../apps/vicinae
../../apps/tte
../../apps/swayosd
../../apps/playerctl
];
}