Skip to main content

Posts

Showing posts with the label looking

solarized 颜色主题 | the solarized color theme

尽管之前杂记里提了一下,但是现在还是特别再记录一下。 其实是偶然从linuxtoy里的脚本看到了这个主题名字,感觉很漂亮。然后深入搜了一下。 这个主题对比度相对比较低,或者说亮度上的对比度比较低,而主要靠色相来提高肉眼辨识度。 另外它的一个精妙的地方在于,颜色经过精心挑选,不论是深色背景还是浅色的,前景色都能很好的显示 以下是各种链接,除了我提到了还有一些其他的(我不常用的和没听说过的) 主页: http://ethanschoonover.com/solarized 主git源: vim,emacs,mutt,gimp palette,Xresources https://github.com/altercation/solarized sigurdga的fork: gnome-terminal https://github.com/sigurdga/gnome-terminal-colors-solarized seebi的fork: dircolors, tmux https://github.com/seebi/solarized 我的fork: 256color for gnome-terminal and guake https://github.com/coolwanglu/gnome-terminal-colors-solarized 我的fork: Guake https://github.com/coolwanglu/guake-colors-solarized 说明 1. guake和gnome-terminal用的gconf类似,手工copy一下就行。不过我打算写个脚本,顺便学学git 2.terminal的主题一定要配合dircolors一起用,否则ls出来会很难看 3.vim里有多种选项可以配置主题 4. 原来gnome terminal那个是16色的port,我fork并改出一个256色的,另外加入了guake的支持 5.256色是终端不使用这个主题时的临时方法,所以我原来的理解有问题,于是分离出一个单独的guake源 Although I've already mentioned this theme in the previous misc notes, but now I've decided to introdu...

杂记 | Misc Notes

1. Firefox 全屏时显示地址栏和标签栏,设置browser.fullscreen.autohide=false 2. 禁用一个upstart的服务: echo "manual" >> xxx.conf,natty的upstart版本支持了override文件,于是可以 echo "manual" >> xxx.override 3. bootchart小工具可以分析开机时各程序启动,资源占用等情况,另有pybootchartgui可以将结果转换成图片查看 4. colortest 用于测试终端对颜色支持情况 5. synapse 一个 gnome-do 替代品,不依赖mono,重启compiz也不会崩溃 6. vimperator 最近又用了一下,比以往好了很多,装上以后多了各种快捷键,同时也不影响原来的界面。对gmail和google reader有冲突,之需要按一下ctrl+z 7. solarized 一个很不错的颜色主题,可以用于vim mutt terminal等等,很不错。也有对gnome-teriminal的移植,但是我这里显示效果不是很好 8. Terminus 一个很不错的终端字体,适用于小字号 1. To show the location bar and tab bar when Firefox is in fullscreen mode, set browser.fullscreen.autohide=false 2. To disable an upstart service: echo "manual" >> xxx.conf. Staring from Natty, upstart has supported the override files, so we may use: echo "manual" >> xxx.override 3. bootchart is a small tool to visualize the performance (of programs, resources) in the boot process, and pybootchartgui is availabl...

Green Apparatus 转换为 Linux 鼠标指针主题的修正 | Fix converting Green Apparatus to Linux mouse cursor theme

Green Apparatus 是一个经典的 CursorXP 鼠标主题,有这很有创意的动画和很棒的美工。虽然 CursorXP 是给 Windows 的,但是网上有个 sd2xc 脚本可以把 CursorXP 主题转换成 X11 主题,很不错。 但是 Green Apparatus 转换后,等待的指针动画有问题,很多人也在抱怨。 很久以前我就在用这个主题了,当时从 http://d.hatena.ne.jp/tksmashiw/20080421 找到了解法。最近又想折腾,想起了这个主题和这个网站,看到这个网站很久没更新了,就转过来吧。 主要步骤是 把GreenApparatus.CurXPTheme解压(就是zip) 修改scheme.ini,找到[Wait]段,修改第二行为Frames=107然后[Wait_Script]段第二行改成27-107,40 而后重新打包,再用sd2xc转换就没问题了。 再次感谢原作者。 Green Apparatus is a great CursorXP theme, the artwork is awesome and the animation is creative. Although CursofXP is for Windows only, there has been a script called sd2xc which can convert them into X11 themes. However there's a problem, that the animatino of the wait cursor does not work well, many people had been complaining about this. I used this theme long before, I found the fix at http://d.hatena.ne.jp/tksmashiw/20080421. Recently I want to tweak my machine again, and I remembered this theme and that website. I found that web site had not been updated for a long ti...

