首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Guake终端的顶部还有空间。

Guake终端的顶部还有空间。
EN

Ask Ubuntu用户
提问于 2013-04-28 10:42:08
回答 2查看 3.2K关注 0票数 11

当在13.04启动Guake终端时,顶部仍有1到2厘米的空间。也就是说,THe guake终端的顶部边框是屏幕顶部边缘下方的1-2厘米。

我怎样才能解决这个问题,因为它在12.10中运行得很好。

根据所选的答案,它现在移到了顶部,好的,但是有没有人对两边的两行小字有任何想法?( :)它一直困扰着我。

EN

回答 2

Ask Ubuntu用户

回答已采纳

发布于 2013-04-28 19:23:13

你可以通过让重力向上移动来解决这个问题。不,说真的;)

您需要对文件/usr/share/guake/guake.glade做一个简单的更改。使用您最喜欢的文本编辑器打开该文件,并查找以下行:

代码语言:javascript
复制
<property name="gravity">static</property>

把那条线改了,这样它就写了

代码语言:javascript
复制
<property name="gravity">north</property>

保存文件,重新启动Guake,空白就会消失。

票数 17
EN

Ask Ubuntu用户

发布于 2013-05-29 08:14:48

瓜克林场使航站楼回溯到门努巴,我用nano /usr/bin/guake做过。

找到这个并在返回前添加window_rect.y = 25

代码语言:javascript
复制
def get_final_window_rect(self):
        """Gets the final size of the main window of guake. The height
        is the window_height property, width is window_width and the
        horizontal alignment is given by window_alignment.
        """
        screen = self.window.get_screen()
        height = self.client.get_int(KEY('/general/window_height'))
        width = 100
        halignment = self.client.get_int(KEY('/general/window_halignment'))

        # get the rectangle just from the first/default monitor in the
        # future we might create a field to select which monitor you
        # wanna use
        window_rect = screen.get_monitor_geometry(0)
        total_width = window_rect.width
        window_rect.height = window_rect.height * height / 100
        window_rect.width = window_rect.width * width / 100

        if width < total_width:
            if halignment == ALIGN_CENTER:
                window_rect.x = (total_width - window_rect.width) / 2
            elif halignment == ALIGN_LEFT:
                window_rect.x = 0
            elif halignment == ALIGN_RIGHT:
                window_rect.x = total_width - window_rect.width
        window_rect.y = 25 # <<<<<<<<<<<<<<<<<<<<< here
        return window_rect
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/287204

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档