avadim71 |
|
Темы:
6
Сообщения:
42
Участник с: 30 апреля 2011
|
Ни как не могу добавить меню Games в менюшку бокса. Отредактировал файл menu.xml (в нем есть Games), перегружаю openbox и само меню не изменяется. Пробовал через obmenu - то же самое. Может кто заметит ошибку? Спасибо. |
vadik |
|
Темы:
57
Сообщения:
5475
Участник с: 17 августа 2009
|
avadim71А замечать ошибку в чем? Файл меню залейте куда-нибудь, а сюда ссылку. |
konstantinov-ms |
|
Темы:
16
Сообщения:
708
Участник с: 29 ноября 2009
|
avadim71Выложите конфиг menu.xml. Посмотрим. |
tchgefest |
|
Темы:
51
Сообщения:
1505
Участник с: 20 октября 2008
|
avadim71А кнопочку в obmenu нажимаете сохранить? А вы случайно не одновременно пытаетесь редактировать файл?
Последний крик моды - эхо 30-летней давности.
|
avadim71 |
|
Темы:
6
Сообщения:
42
Участник с: 30 апреля 2011
|
Вот весь menu.xml<?xml version="1.0" encoding="utf-8"?> <openbox_menu xmlns="http://openbox.org/3.4/menu"> <menu id="apps-accessories-menu" label="Accessories"> <item label="Calculator"> <action name="Execute"> <command> gnome-calculator </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="Character Map"> <action name="Execute"> <command> gnome-character-map </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="Ark File Archiver"> <action name="Execute"> <command> ark </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> </menu> <menu id="apps-editors-menu" label="Editors"> <item label="GVim"> <action name="Execute"> <command> gvim </command> <startupnotify> <enabled> yes </enabled> <wmclass> GVim </wmclass> </startupnotify> </action> </item> <item label="Emacs"> <action name="Execute"> <command> emacs </command> <startupnotify> <enabled> yes </enabled> <wmclass> Emacs </wmclass> </startupnotify> </action> </item> <item label="GEdit"> <action name="Execute"> <command> gedit </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="Kate"> <action name="Execute"> <command> kate </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="Kwrite"> <action name="Execute"> <command> kwrite </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> </menu> <menu id="apps-games-menu" label="Games"> <item label="Pathological"> <action name="Execute"> <command> /usr/bin/pathological </command> </action> </item> </menu> <menu id="apps-term-menu" label="Terminals"> <item label="Rxvt Unicode"> <action name="Execute"> <command> urxvt </command> </action> </item> <item label="Gnome Terminal"> <action name="Execute"> <command> gnome-terminal </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="Xfce Terminal"> <action name="Execute"> <command> xfce4-terminal </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="Konsole"> <action name="Execute"> <command> konsole </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="Xterm"> <action name="Execute"> <command> xterm -bg black -fg green </command> </action> </item> </menu> <menu id="apps-net-menu" label="Internet"> <item label="Firefox"> <action name="Execute"> <command> firefox </command> <startupnotify> <enabled> yes </enabled> <wmclass> Firefox </wmclass> </startupnotify> </action> </item> <item label="Opera"> <action name="Execute"> <command> opera </command> <startupnotify> <enabled> yes </enabled> <wmclass> Opera </wmclass> </startupnotify> </action> </item> <item label="Konqueror"> <action name="Execute"> <command> konqueror </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="Epiphany"> <action name="Execute"> <command> epiphany </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="Pidgin Instant Messenger"> <action name="Execute"> <command> pidgin </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="Kopete Instant Messenger"> <action name="Execute"> <command> kopete </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="XChat"> <action name="Execute"> <command> xchat </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> </menu> <menu id="apps-office-menu" label="Office"> <item label="OpenOffice Base"> <action name="Execute"> <command> ooffice -base </command> </action> </item> <item label="OpenOffice Calc"> <action name="Execute"> <command> ooffice -calc </command> </action> </item> <item label="OpenOffice Draw"> <action name="Execute"> <command> ooffice -draw </command> </action> </item> <item label="OpenOffice Impress"> <action name="Execute"> <command> ooffice -impress </command> </action> </item> <item label="OpenOffice Math"> <action name="Execute"> <command> ooffice -math </command> </action> </item> <item label="OpenOffice Printer Administration"> <action name="Execute"> <command> ooffice-printeradmin </command> </action> </item> <item label="OpenOffice Writer"> <action name="Execute"> <command> ooffice -writer </command> </action> </item> </menu> <menu id="apps-multimedia-menu" label="Multimedia"> <item label="Amarok"> <action name="Execute"> <command> amarok </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="Rhythmbox"> <action name="Execute"> <command> rhythmbox </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="K3b"> <action name="Execute"> <command> k3b </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="MPlayer"> <action name="Execute"> <command> gmplayer </command> <startupnotify> <enabled> yes </enabled> <wmclass> MPlayer </wmclass> </startupnotify> </action> </item> <item label="Totem"> <action name="Execute"> <command> totem </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> </menu> <menu id="apps-fileman-menu" label="File Managers"> <item label="Nautilus"> <action name="Execute"> <command> nautilus --no-desktop --browser </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="Thunar"> <action name="Execute"> <command> Thunar </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="KDE File Manager"> <action name="Execute"> <command> kfmclient openURL ~ </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="Rox"> <action name="Execute"> <command> rox </command> <startupnotify> <enabled> yes </enabled> <wmclass> ROX-Filer </wmclass> </startupnotify> </action> </item> <item label="PCMan File Manager"> <action name="Execute"> <command> pcmanfm </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> </menu> <menu id="apps-graphics-menu" label="Graphics"> <item label="Gimp"> <action name="Execute"> <command> gimp </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="Gwenview"> <action name="Execute"> <command> gwenview </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="Dia Diagram Editor"> <action name="Execute"> <command> dia </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="Inkscape"> <action name="Execute"> <command> inkscape </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> </menu> <menu id="system-menu" label="System"> <item label="Openbox Configuration Manager"> <action name="Execute"> <command> obconf </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="Gnome Control Center"> <action name="Execute"> <command> gnome-control-center </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="KDE Control Center"> <action name="Execute"> <command> kcontrol </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="Xfce Settings"> <action name="Execute"> <command> xfce-setting-show </command> <startupnotify> <enabled> yes </enabled> </startupnotify> </action> </item> <item label="Manage Cups Printers"> <action name="Execute"> <command> xdg-open http://localhost:631/ </command> <startupnotify> <enabled> no </enabled> <icon> cups </icon> </startupnotify> </action> </item> <separator/> <item label="Reconfigure Openbox"> <action name="Reconfigure"/> </item> </menu> <menu id="root-menu" label="Openbox 3"> <separator label="Applications"/> <menu id="apps-accessories-menu"/> <menu id="apps-editors-menu"/> <menu id="apps-graphics-menu"/> <menu id="apps-net-menu"/> <menu id="apps-office-menu"/> <menu id="apps-multimedia-menu"/> <menu id="apps-term-menu"/> <menu id="apps-fileman-menu"/> <separator label="System"/> <menu id="system-menu"/> <separator/> <item label="Log Out"> <action name="Exit"> <prompt> yes </prompt> </action> </item> </menu> </openbox_menu> |
vadik |
|
Темы:
57
Сообщения:
5475
Участник с: 17 августа 2009
|
В этом куске<menu id="root-menu" label="Openbox 3"> <separator label="Applications"/> <menu id="apps-accessories-menu"/> <menu id="apps-editors-menu"/> <menu id="apps-graphics-menu"/> <menu id="apps-net-menu"/> <menu id="apps-office-menu"/> <menu id="apps-multimedia-menu"/> <menu id="apps-term-menu"/> <menu id="apps-fileman-menu"/> <separator label="System"/> <menu id="system-menu"/> Добавьте туда что-то типа <menu id="apps-games-menu"/> |
avadim71 |
|
Темы:
6
Сообщения:
42
Участник с: 30 апреля 2011
|
Спасибо, vadik! Все заработало! |
zyamilon |
|
Темы:
6
Сообщения:
68
Участник с: 02 апреля 2012
|
Приветушки! Не буду содавать тему, запощу в етой. Есть пара вопросов по меню, ответы никак не могу найти :( 1. составные команды Возможно ли запускать составные команды? Если да, то как? К примеру, “pkill process && process”? Создавал такие команды через obmenu, но они не работают. В menu.xml амперсанд, соединяющий команды, меняется разметкой или экранируется. Причина в этом, вероятно. 2. задержка/ожидание ввода Есть команда “urxvt -e ifconfig -a”. После клика в меню открывается окно терминала, команда выполняется и тут же окно закрывается. Как сказать приложению чтобы оно подождало, пока я нажму клавишу или еще что-то сделаю?
You will release your life
Joining with the god damned world of the dead and the lonely. |
vadik |
|
Темы:
57
Сообщения:
5475
Участник с: 17 августа 2009
|
Запускать не команду, а скрипт с этой командой не подходит? |
zyamilon |
|
Темы:
6
Сообщения:
68
Участник с: 02 апреля 2012
|
Думал об этом, но посчитал “решением в лоб”. :) Чувствую, есть какое-то простое, опенбоксовое решение для обхода &, но найти вот не могу. Сейчас попробую вариант со скриптом. Хотя… с другой стороны, скрипты всегда со мной будут и переносить их легче. upd: бинго! со скриптом заработало! Вопрос №2 все еще в силе.
You will release your life
Joining with the god damned world of the dead and the lonely. |