打造前端 Deepin Linux 工作环境——调节鼠标滚轮速度
来源:互联网 发布:小马oem 知乎 编辑:程序博客网 时间:2024/05/21 19:26
打造前端 Deepin Linux 工作环境——调节鼠标滚轮速度
在 deepin
的系统设置里面,没有找到鼠标滚轮速度调节的选项。但是默认情况下,其滚轮的速度又特别的慢。经过一番搜索,终于解决了这个问题。
安装 imwheel
首先执行
sudo apt-get install imwheel -y
安装 imwheel 软件。
创建调整脚本
# 创建自定义脚本目录mkdir ~/.bin/# 创建并编辑我们的脚本文件vim ~/.bin/setwheel
然后在文件中粘贴进去以下代码:
#!/bin/bash# Version 0.1 Tuesday, 07 May 2013# Comments and complaints http://www.nicknorton.net# GUI for mouse wheel speed using imwheel in Gnome# imwheel needs to be installed for this script to work# sudo apt-get install imwheel# Pretty much hard wired to only use a mouse with# left, right and wheel in the middle.# If you have a mouse with complications or special needs,# use the command xev to find what your wheel does.#### see if imwheel config exists, if not create it ###if [ ! -f ~/.imwheelrc ]thencat >~/.imwheelrc<<EOF".*"None, Up, Button4, 1None, Down, Button5, 1Control_L, Up, Control_L|Button4Control_L, Down, Control_L|Button5Shift_L, Up, Shift_L|Button4Shift_L, Down, Shift_L|Button5EOFfi##########################################################CURRENT_VALUE=$(awk -F 'Button4,' '{print $2}' ~/.imwheelrc)NEW_VALUE=$(zenity --scale --window-icon=info --ok-label=Apply --title="Wheelies" --text "Mouse wheel speed:" --min-value=1 --max-value=100 --value="$CURRENT_VALUE" --step 1)if [ "$NEW_VALUE" == "" ];then exit 0fised -i "s/\($TARGET_KEY *Button4, *\).*/\1$NEW_VALUE/" ~/.imwheelrc # find the string Button4, and write new value.sed -i "s/\($TARGET_KEY *Button5, *\).*/\1$NEW_VALUE/" ~/.imwheelrc # find the string Button5, and write new value.cat ~/.imwheelrcimwheel -kill# END OF SCRIPT FILE
粘贴进去以上代码之后,再运行下面的命令:
# 给运行权限chmod +x ~/.bin/setwheel# 将 ~/.bin/ 目录加入系统程序执行目录并立即生效echo 'export PATH="$PATH:~/.bin"' >> ~/.bash_profile && . ~/.bash_profile# 运行脚本setwheel
然后就会打开如下图的设置面板
我设置到3,你可以根据自己的情况进行设置。
参考资料:http://www.nicknorton.net/
本文由FungLeo原创,允许转载,但转载必须附注首发链接。谢谢。
阅读全文
1 0
- 打造前端 Deepin Linux 工作环境——调节鼠标滚轮速度
- 打造前端 Deepin Linux 工作环境——安装系统
- 打造前端 Deepin Linux 工作环境——安装 nodejs 环境,git 版本管理
- 打造前端 Deepin Linux 工作环境——配置 XAMPP 集成环境
- 打造前端 Deepin Linux 工作环境——配置 XAMPP 集成环境2 虚拟主机、数据库
- 打造前端 Deepin Linux 工作环境——系统设置以及安装软件
- 打造前端 Deepin Linux 工作环境——安装配置 atom 编辑器
- 打造前端 Deepin Linux 工作环境——系统更新以及配置字体
- 打造前端 Deepin Linux 工作环境——配置静态服务器
- 打造前端 Deepin Linux 工作环境——GUI图形压缩软件 PeaZip 的安装与设置
- 打造前端 Deepin Linux 工作环境——开机自动加载 ~/.bash_profile 文件
- 打造前端 Deepin Linux 工作环境——安装最新版本的火狐firefox浏览器
- 打造前端 Deepin Linux 工作环境——安装 koala css 预编译工具(安装deb包的方法
- 打造一个perfect的linux开发环境(加入对鼠标滚轮的支持)
- 舒适的Linux中文环境——Manjaro Deepin工作环境配置
- [AHK]鼠标滚轮音量调节
- 鼠标移到任务栏滚轮调节音量
- 鼠标滚轮怎么变调节音量了
- PAT乙题1060. 爱丁顿数(25)
- 一个老程序猿的焦虑4
- 日记?
- PAT乙题1061. 判断题(15)
- PAT乙题1064. 朋友数(20)
- 打造前端 Deepin Linux 工作环境——调节鼠标滚轮速度
- 限时八个月大前端学习计划
- 《数据可视化与数据挖掘——基于Tableau和SPSS Modeler图形界面》之前言
- Oracle之开窗函数
- 通过反射将一个对象的值赋给另一个对象中对应的属性 不需要用set、get
- 《数据可视化与数据挖掘——基于Tableau和SPSS Modeler图形界面》之可视化数据挖掘概述
- C#初识0
- appscan
- 【angular】Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'D