AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题 / 534704
Accepted
nobody
nobody
Asked: 2019-08-10 03:32:37 +0800 CST2019-08-10 03:32:37 +0800 CST 2019-08-10 03:32:37 +0800 CST

mwm 光标大小

  • 772

我在 CentOS 7 上的一个 Xorg 屏幕上遇到光标大小问题。我有两个屏幕。一个运行 xfce4 窗口管理器和桌面,而另一个运行 mwm 窗口管理器。这是一个自定义设置,它允许全屏 Motif 应用程序在带有 mwm 的屏幕上运行,以及在 xfce4 屏幕上运行其他应用程序。我还为 Motif 应用程序提供了一种特殊的监视器,它是 2048x2048 分辨率。

我遇到的问题是除了一个游标之外的所有游标在 mwm 上都很大,而在 xfce4 上它们都是正常的。桌面背景上的光标形状“X”是正常尺寸,而其他尺寸过大。

这是一张可以看到超大光标的图片: 在此处输入图像描述

如何更改 mwm 屏幕上的光标大小?我在 Xresources 中尝试过 Xcursor.size,但没有任何效果。

这里还有一些显示光标大小的图片。 在此处输入图像描述 在此处输入图像描述 在此处输入图像描述

另一个更新:

I have tried different window managers to see if cursor size is big there too. KDE, for instance, works fine. However, when I open XTerm window cursors are too big within that window. The app I use also uses Xt and Motif widgets, and also shows big cursors.

在此处输入图像描述 在此处输入图像描述

xorg window-manager
  • 2 2 个回答
  • 2026 Views

2 个回答

  • Voted
  1. nobody
    2019-08-13T23:54:25+08:002019-08-13T23:54:25+08:00

    I have found a solution that works for me.

    At first I inspected sources for mwm, libXm, libX11 to see how could I make programs use smaller cursors. I tried some changes, but realized it would require to much work, recompiling, etc.

    Than I renamed/removed /usr/share/icons/Adwaita/cursors directory. When X did not find oversized cursors installed by adwaita-cursor-theme package any more, the only remaining ones are not as beautiful as Adwaita cursors but are at least of the right size.

    I believe adwaita cursors are required by essential packages, so I cannot afford to delete package adwaita-cursor-theme. I have two options:

    1. Remove cursors directory and use cursors not from this theme. Remaining cursors are probably from cursor font, which is provided with Xorg. They have only two colors, while Adwaita cursors have more colors and shadows.
    2. Resize Adwaita cursors, which should easily be done with Gimp, for instance.

    Final solution: I downloaded adwaita theme sources and created new cursors. There are files *.in where cursor sizes are specified. I edited these files to remove large size cursors and created new cursors with make.sh, which basically calls xcursorgen for each cursor. I put these cursors in /usr/share/icons/Adwaita/cursors and now I have the cursors sized as I want.

    • 1
  2. Best Answer
    Jure Kajzer
    2020-10-01T01:06:42+08:002020-10-01T01:06:42+08:00

    我想我会为后代分享我在这里告诉你的解决方案,因为它不需要重建主题。

    与您的设置类似,我正在为单个全屏应用程序运行 metacity,而无需任何额外的 UI。

    在 ~/.Xresources 中设置正确/所需的光标大小

    Xcursor.size: 22
    

    通过添加到 .xinitrc 在启动 WM 之前使用 xrdb 合并设置,在我的情况下最终是

    xrdb -merge ~/.Xresources && exec metacity
    

    注意:我的设置已本地化为用于 startx 的特定用户,因此是本地配置文件。

    • 1

相关问题

  • 无法设置正确的显示分辨率

  • Arch Linux:在没有窗口管理器的情况下运行 VirtualBox (VM)

  • “错误:无法打开显示::0” - 以其他用户身份运行 GUI 应用程序

  • 如何在 Linux 中禁用硬件加速?

  • base 和 evdev xkb 规则有什么区别?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve