update niri config

This commit is contained in:
Leonardo Eugênio 2026-03-04 00:39:51 -03:00
parent d834ba70a0
commit 3207922b68
15 changed files with 495 additions and 58 deletions

View file

@ -8,11 +8,16 @@
if test "$argv[1]" = "run"
test -n "$argv[2]" && set t "$argv[2]" || set t "terminal"
exec j4-dmenu-desktop \
set -l launcher_args \
--dmenu="bmenu start -p Iniciar:" \
--term "$t" \
--i3-ipc \
--no-generic
if test -n "$SWAYSOCK"
set launcher_args $launcher_args --i3-ipc
end
exec j4-dmenu-desktop $launcher_args
end
if test -n "$SWAYSOCK"
@ -22,6 +27,13 @@ if test -n "$SWAYSOCK"
test -n "$focused_output"
and set focused_output "-m $focused_output"
else if test -n "$NIRI_SOCKET"
set -l focused_name (niri msg -j focused-output | jq -r '.name')
set -l focused_index (niri msg -j outputs | jq -r --arg focused "$focused_name" 'keys | index($focused)')
if test -n "$focused_index"; and test "$focused_index" != "null"
set focused_output "-m $focused_index"
end
end
set -l config "$HOME/.config/bmenu.conf"