From: Kulynyak Andriy <kulynyak@mail.ru> To: sisyphus@altlinux.ru Subject: [sisyphus] GNOME2(metacity) - горячие клавиши для запуска програм Date: Thu, 13 Feb 2003 16:18:23 +0200 Message-ID: <20030213161823.2e9d3d5b.kulynyak@mail.ru> (raw) In-Reply-To: <3E4B969F.4000907@mts.ru> Возможно кому-нибудь это пригодится .... Захотелось мне повесить в GNOME2(metacity) запуск програм(и не только) на клавку ... Обнаружил 12 настроиваемых команд настроить с gui не получилось ... , но можно сделать вот так: ---------------------------------------------------------- #! /bin/bash # script for setting custom keyboard-shortcuts ########################################################## # Set metacity/keybinding_commands/command_1 # lock screen with "xscreenserver-command -lock" ########################################################## gconftool-2 --owner=$USER --set --type string \ /apps/metacity/keybinding_commands/command_1 \ 'xscreensaver-command -lock' gconftool-2 --owner=$USER --set --type string \ /apps/metacity/global_keybindings/run_command_1 \ '<Control><Alt>Delete' ########################################################## # Set metacity/keybinding_commands/command_2 # log out gnome2 session with "gnome-session-save --kill" # This will bring the confirmation dialog, if you have # enabled it in your session preferences :) ########################################################## gconftool-2 --owner=$USER --set --type bool \ /apps/gnome-session/options/logout_prompt \ true # I have enabled ! gconftool-2 --owner=$USER --set --type string \ /apps/metacity/keybinding_commands/command_2 \ 'gnome-session-save --kill' gconftool-2 --owner=$USER --set --type string \ /apps/metacity/global_keybindings/run_command_2 \ '<Mod4>Pause' ########################################################## # Set metacity/keybinding_commands/command_3 # start Opera with "opera -newpage" ########################################################## gconftool-2 --owner=$USER --set --type string \ /apps/metacity/keybinding_commands/command_3 \ 'opera -newpage' gconftool-2 --owner=$USER --set --type string \ /apps/metacity/global_keybindings/run_command_3 \ '<Mod4>o' ---------------------------------------------------------- Удалить какие-то сочетания клавиш так: ---------------------------------------------------------- #! /bin/bash # removing custom keyboard-shortcut in metacity #clear rest gconftool-2 --owner=$USER --unset \ /apps/metacity/keybinding_commands/command_N[1..12] gconftool-2 --owner=$USER --unset \ /apps/metacity/global_keybindings/run_command_N[1..12] ---------------------------------------------------------- C уважением, Кулыняк Андрий
next prev parent reply other threads:[~2003-02-13 14:18 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-02-13 12:59 [sisyphus] rdesktop-1.2.0 и стрелки Sergey V. Degtiarenko 2003-02-13 14:18 ` Kulynyak Andriy [this message] 2003-02-13 14:32 ` Dmitry Malenko 2003-02-18 11:09 ` Шишков Евгений 2003-02-18 12:07 ` Danil V. Glova 2003-02-18 12:12 ` Dmitry Malenko 2003-02-18 12:39 ` Шишков Евгений 2003-02-13 21:53 ` Dmitry Barashev
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030213161823.2e9d3d5b.kulynyak@mail.ru \ --to=kulynyak@mail.ru \ --cc=sisyphus@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git