add(hyprland): hyprbars
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
* fix: special workspace preload always loads first. Toggling it back is easy, but i'd rather create a new sh script that forces back to normal workspace.
|
||||
* add: similar to omarchy-menu
|
||||
* cleanup: stylix configurations and wallpaper
|
||||
* walker should have a script that initializes elephant if task does not exist.
|
||||
|
||||
@@ -16,5 +16,6 @@
|
||||
pkgs.hyprlandPlugins.hyprsplit
|
||||
pkgs.hyprlandPlugins.hypr-dynamic-cursors
|
||||
pkgs.hyprlandPlugins.hyprspace
|
||||
pkgs.hyprlandPlugins.hyprbars
|
||||
];
|
||||
}
|
||||
|
||||
@@ -37,6 +37,21 @@
|
||||
overview = {
|
||||
# Using default settings
|
||||
};
|
||||
|
||||
hyprbars = {
|
||||
bar_height = 24;
|
||||
bar_color = "$surface_container_high";
|
||||
bar_text_color = "$on_surface";
|
||||
bar_text_size = 0;
|
||||
bar_text_font = "Sans";
|
||||
bar_button_padding = 4;
|
||||
bar_padding = 8;
|
||||
bar_precedence_over_border = true;
|
||||
hyprbars-button = [
|
||||
"$error, 10, , hyprctl dispatch killactive"
|
||||
"$tertiary, 10, , hyprctl dispatch fullscreen 1"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -13,10 +13,10 @@
|
||||
|
||||
WINDOW_PATTERN="$1"
|
||||
# Escaped Nix interpolation for shell default value logic
|
||||
LAUNCH_COMMAND="''${2:- \"uwsm-app -- $WINDOW_PATTERN\"}"
|
||||
LAUNCH_COMMAND="''${2:- \"uwsm-app -- $WINDOW_PATTERN\"}"
|
||||
|
||||
# Locate window address via hyprctl and jq
|
||||
WINDOW_ADDRESS=$(${pkgs.hyprland}/bin/hyprctl clients -j | ${pkgs.jq}/bin/jq -r --arg p "$WINDOW_PATTERN"
|
||||
WINDOW_ADDRESS=$(${pkgs.hyprland}/bin/hyprctl clients -j | ${pkgs.jq}/bin/jq -r --arg p "$WINDOW_PATTERN"
|
||||
'.[] | select((.class | test("\\b" + $p + "\\b"; "i")) or (.title | test("\\b" + $p + "\\b"; "i"))) | .address' | head -n1)
|
||||
|
||||
if [[ -n $WINDOW_ADDRESS ]]; then
|
||||
@@ -119,7 +119,7 @@
|
||||
fi
|
||||
done
|
||||
fi
|
||||
) &
|
||||
) &
|
||||
|
||||
exit 0
|
||||
'';
|
||||
@@ -226,7 +226,7 @@ in {
|
||||
|
||||
"custom/omarchy" = {
|
||||
format = "";
|
||||
on-click = "omarchy-menu";
|
||||
on-click = "nc -U $XDG_RUNTIME_DIR/walker/walker.sock";
|
||||
on-click-right = "xdg-terminal-exec";
|
||||
tooltip-format = "Omarchy Menu\n\nSuper + Alt + Space";
|
||||
};
|
||||
@@ -328,4 +328,5 @@ in {
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user