-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I want to be able to have a hotkey shortcut to toggle a monocle mode, hiding all non-focused i3frya containers. This way, I can have a alternative to fullscreen mode, but keep my status bar (currently polybar) visible .
Ex. if i3fyra family is AC/BD (default) and Container C is focused: hide containers A, B and D.
@budRich Is this attainable inside i3fyra itself (e.g. i3monocle
or i3fyra --mono
?
Tried testing, but the container hiding doesn't work properly and below script keeps giving inconsistent results, what gives?
#!/usr/bin/env bash
declare -A i3list
eval "$(i3list)"
## hide i3fyra container 'twin', 'cousin' and 'sibling'
i3fyra --hide ${i3list[AFT]} && \
i3fyra --hide ${i3list[AFC]} && \
i3fyra --hide ${i3list[AFS]}
notify-send "i3fyra --hide ${i3list[AFT]}${i3list[AFT]}${i3list[AFS]}" "Monocle current container"
exit
P.S. notify-send returns:
i3fyra --hide DDA
Monocle current container
Metadata
Metadata
Assignees
Labels
No labels