This is easy.
Just edit fluxbox "keys" inserting a line like that:
Mod4 x :CustomMenu "path-to-menu"
Of course the menu you're pointing at must exist in ~/.fluxbox.
In my case, I've done that:
$ touch /home/pibarnas/.fluxbox/sair
$ echo "[begin] (Sair) \n \t [exit] (Sair) {Exit} \n \t [exec] (Desligar) {/sbin/shutdown -h now} \n \t [exec] (Reiniciar) {/sbin/shutdown -r now} \n [end]" > /home/pibarnas/.fluxbox/sair
$ cat /home/pibarnas/.fluxbox/sair
[begin] (Sair)
[exit] (Sair) {Exit}
[exec] (Desligar) {/sbin/shutdown -h now}
[exec] (Reiniciar) {/sbin/shutdown -r now}
[end]
My ~/.fluxbox/keys related line:
Mod4 x :CustomMenu /home/pibarnas/.fluxbox/sair
Now when I click windows button+x this menu appear:
You can make custom menus other than the default one as you wish. Hope you like the tip!
Nenhum comentário:
Postar um comentário