Add HIDPI shell export, fix HiDPI in config.org

This commit is contained in:
Riyyi
2020-08-21 21:12:19 +02:00
parent f95833ae75
commit ea6f6995d8
2 changed files with 8 additions and 8 deletions
+5 -8
View File
@@ -126,11 +126,8 @@ Variables for directories, leader keys, etc.
(defvar dot/shell "/bin/zsh" (defvar dot/shell "/bin/zsh"
"Command interpreter binary path.") "Command interpreter binary path.")
(defvar dot/hidpi (defvar dot/hidpi (getenv "HIDPI")
(let (resolution) "Whether the primary screen is HiDPI.")
(setq resolution (nthcdr 3 (assoc 'geometry (car (display-monitor-attributes-list)))))
(>= (* (car resolution) (car (cdr resolution))) (* 2560 1440)))
"Return t if the primary screen is HiDPI, nil otherwise.")
#+END_SRC #+END_SRC
* Customizations * Customizations
@@ -311,8 +308,8 @@ Provides Emacs with a file tree.
(neo-mode-line-type 'none) (neo-mode-line-type 'none)
(neo-show-hidden-files t) (neo-show-hidden-files t)
(neo-vc-integration '(face)) (neo-vc-integration '(face))
:hook (neotree-mode . dot/hook-disable-line-numbers)) :hook (neotree-mode . dot/hook-disable-line-numbers)
:hook (neotree-mode . hl-line-mode) :hook (neotree-mode . hl-line-mode))
#+END_SRC #+END_SRC
*** Centaur Tabs *** Centaur Tabs
@@ -324,7 +321,7 @@ Places buffers as tabs in a bar at the top.
:after all-the-icons :after all-the-icons
:demand :demand
:custom :custom
(centaur-tabs-height (if dot/hidpi 26 18)) (centaur-tabs-height (if dot/hidpi 28 18))
(centaur-tabs-modified-marker "") (centaur-tabs-modified-marker "")
(centaur-tabs-set-icons t) (centaur-tabs-set-icons t)
(centaur-tabs-set-modified-marker t) (centaur-tabs-set-modified-marker t)
+3
View File
@@ -19,6 +19,9 @@ export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc"
export PLATFORMIO_HOME_DIR="$XDG_DATA_HOME/platformio" export PLATFORMIO_HOME_DIR="$XDG_DATA_HOME/platformio"
export R_ENVIRON_USER="$XDG_CONFIG_HOME/R/Renviron" export R_ENVIRON_USER="$XDG_CONFIG_HOME/R/Renviron"
# HiDPI screen
export HIDPI=true
# GPG # GPG
export GNUPGHOME="$XDG_CONFIG_HOME/gnupg" export GNUPGHOME="$XDG_CONFIG_HOME/gnupg"