gnome panel 妙用一则 | A nice trick of gnome panel

链接: http://www.webupd8.org/2010/12/use-gnome-panel-as-wingpanel-quick-tip.html 结果如图,当panel上东西比较少的时候很实用。 操作步骤是在panel属性里取消expand,然后选中autohide,然后拖到右上角,通过gconf修改/apps/panel/toplevels/<panel name>/hide_delay为2147483647 Link: http://www.webupd8.org/2010/12/use-gnome-panel-as-wingpanel-quick-tip.html Result as the picture above, quite useful when not too much things on the panel. To make it like this, in the "properties“ dialog of the panel, cancel "expand" and select "autohide". Then drag the panel to the top-right of the screen. At last change the gconf value "/apps/panel/toplevels/<panel name>/hide_delay" to 2147483647

Webkit 下中文字体问题的解决 | Solution to the problem of unexpected Chinese fonts in webkit

也许是仅局限于webkitgtk 之前尝试epiphany的时候就发现了这个问题,但是由于epiphany对我来说只是一个备用浏览器,所以没管它。 今天给empathy搞adium主题时这个问题再次蹦了出来,我决定干掉它。 https://bugs.launchpad.net/ubuntu/+source/webkit/+bug/502610 这里有些讨论,里面有个链接指向了改fontconfig的办法,但是我想我这里并不是这个问题,因为我在~/.fonts.conf里已经之定好了我希望的中文字体(主要是serif, sans-serif, monosapce这几个列表),我还是觉得这个是webkit的问题。 empathy有个选项可以开启webkit debug模式:/apps/empathy/conversation/enable_webkit_developer_tools 我用它查看元素,发现字体总是sans...目前解决方法是手工改css,找到.msg的定义,加入 font-family: "font name 1", "font name 2"; 另外就是epiphany,虽然它不能给各个语言指定字体,但是好歹支持用户css,于是加入如下内容: @charset "UTF-8"; // 如果字体名有中文 * { font-family: "font name 1", "font name 2" ! important; } 这样问题基本可以解决 Or maybe it's only a bug for webkitgtk, I'm not sure. Days before I encountered this bug when I was trying epiphany, but I didn't pay much attention on it since I use it only as a backup one. However today the bug came out and started to trouble me again when I was applying an adium theme for empa...

compiz 鼠标指针问题

症状是gnome里改了指针主题以后,(在打开compiz的情况下)标题栏,gnome-panel上的鼠标指针还是以前的(不知道是哪里来的),总是是不会跟着改变。 在 https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/459647 上某人提到了修改/usr/share/icons/default/index.theme,我看了一下,是一个link,而且是带有alternative的。 于是用update-alternatives更改了一下,重启X,一切OK。 另外怀疑创建~/.icons/default/index.theme也可以解决问题,没有验证。

Green Apparatus 移植至X11后 wait 指针的修正

参考: http://d.hatena.ne.jp/tksmashiw/20080421#c 前一阵子在gnome look里看到了 Green Apparatus 这个主题,觉得不错就下载了。 但是其中的Wait指针有问题,动画播放时指针自己浮动了。 主题下面的评论里也提到了这个问题,但是没有解决方案。另外还提到这个主题原来是Windows的,后来被移植过来的。 今天在上面的链接里找到了解决方案: 首先下载 CursorXP/FX to X11 Mouse Theme Converter 并安装 sudo apt-get install libconfig-inifiles-perl perlmagick imagemagick x11-apps 然后下载一个Windows的Green Apparatus主题,应该是一个.CurXPTheme文件,其实就是一个zip 解压后修改Scheme.ini,把[Wait]下Frame=106改成107,[Wait_Script]下26-106改成27-107 最后重新打包,并用Converter转换成X11的主题。 安装,测试。 No problem!

gnome下美化qt程序外观

参见 http://linuxtoy.org/archives/change-qt-applications-look-and-feel-under-gnome.html Ubuntu默认情况下qt程序外观不咋好看 安装qtconfig-qt3或qtconfig-qt4(依照实际版本),以及polymer 运行qtconfig,修改GUI style为polymer 这样qt程序的外观会比默认好很多

Gnome 下 把 Dream Aquarium 设为壁纸

