linux awesome配置
来源:互联网 发布:如何摆脱抑郁知乎 编辑:程序博客网 时间:2024/04/29 14:53
开机启动加载:/etc/init.d/rc.local(awesome开机不会自动加载windows的硬盘,解决方法)
在最后加上
mount /dev/sda1 /home/zhyin/mnt/c/
mount /dev/sda3 /home/zhyin/mnt/e/
mount /dev/sda4 /home/zhyin/mnt/f/
mount /dev/sda5 /home/zhyin/mnt/d/
参考:http://www.webjx.com/htmldata/2007-07-27/1185496388.html(linux开机自动启动的问题)
修改开机屏幕亮度:(系统亮度为0-976,awesome开机的亮度默认最亮)
/sys/class/backlight/intel_backlight/brightness
在/etc/rc.local中exit 0前加上
echo 500 > /sys/class/backlight/intel_backlight/brightness
参考:http://www.cnblogs.com/linksgo2011/archive/2012/12/21/2827497.htmlawesome配置文件:~/.config/awesome/rc.lua
~/.bashrc:(增加一些常用的命令)
alias cdc='cd /home/zhyin/mnt/c'
alias cdd='cd /home/zhyin/mnt/d'
alias cde='cd /home/zhyin/mnt/e'
alias cdf='cd /home/zhyin/mnt/f'
alias cdstudy='cd /home/zhyin/mnt/e/sysu/study'
alias cdwin='cd /home/zhyin/mnt/c/Users/zhyin_gil/Desktop'
alias cdawesome='cd /home/zhyin/.config/awesome'
alias cddown='cd /home/zhyin/ä¸è½½'
alias cdpaper='cd /home/zhyin/ææ¡£'
alias jc='ps -ef | grep'
alias gj='sudo init 0'
alias cq='sudo init 6'
alias jietu='scrot -s'
alias gzc='sudo mount /dev/sda1 /home/zhyin/mnt/c/'
alias gze='sudo mount /dev/sda3 /home/zhyin/mnt/e/'
alias gzf='sudo mount /dev/sda4 /home/zhyin/mnt/f/'
alias gzd='sudo mount /dev/sda5 /home/zhyin/mnt/d/'
alias ttc='sudo umount /home/zhyin/mnt/c/'
alias ttd='sudo umount /home/zhyin/mnt/d/'
alias tte='sudo umount /home/zhyin/mnt/e/'
alias ttf='sudo umount /home/zhyin/mnt/f/'
awesome插件:
官网:http://awesome.naquadah.org/wiki/User_Contributed_Widgets
插件:电池电量、音量、网速、内存、CPU、文件系统
下载库
git clone git://git.glacicle.com/awesome/wicked.gitsudo cp wicked/wicked.lua /usr/share/awesome/lib/sudo cp wicked/wicked.7.gz /usr/share/man/man7/修改配置:
-- Create a systraybatterywidget = widget({ type = "textbox" })batterywidgettimer = timer({ timeout = 5 })batterywidgettimer:add_signal("timeout", function() local fd=io.popen("acpitool -b", "r") --list present batteries local line=fd:read() local battery_load = string.match(line, " (%d*.%d+)%%") batterywidget.text = '<span color = "#fcf16e"> Bat: </span>'..battery_load..'%' fh:close() end)batterywidgettimer:start()volume_widget = widget({ type = "textbox", name = "tb_volume"})function update_volume(widget) local fd = io.popen("amixer sget Master") local status = fd:read("*all") fd:close() local volume = tonumber(string.match(status, "(%d?%d?%d)%%")) widget.text = ' <span color="White">Vol:</span> '..volume..'%'endupdate_volume(volume_widget)awful.hooks.timer.register(1, function () update_volume(volume_widget) end)memwidget = widget({ type = 'textbox', name = 'memwidget'})wicked.register(memwidget, wicked.widgets.mem, ' <span color="green">Mem:</span> ($2Mb/$3Mb)')cpuwidget = widget({ type = 'textbox', name = 'cpuwidget'})wicked.register(cpuwidget, wicked.widgets.cpu, ' <span color="red">Cpu:</span> $1%')netwidget = widget({ type = 'textbox', name = 'netwidget'})wicked.register(netwidget, wicked.widgets.net, '<span color="yellow">Net</span>: ${eth0 down} / ${eth0 up}', nil, nil, 3)fswidget = widget({ type = 'textbox', name = 'fswidget'})wicked.register(fswidget, wicked.widgets.fs, ' <span color="#7bbfea">File:</span> ${/ used}/${/ size} (${/ usep}%)', 120)
注:
1.各配置文件备份在115
2.电池电量的需要安装acpitool:sudo apt-get install acpitool
3.音量控制需绑定到几个多媒体键
-- volume controlawful.key({ }, "XF86AudioRaiseVolume", function ()awful.util.spawn("amixer sset Master,0 5%+")update_volume(volume_widget) end),awful.key({ }, "XF86AudioLowerVolume", function ()awful.util.spawn("amixer sset Master,0 5%-") update_volume(volume_widget) end),awful.key({ }, "XF86AudioMute", function ()awful.util.spawn("amixer sset Master toggle") update_volume(volume_widget) end),
- linux awesome配置
- linux awesome rc.lua 的配置
- awesome配置
- Awesome配置
- awesome使用与配置
- Github收藏之awesome-linux
- awesome
- awesome
- Awesome
- Awesome
- 我的awesome的相关配置问题
- Linux Crontab:15 Awesome Cron Job Examples
- 6 Awesome Linux cd command Hacks
- 23 Awesome Themes for Ubuntu Linux
- Linux Crontab: 15 Awesome Cron Job Examples
- Linux - Gentoo Installation with awesome desktop
- awesome:linux下的平铺式桌面
- Mommy, I found it!, 15 Awesome Linux Find Command Examples
- Hibernate入门经典实例
- JSON 与JAVA、JSP页面与JSON
- CAS做单点登陆(SSO)——集成BIEE 11g
- uC/OS-II 中的任务
- Metrics_and_Grids
- linux awesome配置
- V4L2摄像头获取单幅图片测试程序(MMAP模式)
- 10841 - Lift Hopping in the Real World
- 和机器学习和计算机视觉相关的数学
- MyEclipse调试小技巧
- java判定数组或集合是否存在某个元素
- ”You cannot combine custom titles with other title feature“ 和 TabActivity
- IOS 之 NSBundle 方法详解
- 算法: 找子集合并按权值和排序 (货郎问题辅助算法)