feat: converted hyprland cofiguration to lua

This commit is contained in:
2026-05-26 23:53:52 -04:00
parent 8e2e5a06ef
commit 6dd5b8efa5
16 changed files with 592 additions and 6 deletions
+2 -1
View File
@@ -5,4 +5,5 @@ workspace=$(hyprctl activeworkspace -j | jq -r '.id')
selected=$(hyprctl clients -j | jq -r 'to_entries | .[] | select(.value.hidden == false) | "\(.value.title)\\\t\(.value.class)::\(.value.address)"' | $chooser -p 'Client to Fetch')
#address=$(hyprctl clients -j | jq -r "to_entries | .[] | select(.value.title == \"$selected\") | \"\(.value.address)\"")
address=$(echo "$selected" | awk -F '::' '{print $NF}')
hyprctl dispatch movetoworkspace "$workspace,address:$address"
#hyprctl dispatch movetoworkspace "$workspace,address:$address"
hyprctl dispatch "hl.dsp.window.move({workspace = $workspace, follow = true, window = \"address:$address\"})"
+4 -2
View File
@@ -6,5 +6,7 @@ address=$(echo $selected | awk -F'::' '{print $NF}')
#address=$(hyprctl clients -j | jq -r "to_entries | .[] | select(.value.title == '$selected') | \"\(.value.address)\"")
json=$(hyprctl clients -j | jq -r ".[] | select(.address == \"$address\")")
workspace=$(echo $json | jq -r '.workspace.id')
hyprctl dispatch focusworkspaceoncurrentmonitor "$workspace"
hyprctl dispatch focuswindow "address:$address"
hyprctl dispatch "hl.dsp.focus({workspace = $workspace , on_current_monitor = true})"
hyprctl dispatch "hl.dsp.focus({ window = \"address:$address\" })"
#hyprctl dispatch focusworkspaceoncurrentmonitor "$workspace"
#hyprctl dispatch focuswindow "address:$address"