Initial commit of bash scripts

This commit is contained in:
2026-06-05 23:49:54 -04:00
parent b7cf4a0224
commit 8e0e4dfc79
16 changed files with 519 additions and 70 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env zsh
set -x
current_window="$(hyprctl -j activewindow | jq --compact-output)"
current_addr=$(jq --raw-output '.address' <<< "${current_window}")
current_class=$(jq --raw-output '.class' <<< "${current_window}")
current_title=$(jq --raw-output '.title' <<< "${current_window}")
typeset -a workspaces
workspaces=("$(hyprctl -j workspaces | jq --raw-output --compact-output '.[] | .name')")
new_workspace_name="$(rofi -dmenu -p "Move window of ${current_class} with title '${current_title}' to which workspace? " <<< ${workspaces})"
hyprctl dispatch movetoworkspacesilent "${new_workspace_name}","address:${current_addr}"
set +x