summaryrefslogtreecommitdiff
path: root/scripts/focus-sway
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2026-05-15 22:36:21 -0400
committerJack Jamison <jackqjamison@gmail.com>2026-05-15 22:36:21 -0400
commit1c58ccb7855719483490abe1982afa12b0488f24 (patch)
treed6d6f95477c743c1e2e8f4a64095d50cb491338c /scripts/focus-sway
parentfbe17d51cc2d52261721a46ee54d5dc8f32db3eb (diff)
refactor and battery notifier
Diffstat (limited to 'scripts/focus-sway')
-rwxr-xr-xscripts/focus-sway10
1 files changed, 0 insertions, 10 deletions
diff --git a/scripts/focus-sway b/scripts/focus-sway
deleted file mode 100755
index e3c63fb..0000000
--- a/scripts/focus-sway
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-# Get available windows
-windows=$(swaymsg -t get_tree | jq -r '.nodes[1].nodes[].nodes[] | .. | (.id|tostring) + " " + .name?' | grep -e "[0-9]* ." )
-
-# Select window with rofi
-selected=$(echo "$windows" | swenu -coil 10 | awk '{print $1}')
-
-# Tell sway to focus said window
-swaymsg [con_id="$selected"] focus