gnome3的一些杂碎

  • gnome3的美化
    • 最大化时隐藏标题栏
      • 关键是这个文件: /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml
        <frame_geometry name="max" has_title="false" title_scale="medium" parent="normal" rounded_top_left="false" rounded_top_right="false">
        	<distance name="left_width" value="0" />
        	<distance name="right_width" value="0" />
        	<distance name="left_titlebar_edge" value="0"/>
        	<distance name="right_titlebar_edge" value="0"/>
        	<distance name="title_vertical_pad" value="0"/> <!-- 
        							This needs to be 1 less then the
        							title_vertical_pad on normal state
        							or you'll have bigger buttons 								-->
        	<border name="title_border" left="0" right="0" top="0" bottom="0"/>
        	<border name="button_border" left="0" right="0" top="0" bottom="0"/>
        	<distance name="bottom_height" value="0" />
        </frame_geometry>
        找到frame_geometry name="max"的段落,改成上面这样就可以了,当然如果你用的是其他主题,改对应的就行了
    • 修改panel的样式
      • 改默认主题样式文件/usr/share/gnome-shell/theme/gnome-shell.css
        #panel {
            background-color: rgba(0,0,0,0.7);
            font-weight: bold;
            height: 1.86em;
        }
        关键是background-color那一行,把原来的black改成类似于上面这样就可以了
    • 比较好用的shell扩展
      • Dash to dock
      • Weather
      • Alternatetab
      • Application menu
      • User themes
  • 关闭盖子动作
    • gnome3这一点有点坑爹,习惯上一般合上盖子就是关闭屏幕而已,并不会希望休眠,因为有时候长时间下载东西或者其他需要长时间运行的东西一般会把盖子合上省电点嘛,但休眠了,网卡也就关闭了……debian上面的话这一点在org.gnome.settings-daemon.plugins.power里面设置(可以用dconf-editor或者gsettings),找到lid-close-*两项并修改之
      • lid-close-ac-action=>nothing;
      • lid-close-battery-action=>nothing;
    • fedora上面大概是gnome3更新的原因吧,连这两个设置项都没有……只能找到文件/etc/systemd/logind.conf修改其中的HandleLidSwitch为ignore,然后执行
      sudo systemctl restart systemd-logind.service;
  • 右上角的菜单里面没有logout/注销
    • org.gnome.shell.always-show-log-out设置为true,同样dconf-editor和gsettings都可以用
  • 默认集成了ibus,想换fcitx
    • sudo yum remove ibus;
      gsettings set org.gnome.settings-daemon.plugins.keyboard active false;
      sudo yum install fcitx fcitx-pinyin fcitx-sunpinyin;
  • 禁止nautilus自动挂载插入的u盘
    • org.gnome.desktop.media-handling.automount和org.gnome.desktop.media-handling.automount-open两项分别控制自动挂载和自动挂载后用nautilus打开,都是布尔值,设成true/false就行
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值