xset使用详解(设置屏保)

一、查看当前设置:xset -q

二、xset详解介绍

Xset是上层应用程序,主要用于在XWindow启动之后,对XWindow进行一些设置,在Linux中比较好的一点就是当你不知一个命令的用法时可以使用man

man xset

xset [-display host:dpy] option ...
1、 To turn bell off:
    -b                b off               b 0

2、To set bell volume, pitch and duration:
     b [vol [pitch [dur]]]          b on
3、To disable bug compatibility mode:
    -bc
4、To enable bug compatibility mode:
    bc
5、To turn keyclick off:
    -c                c off               c 0

6、To set keyclick volume:
     c [0-100]        c on
7、To control Energy Star (DPMS) features:
    -dpms      Energy Star features off
    +dpms      Energy Star features on
     dpms [standby [suspend [off]]]     
          force standby
          force suspend
          force off
          force on
          (also implicitly enables DPMS features)
          a timeout value of zero disables the mode
8、To set the font path:
     fp= path[,path...]
9、To restore the default font path:
     fp default
10、 To have the server reread font databases:
     fp rehash
11、To remove elements from font path:
    -fp path[,path...]  fp- path[,path...]
12、To prepend or append elements to font path:
    +fp path[,path...]  fp+ path[,path...]
13、To set LED states off or on:
    -led [1-32]         led off
     led [1-32]         led on
    -led named 'name'   led off
     led named 'name'   led on
14、To set mouse acceleration and threshold:
     m [acc_mult[/acc_div] [thr]]    m default
15、To set pixel colors:
     p pixel_value color_name
16、To turn auto-repeat off or on:
    -r [keycode]        r off
     r [keycode]        r on
     r rate [delay [rate]]
17、For screen-saver control:
     s [timeout [cycle]]  s default    s on
     s blank              s noblank    s off  eg:xset s noblank (关闭屏保)
     s expose             s noexpose
     s activate           s reset

18、For status information:  q    eg:xset -q(查看当前设置)
19、To print version: -version

 

你可能感兴趣的:(linux,linux命令)