[Eww] Clean up shell scripts
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -12,8 +12,8 @@ handle_event() {
|
||||
}
|
||||
|
||||
list_workspaces() {
|
||||
focused=`hyprctl activeworkspace -j | jq '.id'`
|
||||
active=`hyprctl monitors -j | jq 'map(select(.name == "'$monitor'")) | .[0].activeWorkspace.id'`
|
||||
focused=$(hyprctl activeworkspace -j | jq '.id')
|
||||
active=$(hyprctl monitors -j | jq 'map(select(.name == "'$monitor'")) | .[0].activeWorkspace.id')
|
||||
# Explanation
|
||||
# 1. Select only workspaces on the current monitor.
|
||||
# 2. Remove duplicates (might be a bug with split-monitor-workspaces
|
||||
|
||||
Reference in New Issue
Block a user