mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 14:12:41 +00:00
feat: Begins moving some scripts into a utils folder and using them as subcommands.
This commit is contained in:
10
env/.local/scripts/hypr/windowctl
vendored
10
env/.local/scripts/hypr/windowctl
vendored
@@ -1,6 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
THIS_FILE=${BASH_SOURCE[0]}
|
||||
THIS=$(basename $THIS_FILE)
|
||||
SCRIPTS=${SCRIPTS:-$HOME/.local/scripts}
|
||||
|
||||
usage() {
|
||||
cat <<EOF
|
||||
@@ -35,6 +37,12 @@ launched terminal, allowing you to launch with a specific mode turned on, any fl
|
||||
EOF
|
||||
}
|
||||
|
||||
if [[ "$1" == "close" ]]; then
|
||||
shift
|
||||
THIS="$THIS close" "$SCRIPTS/hypr/utils/windows/close-windows" "$@"
|
||||
exit $?
|
||||
fi
|
||||
|
||||
window_class="com.ghostty.$THIS"
|
||||
window_padding_x="10"
|
||||
|
||||
@@ -52,8 +60,6 @@ should_quit="0"
|
||||
launch_args=()
|
||||
selected_value=""
|
||||
|
||||
SCRIPTS=${SCRIPTS:-$HOME/.local/scripts}
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
if [[ $launch_flag == "1" ]]; then
|
||||
launch_args+=("$1")
|
||||
|
||||
Reference in New Issue
Block a user