fedora常见问题和解决方案

fedora作为linux主流发行版之一,大部分功能还是很赞的。只是在美观性和其他一些细节上还是需要手工调整才有更加体验。
以下解决方案,使用fedora20+gnome3环境

eclipse界面难看

eclipse中各种按钮组件占用太多的空白空间,看起来臃肿不堪。
解决方法:
添加~/.gtkrc-2.0,内容如下:

style "gtkcompact" { 
  GtkButton::defaultborder={0,0,0,0} 
  GtkButton::defaultoutsideborder={0,0,0,0} 
  GtkButtonBox::childminwidth=0 
  GtkButtonBox::childminheigth=0 
  GtkButtonBox::childinternalpadx=0 
  GtkButtonBox::childinternalpady=0 
  GtkMenu::vertical-padding=1 
  GtkMenuBar::internalpadding=0 
  GtkMenuItem::horizontalpadding=4
  GtkToolbar::internal-padding=0 
  GtkToolbar::space-size=0 
  GtkOptionMenu::indicatorsize=0 
  GtkOptionMenu::indicatorspacing=2 
  GtkPaned::handlesize=4 
  GtkRange::troughborder=0 
  GtkRange::stepperspacing=0 
  GtkScale::valuespacing=0 
  GtkScrolledWindow::scrollbarspacing=0 
  GtkExpander::expandersize=10 
  GtkExpander::expanderspacing=0 
  GtkTreeView::vertical-separator=0 
  GtkTreeView::horizontal-separator=0 
  GtkTreeView::expander-size=8 
  GtkTreeView::fixed-height-mode=TRUE 
  GtkWidget::focuspadding=1 
} 
class "GtkWidget" style "gtkcompact"

style "gtkcompactextra" { 
  xthickness=2 ythickness=2 
} 
class "GtkButton" style "gtkcompactextra"
class "GtkToolbar" style "gtkcompactextra"
class "GtkPaned" style "gtkcompactextra"

效果:

参考http://stackoverflow.com/questions/13684289/can-i-make-eclipse-on-ubuntu-look-more-compact/13687387#13687387

取消光标闪烁

在Gnome-terminal中打开的vim,在看代码的时候总是在闪烁,默认要闪发10次,让人的注意力无法集中。取消vim下的光标闪烁,不是在vimrc中配置。因为这是gnome-terminal的问题。fedora21,gnome3,这么干:

gsettings set org.gnome.desktop.interface cursor-blink false

注意,不是gvim,是vim。还有就是,gconf-editor这个东西打开后找不到/app/terminal这种路径了,乖乖用gsetting好了。

Greatness is never a given, it must be earned.
原文地址:https://www.cnblogs.com/zjutzz/p/4257094.html