在Windows下发现这个软件不错后,决定要尝试把它弄成我的ubuntu的“壁纸” 首先是安装,默认会出问题,原因是少了个gdiplus.dll, Dream Aquarium主页上关于Win2000版本的地方有说明。 不过我的XP似乎没有这个文件也能跑。 总之,下一个gdiplus.dll放wine的系统目录里就好了。 如果想装破解版,会麻烦些,我按照Windows的方法试了好久,没有成功,最后是胡搞了几次才成,可能有用的几点是: 1.破解包里有一个dai文件,用16进制编辑器查看发现其前三行是明文,之后是一个PE文件头,于是删掉前三行,果然可以运行,但是经常会crash。 这个文件应该就是1.1090完全版的主程序了。一般在鼓弄过程(最好还是按着破解包里面的说明弄)中可以试试这个能不能正常运行,即显示鱼缸。我这里最好结果是它可以运行,但是仍是使用版,似乎只能加2号鱼。 2.注册似乎一直都不成功,我最后是在上面一条成功后,认为注册表方面没问题了,然后把Windows下的安装文件拷过来了一份,于是能正常运行了,可加的鱼也没有限制了。 3.破解包里说要block这个屏保的网络连接,但是我不会弄,说不准哪一天屏保自己发现被破解了,又拒绝运行了。不过现在已经运行了几次,没有问题。 能运行以后,开始尝试把它弄成壁纸. 首先是要配置一下wine.设上虚拟桌面,并去掉Allow the window manager to control the windows。 我一开始没设好这个,总是不行。原因大概是屏保发现失去焦点后就会自动退出,可是我们把它设成了桌面以后,肯定要做别的事,于是切换到其他窗口时,屏保就退出了。 去掉Allow the window manager to control the windows 后, 该窗口就得不到失去焦点的信息了,也就不会自动退出了。 另外如果不选上虚拟桌面,后面用的devilspie会找不到这个窗口。 其次,配置一下屏保(在屏保里面按回车),去掉鼠标退出,然后把键盘退出的范围改小,我弄的是Esc only。 接着是装上devilspie, 在home里建目录.devilspie,并写一个文件DreamAquarium.ds (if (is (application_name) "Wine desktop") (begi...

Cairo-Clock 桌面时钟

这是个挺不错的小时钟, 有多种皮肤. 我这里一开始时钟周围有圈黑边, 不爽, 后来查到了解决方案 安装xcompmgr, 然后先于cairo-clock运行即可 原文说要修改/etc/X11/xorg.conf, 加入 Section "Extensions" Option "Composite" "Enable" EndSection 但我这里不需要修改这个就可以去掉黑圈 不过还有一个问题,就是这样运行xcompmgr后,点击右上方关机选项按钮后屏幕就没反应, 网上很多人称之为"死锁", 实际不是, 我发现是本该出现的关机选项没有显示,但是还是在屏幕上的对应位置, 如果用鼠标摸索的点,仍然可以重启,关机等. 试了几个xcompmgr的命令后发现不是和黑框出现就是关机选项消失,总之还没有解决. 不过先这样把, 反正我用命令行关机. :)

conky

搜到了很多关于conky的正面评价, 因此等有空了一定试试 一下是一些链接 conky - A light-weight system monitor 奋斗两天的成果:conky的安装与配置 Very酷的桌面监控工具 Conky Howto: Get a beautiful Conky 1.4.2 setup

gkrellm

在网上查了下gdesklets, 评价并不高, 主要原因是体积过大, 当然实际它的功能还不错, 不过RSS我是一直没有弄好. 之后查到了gkrellm, 体积果然小了很多. 试了一下,的确挺好, 而且支持皮肤. 有个BubbleFishyMon插件, 形象, 可爱而实用. 另外还搜到了conky, 据说也挺不错,以后再试试吧

gnome 左手鼠标样式

最近想使用左手鼠标, 不过左手用右手鼠标指针有些别扭, 然后搜了搜, 真的有左手鼠标. 比如我最喜欢的ComixCursors. gnome-look上很多鼠标样式都带有左手版本, 以'LH'标示 ,实际上一开始我注意到了, 而且还觉得很奇怪, 鼠标样式还能有特殊版本么? 另外发现这个鼠标样式体积还不小, 两个ComixCursors解压后竟然200多兆, 看来多余的一定要删啊

Gnome 桌面主题

发现一个不错的gnome主题网站 http://www.gnome-look.org 并且尝试了里面的很多主题包, 最后用的搭配是 Login Window: Avio-GDM Controls: Murrina Relax v0.3 Windows Border: Alphacube 1.0 Metacity Simple Icons: nuoveXT-1.6 Mouse: ComixCursors-Green-Large 还不错.