无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

HiDPI(高分屏) Hyprland 安裝配置

2023-07-13 23:29 作者:st-_-st  | 我要投稿

由于我的電腦不是高分屏的,所以在我電腦上測試的結果可能會有寫偏差,如果遇到了什么問題,可以在評論區(qū)留言,十分感謝!!!

非高分屏看這篇文章,這篇文章還有對一些細節(jié)進行描述


安裝

可以使用paru或者yay安裝(以paru為例):?

// 安裝對應的HiDPI版本

paru -S xorg-xwayland-hidpi-xprop wlroots-hidpi-xprop-git hyprland-hidpi-xprop-git? ??

paru -S xorg-xrdb? ? //配置xwayland的DPI



高分屏配置2倍縮放

配置 ~/.config/hyprland.conf :?


# 配置wayland的縮放為兩倍

monitor = ,highres,auto,2? ? ? ?

# 告訴 wayland xwayland它自己會縮放兩倍,讓 wayland 不要管 xwayland 的縮放

exec-once = xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE 2? ??

# 設置 xwayland 的 DPI 192, 一倍的 DPI 為96, 2倍即為192

exec-once = echo 'Xft.dpi:192' | xrdb -merge

# 設置 xwayland 下 gtk 的縮放,不會影響 wayland 下 gtk 的縮放

env = GDK_SCALE,2? ? ? ?# 這一行我不確定要不要,可以嘗試一下

# 設置 xwayalnd 鼠標圖標的大小

env = XCURSOR_SIZE,32

非整數(shù)縮放

HiDPI 版本的 hyprland 依舊不支持非整數(shù)縮放,所以 `monitor = ,highres,auto,2`,`exec-once = xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE 2` 都必須為2

如果2倍仍不夠,依舊保持上面的為2,然后照下面的配置(以2.5倍為例,即DPI為240)


xwayland(所有框架的應用基本都用這個) :

????????????exec-once = echo 'Xft.dpi:240' | xrdb -merge

????????????env = GDK_SCALE,2? ? ? ?#?這一行我不確定要不要,可以嘗試一下

????????????env = XCURSOR_SIZE,32


wayland(不同框架的應用配置方式不同):?

? ? ? ? ? ? gtk3(安裝dconf,dconf-editor): 設置dconf-editor?的???????? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??? ?????????????? ? ? ? ? ????/org/gnome/desktop/interface/text-scaling-factor 改字體縮放為2.5,?

? ? ? ? ? ? ? ?? ?????/org/gnome/desktop/interface/scaling-factor 改界面縮放(貌似沒用).


? ? ? ? ? ?QT: export QT_WAYLAND_FORCE_DPI=240? ?比如OBS必須在wayalnd下運行


? ? ? ? ? ?electron: 運行electron時加參數(shù)`--force-device-scale-factor`,有輸入法和顯示bug(建議electron在xwayland下運行,默認是在xwayland下運行)


? ? ? ? ? ? fcitx5: 設置輸入框的DPI:?

?fcitx5-configtool->Addons -> Classic User Interface -> ? Use Per Screen DPI

?fcitx5-configtool->Addons -> Classic User Interface?-> Force Font DPI on Wayland 240


? ? ? ? ? ?其他: 像waybar這種就調(diào)一下字體大小就行


? ? ? ? ? ?詳情參考: https://wiki.archlinux.org/title/HiDPI#GUI_toolkits





HiDPI(高分屏) Hyprland 安裝配置的評論 (共 條)

分享到微博請遵守國家法律
获嘉县| 郁南县| 林周县| 江达县| 文安县| 沙田区| 石河子市| 柯坪县| 山丹县| 枣强县| 上林县| 汤阴县| 丁青县| 广德县| 德惠市| 新泰市| 冀州市| 仁怀市| 泸州市| 巩义市| 黑龙江省| 阿坝| 宜良县| 巨野县| 武邑县| 佛教| 秀山| 德令哈市| 鄯善县| 额尔古纳市| 成武县| 庆城县| 准格尔旗| 固镇县| 屏边| 平昌县| 商都县| 古丈县| 安西县| 朝阳县| 万载县|