feat(HiDPI): Nouvel écran = adaptation de la config.

This commit is contained in:
Olivier DOSSMANN 2024-03-30 22:03:06 +01:00
parent f082f7d281
commit 4d2528b89e
6 changed files with 43 additions and 13 deletions

View File

@ -65,3 +65,25 @@ rofi.color-window: #002b37, #002b37, #003642
rofi.color-normal: #002b37, #819396, #002b37, #003642, #819396 rofi.color-normal: #002b37, #819396, #002b37, #003642, #819396
rofi.color-active: #002b37, #008ed4, #002b37, #003642, #008ed4 rofi.color-active: #002b37, #008ed4, #002b37, #003642, #008ed4
rofi.color-urgent: #002b37, #da4281, #002b37, #003642, #da4281 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

View File

@ -1,3 +1,7 @@
# Permet à Chromium de se lancer dans Wayland # Permet à Chromium de se lancer dans Wayland
--enable-features=UseOzonePlatform #--enable-features=UseOzonePlatform
--ozone-platform=wayland #--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

View File

@ -2,3 +2,8 @@
MOZ_ENABLE_WAYLAND=1 MOZ_ENABLE_WAYLAND=1
# Modifie le comportement JAVA pour PHPStorm # Modifie le comportement JAVA pour PHPStorm
_JAVA_AWT_WM_NONREPARENTING=1 _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

View File

@ -22,7 +22,7 @@ set $mod Mod4
# This font is widely installed, provides lots of unicode glyphs, right-to-left # This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango). # 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: # 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 # 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) # start dmenu (a program launcher)
#bindsym $mod+d exec dmenu_run #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 # 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 # shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed. # installed.

View File

@ -18,7 +18,7 @@ bold_font Fira Code Bold
bold_italic_font Fira Code Retina bold_italic_font Fira Code Retina
# Font size (in pts) # 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 amount the font size is changed by (in pts) when increasing/decreasing
# the font size in a running terminal. # 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 # in the editor color scheme. Or use the escape codes to set the terminals
# default colors in a shell script to launch your editor. # 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. # 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 # The foreground for selections
selection_foreground #93a1a1 selection_foreground #93a1a1

View File

@ -21,7 +21,7 @@ alert = #bd2c40
[bar/default] [bar/default]
;monitor = ${env:MONITOR:HDMI-1} ;monitor = ${env:MONITOR:HDMI-1}
width = 100% width = 100%
height = 27 height = 45
;offset-x = 1% ;offset-x = 1%
;offset-y = 1% ;offset-y = 1%
radius = 0 radius = 0
@ -30,29 +30,28 @@ fixed-center = false
background = ${colors.background} background = ${colors.background}
foreground = ${colors.foreground} foreground = ${colors.foreground}
line-size = 3 line-size = 5
line-color = #f00 line-color = #f00
border-size = 0 border-size = 0
border-color = #00000000 border-color = #00000000
padding-left = 0 padding-left = 0
padding-right = 2 padding-right = 1
module-margin-left = 0 module-margin-left = 0
module-margin-right = 1 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 = unifont:fontformat=truetype:size=8:antialias=false;0
font-1 = FontAwesome:size=10 font-1 = FontAwesome:size=21
font-2 = siji:pixelsize=10;1 font-2 = siji:pixelsize=21;1
modules-left = i3 modules-left = i3
modules-center = xwindow modules-center = xwindow
modules-right = xbacklight pulseaudio memory cpu wlan eth battery temperature date powermenu modules-right = xbacklight pulseaudio memory cpu wlan eth battery temperature date powermenu
tray-position = right tray-position = right
tray-padding = 2
;tray-transparent = true ;tray-transparent = true
;tray-background = #0063ff ;tray-background = #0063ff