首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在瓦片模式下的空格与urxvt

在瓦片模式下的空格与urxvt
EN

Unix & Linux用户
提问于 2020-04-20 15:38:18
回答 1查看 797关注 0票数 -1

我使用终端urxvtrxvt-unicode,它以.Xresources为基础。这在带有archlinuxawesomewm上运行。我有以下.Xresources代码:

代码语言:javascript
复制
!-------------------------------------------------------------------------------
! Xft settings
!-------------------------------------------------------------------------------

Xft.dpi:                    96
Xft.antialias:              false
Xft.rgba:                   rgb
Xft.hinting:                true 
Xft.hintstyle:              hintslight

URxvt.dept10h:              32
URxvt.geometry:             100x25
URxvt.transparent:          false
URxvt.fading:               0
! URxvt.urgentOnBell:         true
! URxvt.visualBell:           true
URxvt.loginShell:           true
URxvt.saveLines:            500
URxvt.internalBorder:       20 ! DEFAULT = 3 
URxvt.lineSpace:            0 

! Fonts
URxvt.allow_bold:           true
URxvt*font: xft:DejaVu Sans Mono:style=Regular:pixelsize=12
URxvt*boldFont: xft:DejaVu Sans Mono:style=Bold:pixelsize=13
URxvt*italicFont: xft:DejaVu Sans Mono:style=Italic:pixelsize=13
URxvt*boldItalicFont: xft:DejaVu Sans Mono:style=Bold Italic:pixelsize=13
URxvt*letterSpace: 0 ! Fix font space

! Scrollbar
URxvt.scrollStyle:          rxvt
URxvt.scrollBar:            false

! Perl extensions
URxvt.perl-ext-common:      default,matcher,clipboard,selection-to-clipboard
URxvt.matcher.button:       1
URxvt.urlLauncher:          firefox
URxvt.matcher.rend.0: Uline Bold fg5

! Copy and paste
URxvt.clipboard.autocopy: true
URxvt.keysym.M-c: perl:clipboard:copy
URxvt.keysym.M-v: perl:clipboard:paste

! Cursor
URxvt.cursorBlink:          true
URxvt.cursorColor:          #657b83
URxvt.cursorUnderline:      false

! Pointer
URxvt.pointerBlank:         true


!!*fading: 40
*fadeColor: #002b36
*cursorColor: #93a1a1
*pointerColorBackground: #586e75
*pointerColorForeground: #93a1a1

URxvt*background: #151515
URxvt*foreground: #f7f7f7
!black
URxvt*color0: #101010
URxvt*color8: #404040
!red
URxvt*color1: #e5211d 
URxvt*color9: #ad3430 
!green
URxvt*color2: #77a026 
URxvt*color10: #94db43 
!yellow
URxvt*color3: #d2dd30 
URxvt*color11: #ddef56 
!blue
URxvt*color4: #2e97ba 
URxvt*color12: #77c6e5 
!magenta
URxvt*color5: #c42b7f 
URxvt*color13: #ef6bd5 
!cyan
URxvt*color6: #25b1c6 
URxvt*color14: #70e0ef 
!white
URxvt*color7: #dddddd
URxvt*color15: #ffffff

当我在awesomewm上使用贴图模式时,终端窗口会在底部帧和右边帧中留下空格。

为了显示预期的结果,我在平铺模式中使用了termite (只考虑了窗口,而不是透明或其他主题):

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2020-05-01 19:49:40

最后,通过将c.size_hints_honor = false行添加到client.connect_signal方法中,从rc.lua (awesomewm配置文件)解决了这个问题:

代码语言:javascript
复制
client.connect_signal("manage", function (c)
    c.size_hints_honor = false
    if awesome.startup
      and not c.size_hints.user_position
      and not c.size_hints.program_position then
        awful.placement.no_offscreen(c)
    end
end)

这样,窗口管理器将忽略使用提示来定义大小的应用程序。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/581346

复制
相关文章

相似问题

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