Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1738629
  • 博文数量: 410
  • 博客积分: 9563
  • 博客等级: 中将
  • 技术积分: 4517
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-03 19:59
个人简介

文章分类

全部博文(410)

文章存档

2017年(6)

2016年(1)

2015年(3)

2014年(4)

2013年(32)

2012年(45)

2011年(179)

2010年(140)

分类: LINUX

2011-03-11 20:11:16

这是一个用bash shell 调整dmenu的例子()
  1. #!/bin/bash

  2. prog="
  3. 9menu
  4. awesomerc
  5. bashrc
  6. bbdock
  7. bbpager
  8. bbtime
  9. clock-awesome
  10. config-dmenu
  11. conky
  12. dmenu-cache
  13. dzen-calendar
  14. dzen-remind
  15. fonts.conf
  16. gtkrc
  17. gtkrc.mine
  18. menu.xml
  19. mpdconf
  20. netwmpager
  21. ob-autostart
  22. osdsh
  23. osdsh-theme
  24. pekwm-autoproperties
  25. pekwm-config
  26. pekwm-keys
  27. pekwm-menu
  28. pekwm-mouse
  29. pekwm-start
  30. pypanelrc
  31. rc.xml
  32. remind-awesome
  33. reminders
  34. rtorrentrc
  35. screenrc
  36. shutdown
  37. sithwmrc
  38. skippyrc
  39. xdefaults
  40. xlock
  41. xlocktext
  42. xsession-errors"

  43. cmd=$(dmenu -nb '#000000' -nf '#ECDDA6' -sb '#000000' -sf '#b23308' -fn "-*-nu-*-*-*-*-*-*-*-*-*-*-*-*" <<< "$prog")

  44. case ${cmd%% *} in
  45.     9menu)        exec mousepad "/home/urukrama/.9menurc";;
  46.     gtkrc)        exec mousepad "/home/urukrama/.gtkrc-2.0" ;;
  47.     xdefaults)    exec mousepad "/home/urukrama/.Xdefaults"    ;;
  48.     bashrc)        exec mousepad "/home/urukrama/.bashrc"    ;;
  49.     awesomerc)    exec mousepad "/home/urukrama/.awesomerc"    ;;
  50.     reminders)    exec mousepad "/home/urukrama/.reminders"    ;;
  51.     gtkrc.mine)    exec mousepad "/home/urukrama/.gtkrc.mine"    ;;
  52.     fonts.conf)    exec mousepad "/home/urukrama/.fonts.conf"    ;;
  53.     mpdconf)    exec mousepad "/home/urukrama/.mpdconf"    ;;
  54.     screenrc)    exec mousepad "/home/urukrama/.screenrc"    ;;
  55.     xsession-errors) exec mousepad "/home/urukrama/.xsession-errors" ;;
  56.     shutdown)    exec mousepad "/home/urukrama/.scripts/shutdown"    ;;
  57.     dzen-calendar)    exec mousepad "/home/urukrama/.scripts/dzen_calendar_awesome"    ;;
  58.     dzen-remind)    exec mousepad "/home/urukrama/.scripts/dzen_remind_awesome"    ;;
  59.     remind-awesome)    exec mousepad "/home/urukrama/.awesome/awesome-remind.sh"    ;;
  60.     clock-awesome)    exec mousepad "/home/urukrama/.awesome/awesome-clock.sh"    ;;
  61.     config-dmenu)    exec mousepad "/home/urukrama/.scripts/config_dmenu_script" ;;
  62.     netwmpager)    exec mousepad "/home/urukrama/.config/netwmpager/config" ;;
  63.     osdsh)        exec mousepad "/home/urukrama/.config/osdsh/osdsh_script" ;;
  64.     osdsh-theme)    exec mousepad "/home/urukrama/.config/osdshawesome" ;;
  65.     conky)        exec mousepad "/home/urukrama/.conkyrc" ;;
  66.     dmenu-cache)    exec mousepad "/home/urukrama/.dmenu_cache" ;;
  67.     xlock)        exec mousepad "/home/urukrama/.scripts/xlock"    ;;
  68.     xlocktext)    exec mousepad "/home/urukrama/.scripts/xlocktext"    ;;
  69.     pypanelrc)    exec mousepad "/home/urukrama/.pypanelrc"    ;;
  70.     rc.xml)        exec mousepad "/home/urukrama/.config/openbox/rc.xml"    ;;
  71.     menu.xml)    exec mousepad "/home/urukrama/.config/openbox/menu.xml"    ;;
  72.     skippyrc)    exec mousepad "/home/urukrama/.skippyrc"    ;;
  73.     sithwmrc)    exec mousepad "/home/urukrama/.sithwmrc"    ;;
  74.     pekwm-keys)    exec mousepad "/home/urukrama/.pekwm/keys"    ;;
  75.     pekwm-mouse)    exec mousepad "/home/urukrama/.pekwm/mouse"    ;;
  76.     pekwm-config)    exec mousepad "/home/urukrama/.pekwm/config"    ;;
  77.     pekwm-autoproperties)    exec mousepad "/home/urukrama/.pekwm/autoproperties"    ;;
  78.     pekwm-menu)    exec mousepad "/home/urukrama/.pekwm/menu"    ;;
  79.     pekwm-start)    exec mousepad "/home/urukrama/.pekwm/start"    ;;
  80.     ob-autostart)    exec mousepad "/home/urukrama/.config/openbox/autostart.sh"    ;;
  81.     bbpager)    exec mousepad "/home/urukrama/.bbtools/bbpager.rc"    ;;
  82.     bbtime)        exec mousepad "/home/urukrama/.bbtools/bbtime.nobb"    ;;
  83.     bbdock)        exec mousepad "/home/urukrama/.bbdockrc"    ;;
  84.     rtorrentrc)    exec mousepad "/home/urukrama/.rtorrentrc"    ;;
  85.       *)        exec "'${cmd}'" ;;
  86. esac



阅读(1397) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~