Arch Linux 中的 Xfce 4.6 版本以后增加休眠和待机支持,但是我用 VMware 虚拟装的系统,根本不需要这两个功能,怎样才能隐藏呢?我们可以使用 xfconf-query 这个命令行工具来做到:

  • 隐藏待机按钮:
    1. xfconf-query -c xfce4-session -np '/shutdown/ShowSuspend' -t 'bool' -s 'false'  
  • 显示待机按钮:
    1. xfconf-query -c xfce4-session -np '/shutdown/ShowSuspend' -t 'bool' -s 'true'  
  • 隐藏休眠按钮:
    1. xfconf-query -c xfce4-session -np '/shutdown/ShowHibernate' -t 'bool' -s 'false'  
  • 显示休眠按钮:
    1. xfconf-query -c xfce4-session -np '/shutdown/ShowHibernate' -t 'bool' -s 'true'  

本日志由 Loveyuki 于 2009-07-17 10:04 发表到 技术新知 中,目前已经被浏览 1211 次,评论 13 次;

作者添加了以下标签: xfce4Arch Linux