带来一篇CentOS“屏幕挑选”功能(display)
欢迎大家来到仓酷云论坛!在条记本上装了个CentOS6.5,平常条记本都外接一个显现器,这回体系装好了以后,鼠标乱晃了一小会一直找不到“屏幕选择”功效(display),一怒之下就有了上面这段代码.#vimload_xrandr.py
<divstyle="padding:0px;margin:0px;color:rgb(80,80,80);font-family:宋体,ArialNarrow,arial,serif;font-size:14px;line-height:28px;"><divclass="syntaxhighlighterpython"id="highlighter_122909"style="width:720px;padding:0px!important;margin:0.3em0px!important;border-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow-y:visible!important;overflow-x:auto!important;position:relative!important;right:auto!important;top:auto!important;vertical-align:baseline!important;box-sizing:content-box!important;font-family:Consolas,BitstreamVeraSansMono,CourierNew,Courier,monospace!important;font-size:1em!important;min-height:inherit!important;background-image:none!important;background-attachment:initial!important;background-size:initial!important;background-origin:initial!important;background-clip:initial!important;background-position:initial!important;background-repeat:initial!important;"><divclass="container"style="padding:0px!important;margin:0px!important;border-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow:visible!important;position:relative!important;right:auto!important;top:auto!important;vertical-align:baseline!important;width:auto!important;box-sizing:content-box!important;font-size:1em!important;min-height:inherit!important;background:none!important;">#-.-coding:utf-8-.-
__author__=root
importos
#列出显现器及分辩率
getScreens=os.popen("""
vgas=$(xrandr|grep"connected");
[$(echo"$vgas"|wc-l)-gt1]&&{
foriin$(echo"$vgas"|awk{print$1});
do
echo$i
xrandr|grep"$iconnected"-A1|awk-F"x"{print$1}|tail-n1|sed"s///g"
done
}""").readlines()
#处置换行标记
foriinrange(len(getScreens)):getScreens=getScreens.replace("
","")
#比对出分辩率较年夜的显现器
ifint(getScreens)<int(getScreens):
bigger=getScreens
<divclass="linenumber24index23alt1"style="white-space:nowrap;padding:0px1em!important;margin:0px!important;border-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow:visible!important;position:static!important;right:auto!important;top:auto!important;vertical-align:baseline!important;width:auto!important;box-sizing:content-box!important;font-size:1em!important;min-height:inherit!important;background-image:none!important;background-attachment:initial!important;background-size:initial!important;background-origin:initial!important;background-clip:initial!important;background-position:initial!important;background-repeat:initial!important;">
带来一篇CentOS“屏幕挑选”功能(display)
1v1飘过 永中office 2004增强版安装只需要默认安装即可使用并操作大多与win系统雷同,打印机的配置和管理,记录光盘等。 目前全球有超过一百多个Linux发行版本,在国内也能找到十几个常见版本。如何选择请根据你的需求和能力,RedhatLinux和DebianLinux是网络管理员的理想选择。 熟悉并掌握安装Linux,安装是学习的前提。目前较常见的安装方法有二种: 我学习Linux的心得体会 ,希望对大家的学习有所帮助,由于水平有限,本文难免有所欠缺,望请指正。 和私有操作系统不同,各个Linux的发行版本的技术支持时间都较短,这对于Linux初学者是往往不够的。 Linux?最大的优点在于其作为服务器的强大功能,同时支持多种应用程序及开发工具,所以Linux操作系统有着广泛的应用空间。
页:
[1]