[hyprland] Uses mainline packages, updates config as necessary
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
)
|
||||
|
||||
(defwindow primary-statusbar
|
||||
:monitor '[ "<primary>", "DP-2", 0 ]'
|
||||
:monitor '[ "<primary>", "DP-2", 1 ]'
|
||||
:geometry (geometry
|
||||
:x "0%"
|
||||
:y "0%"
|
||||
|
||||
@@ -18,15 +18,17 @@ list_workspaces() {
|
||||
# 1. Select only workspaces on the current monitor.
|
||||
# 2. Remove duplicates (might be a bug with split-monitor-workspaces
|
||||
# 3. Create the output structure
|
||||
# 4. Select interesting entries, ones that are focused, active or have windows
|
||||
# 5. Sort
|
||||
hyprctl workspaces -j | jq --compact-output --monochrome-output "
|
||||
map( select( .monitor | contains(\"${monitor}\") ) ) |
|
||||
reduce .[] as \$item ( []; if any( .[]; .id == \$item.id ) then . else . + [\$item] end ) |
|
||||
map( { id: .id, name, active: (.id == ${active}), focused: (.id == ${focused}), has_windows: (.lastwindowtitle != \"\") } ) |
|
||||
map( select (.active or .focused or .has_windows)) |
|
||||
sort_by(.id)
|
||||
"
|
||||
|
||||
# Other lines that may be useful in the future
|
||||
# - Select interesting entries, ones that are focused, active or have windows
|
||||
# map( select (.active or .focused or .has_windows))
|
||||
}
|
||||
|
||||
monitor=$1
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
)
|
||||
|
||||
(defwindow secondary-statusbar
|
||||
:monitor '[ "<secondary>", "DP-1" ]'
|
||||
:monitor '[ "<secondary>", "DP-1", "0" ]'
|
||||
:geometry (geometry
|
||||
:x "0px"
|
||||
:y "0px"
|
||||
|
||||
Reference in New Issue
Block a user