[问题]有没有办法更改print screen键所触发的程序[搞定了]
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 76
- 注册时间: 2007-09-19 22:30
- 来自: Shanghai
[问题]有没有办法更改print screen键所触发的程序[搞定了]
默认按print screen键会弹出gnome的“抓图”程序,我想能不能改成Ksnapshot?
上次由 pwsxp 在 2007-10-10 23:10,总共编辑 1 次。
- roylez
- 帖子: 1928
- 注册时间: 2005-10-04 10:59
- 来自: 上海
xbindkeys可以用来给程序帮定快捷键。
安装好了xbindkeys之后,你可以在命令行下输入
然后你按下一个你想定义的键,你将会看到
Press combination of keys or/and click under the window.
You can use one of the two lines after "NoCommand"
in $HOME/.xbindkeysrc to bind a key.
"NoCommand"
m:0x0 + c:160
NoSymbol
将最后三行复制到 ~/.xbindkeysrc ,NoCommand字样需要替换为你要执行的命令。
安装好了xbindkeys之后,你可以在命令行下输入
代码: 全选
xindkeys -k
Press combination of keys or/and click under the window.
You can use one of the two lines after "NoCommand"
in $HOME/.xbindkeysrc to bind a key.
"NoCommand"
m:0x0 + c:160
NoSymbol
将最后三行复制到 ~/.xbindkeysrc ,NoCommand字样需要替换为你要执行的命令。
✡ 弄个dropbox空间来备份文件或者做私人代码服务器?
✡ 配置:[url]git://github.com/roylez/dotfiles.git[/url]
✡ 主页:http://roylez.heroku.com
✡ 各种稀奇玩意儿:http://dooloo.info
✡ 配置:[url]git://github.com/roylez/dotfiles.git[/url]
✡ 主页:http://roylez.heroku.com
✡ 各种稀奇玩意儿:http://dooloo.info
- BigSnake.NET
- 帖子: 12522
- 注册时间: 2006-07-02 11:16
- 来自: 廣州
- 联系:
- BigSnake.NET
- 帖子: 12522
- 注册时间: 2006-07-02 11:16
- 来自: 廣州
- 联系:
- BigSnake.NET
- 帖子: 12522
- 注册时间: 2006-07-02 11:16
- 来自: 廣州
- 联系:
-
- 帖子: 76
- 注册时间: 2007-09-19 22:30
- 来自: Shanghai
-
- 帖子: 76
- 注册时间: 2007-09-19 22:30
- 来自: Shanghai
又查了一下,解决了,因为默认系统工具隐藏了配置编辑器
在google上搜了一下http://ubuntuforums.org/archive/index.php/t-502001.html
在google上搜了一下http://ubuntuforums.org/archive/index.php/t-502001.html
只是改动的地方是/apps/compiz/general/allscreens/options/下的command_window_screenshot 和 command_screenshot, 我改成ksnapshot -c 和 ksnapshotOnce the required utilities are installed, the screenshot command needs to be assigned to the PrintScreen key. To do this, start the configuration-editor utility by going to applications->system tools->configuration editor. Then, scroll down the left pane to /apps/metacity/global_keybindings and click on this item. Look in the right pane for run_command_screenshot and, if necessary, change the value of this item to Print.
Back in the left pane scroll down just one key and click on keybinding_commands. In the right pane, change the value of command_screenshot to:
scrot -q 75 '/home/username/screenshots/%m.%d.%y at %H.%M.%S.png'