feat(hyprland): Refactor workspaces and add blur effect
Refactor Hyprland configuration to: - Move Steam and Music from special workspaces to unique, named workspaces for better integration into the regular workflow. - Update Waybar's workspace module to correctly display icons for these new named workspaces and filter them out from the special workspaces module. - Implement a global blur effect for inactive windows, with a specific exception to keep Firefox windows fully opaque, enhancing focus on active content.
This commit is contained in:
@@ -61,22 +61,26 @@ in {
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
workspace = [
|
||||
"name:gaming, monitor:0, default:true"
|
||||
"name:steam, monitor:0, default:true"
|
||||
];
|
||||
|
||||
exec-once = [
|
||||
"[workspace special:steam silent] uwsm app -- steam"
|
||||
# No longer launching steam on startup
|
||||
# "[workspace special:steam silent] uwsm app -- steam"
|
||||
];
|
||||
|
||||
bindd = [
|
||||
"SUPER, A, Toggle Steam, togglespecialworkspace, steam"
|
||||
"SUPER SHIFT, A, Move to Steam Special Workspace, movetoworkspace, special:steam"
|
||||
# "SUPER, A, Toggle Steam, togglespecialworkspace, steam"
|
||||
# "SUPER SHIFT, A, Move to Steam Special Workspace, movetoworkspace, special:steam"
|
||||
"SUPER, G, Switch to Gaming Workspace, workspace, name:gaming"
|
||||
"SUPER, A, Switch to Steam Workspace, workspace, name:steam"
|
||||
];
|
||||
|
||||
windowrulev2 =
|
||||
[
|
||||
# --- STEAM LAUNCHER RULES ---
|
||||
"workspace special:steam silent, class:^(steam)$"
|
||||
"workspace name:steam, class:^(steam)$"
|
||||
# "workspace special:steam silent, class:^(steam)$"
|
||||
"noinitialfocus, class:^(steam)$"
|
||||
"suppressevent activate, class:^(steam)$"
|
||||
]
|
||||
|
||||
@@ -34,22 +34,22 @@ in {
|
||||
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
workspace = [
|
||||
"special:music, on-created-empty:hakase-music-launch"
|
||||
"name:music, on-created-empty:hakase-music-launch"
|
||||
];
|
||||
|
||||
bindd = [
|
||||
"SUPER, M, Toggle Music, togglespecialworkspace, music"
|
||||
"SUPER SHIFT, M, Move to Music Special Workspace, movetoworkspace, special:music"
|
||||
"SUPER, M, Switch to Music, workspace, name:music"
|
||||
"SUPER SHIFT, M, Move to Music Workspace, movetoworkspace, name:music"
|
||||
];
|
||||
|
||||
windowrulev2 = [
|
||||
# --- MUSIC RULES (Jellyfin-TUI) ---
|
||||
"workspace special:music silent, title:^(jellyfin-tui)$"
|
||||
"workspace special:music silent, initialTitle:^(jellyfin-tui)$"
|
||||
"workspace name:music silent, title:^(jellyfin-tui)$"
|
||||
"workspace name:music silent, initialTitle:^(jellyfin-tui)$"
|
||||
|
||||
# --- CAVA RULES ---
|
||||
"workspace special:music silent, title:^(cava)$"
|
||||
"workspace special:music silent, initialTitle:^(cava)$"
|
||||
"workspace name:music silent, title:^(cava)$"
|
||||
"workspace name:music silent, initialTitle:^(cava)$"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user