From a285a2ced12b0a66fa8f9e0d986a527a5f355a39 Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Sat, 30 Mar 2024 22:03:06 +0100 Subject: [PATCH] =?UTF-8?q?feat(HiDPI):=20Nouvel=20=C3=A9cran=20=3D=20adap?= =?UTF-8?q?tation=20de=20la=20config.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .Xresources | 22 ++++++++++++++++++++++ .config/chromium-flags.conf | 8 ++++++-- .config/environment.d/envvars.conf | 5 +++++ .config/i3/config | 4 ++-- .config/kitty/kitty.conf | 4 ++-- .config/polybar/config | 13 ++++++------- 6 files changed, 43 insertions(+), 13 deletions(-) diff --git a/.Xresources b/.Xresources index e6cffb6..14706af 100644 --- a/.Xresources +++ b/.Xresources @@ -65,3 +65,25 @@ rofi.color-window: #002b37, #002b37, #003642 rofi.color-normal: #002b37, #819396, #002b37, #003642, #819396 rofi.color-active: #002b37, #008ed4, #002b37, #003642, #008ed4 rofi.color-urgent: #002b37, #da4281, #002b37, #003642, #da4281 +rofi.font: DejaVu 18 + +! ------------------------------------- +! DPI pour écran très haute résolution +! ------------------------------------- + +Xft.dpi: 200 + +! These might also be useful depending on your monitor and personal preference: +Xft.autohint: 0 +Xft.lcdfilter: lcddefault +Xft.hintstyle: hintfull +Xft.hinting: 1 +Xft.antialias: 1 +Xft.rgba: rgb + + +! -------------------------------------------------------- +! Pour la police de xterm (pour Stardew Valley notamment) +! -------------------------------------------------------- + +XTerm.vt100.faceName: DejaVu Sans Mono:size=13:antialias=false diff --git a/.config/chromium-flags.conf b/.config/chromium-flags.conf index 72e11f1..b1df592 100644 --- a/.config/chromium-flags.conf +++ b/.config/chromium-flags.conf @@ -1,3 +1,7 @@ # Permet à Chromium de se lancer dans Wayland ---enable-features=UseOzonePlatform ---ozone-platform=wayland \ No newline at end of file +#--enable-features=UseOzonePlatform +#--ozone-platform=wayland +# Permet de gérer l'écran HiDPI +--force-device-scale-factor=2 +# Désactive l'accélération graphique mal gérée sous Chromium +#--disable-gpu diff --git a/.config/environment.d/envvars.conf b/.config/environment.d/envvars.conf index 058986d..250d906 100644 --- a/.config/environment.d/envvars.conf +++ b/.config/environment.d/envvars.conf @@ -2,3 +2,8 @@ MOZ_ENABLE_WAYLAND=1 # Modifie le comportement JAVA pour PHPStorm _JAVA_AWT_WM_NONREPARENTING=1 +# Pour la résolution HiDPI +GDK_SCALE=2 +GDK_DPI_SCALE=0.5 +QT_AUTO_SCREEN_SCALE_FACTOR=1 +QT_ENABLE_HIGHDPI_SCALING=1 diff --git a/.config/i3/config b/.config/i3/config index 78861a2..0bba971 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -22,7 +22,7 @@ set $mod Mod4 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). -font pango:DejaVu Sans Mono 10 +font pango:DejaVu Sans Mono 18 # Before i3 v4.8, we used to recommend this one as the default: # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 @@ -42,7 +42,7 @@ bindsym $mod+Shift+A kill # start dmenu (a program launcher) #bindsym $mod+d exec dmenu_run -bindsym $mod+d exec rofi -show combi +bindsym $mod+d exec rofi -show combi -font "DejaVu Sans Mono 20" # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf index 65fdc9b..b12980a 100644 --- a/.config/kitty/kitty.conf +++ b/.config/kitty/kitty.conf @@ -18,7 +18,7 @@ bold_font Fira Code Bold bold_italic_font Fira Code Retina # Font size (in pts) -font_size 14.0 +font_size 13.0 # The amount the font size is changed by (in pts) when increasing/decreasing # the font size in a running terminal. @@ -55,7 +55,7 @@ background #002b36 # in the editor color scheme. Or use the escape codes to set the terminals # default colors in a shell script to launch your editor. # Be aware that using a value less than 1.0 is a (possibly significant) performance hit. -#background_opacity 0.87 +background_opacity 0.87 # The foreground for selections selection_foreground #93a1a1 diff --git a/.config/polybar/config b/.config/polybar/config index 6388247..29d9906 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -21,7 +21,7 @@ alert = #bd2c40 [bar/default] ;monitor = ${env:MONITOR:HDMI-1} width = 100% -height = 27 +height = 45 ;offset-x = 1% ;offset-y = 1% radius = 0 @@ -30,29 +30,28 @@ fixed-center = false background = ${colors.background} foreground = ${colors.foreground} -line-size = 3 +line-size = 5 line-color = #f00 border-size = 0 border-color = #00000000 padding-left = 0 -padding-right = 2 +padding-right = 1 module-margin-left = 0 module-margin-right = 1 -font-0 = DejaVu Sans Mono:size=10.5;1 +font-0 = DejaVu Sans Mono:size=21;1 ;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 -font-1 = FontAwesome:size=10 -font-2 = siji:pixelsize=10;1 +font-1 = FontAwesome:size=21 +font-2 = siji:pixelsize=21;1 modules-left = i3 modules-center = xwindow modules-right = xbacklight pulseaudio memory cpu wlan eth battery temperature date powermenu tray-position = right -tray-padding = 2 ;tray-transparent = true ;tray-background = #0063ff