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 2013-09-25 10:46:07 +0000

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-09-25 16:09:09 +0000

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.

edit flag offensive delete link more

Comments

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

nivieru gravatar imagenivieru ( 2013-09-26 10:01:39 +0000 )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 ( 2014-11-04 22:24:37 +0000 )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 ( 2014-11-04 22:27:51 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2013-09-25 10:46:07 +0000

Seen: 539 times

Last updated: Sep 25 '13