The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

how to close nagbar (without using the mouse) ?

asked Sep 25 '13

nivieru gravatar image

I added a 'hibernate' button to the exit-i3 nagbar menu, but when the laptop comes back from hibernation, the nagbar is still waiting there, and I need to close it with the mouse. Is there any way to make it go after one of its buttons is pressed? or with a bindsym?

Thanks

1 answer

Sort by » oldest newest most voted
0

answered Sep 25 '13

Michael gravatar image

No, and that is intentional. Its purpose is to nag you.

You should not use i3-nagbar for any customization, like the hibernate button you added. Please use a different solution (e.g. dmenu) for such things.

Comments

Thanks for the tip,with dmenu it works great, no need to use the mouse.

nivieru gravatar imagenivieru (Sep 26 '13)edit

@Michael, I just saw your comment after a lot of work. Is there any risk or something to use i3-nagbar to custom alerts/warnings? I made buttons to lock, logoff, suspend, save and exit, restart and shutdown. Found this way easier than a bind for each action. Bellow my config:

0xleone gravatar image0xleone (Nov 4 '14)edit

bindsym $mod+$aux+e exec "i3-nagbar -t warning -m 'What do you want?' -b 'Shutdown' $shutdown -b 'Restart' $restart -b 'Suspend' $suspend -b 'Save Session and Exit' '' -b 'Logoff' 'i3-msg exit' -b 'Lock' $lock" All variables are commands with ' '.

0xleone gravatar image0xleone (Nov 4 '14)edit

Question Tools

1 follower

Stats

Asked: Sep 25 '13

Seen: 539 times

Last updated: Sep 25 '13