Tweaks to appearance and setting up multi monitor support for EXWM

This commit is contained in:
Curt Spark 2025-01-09 22:59:07 +00:00
parent 70fa778b32
commit d9e942075b
1 changed files with 17 additions and 3 deletions

View File

@ -230,7 +230,7 @@ Install the package, enable it and ensure that it always is installed:
#+BEGIN_SRC emacs-lisp
;;(set-frame-font "Deja Vu Sans Mono 14")
(set-frame-font "SFMono Nerd Font 14")
(add-hook 'prog-mode-hook (lambda () (text-scale-increase 4)))
(add-hook 'prog-mode-hook (lambda () (text-scale-increase 2)))
#+END_SRC
*** Emacs Dashboard
A startup dashboard for Emacs, replacing the boring old one.
@ -432,6 +432,11 @@ Eat is a terminal emulator that can integrate nicely with eshell, allows us to r
(add-hook 'eshell-load-hook #'eat-eshell-visual-command-mode)
)
#+END_SRC
*** Terminal Colours
Ensure eshell has terminal colours.
#+BEGIN_SRC emacs-lisp
(add-hook 'eshell-mode-hook (lambda () (setenv "TERM" "xterm-256color")))
#+END_SRC
** Default Shell
Set the default shell used to run commands.
#+BEGIN_SRC emacs-lisp
@ -1532,13 +1537,20 @@ Install the package, enable it and ensure that it always is installed, and then
;; Mouse input/bindings
(require 'exwm-input)
;; Set number of workspaces by default
(setq exwm-workspace-number 10)
;; EXWM Randr, makes sure that the screens automatically update with the proper resolutions
;; You may want to install a program such as arandr to graphically manage the screens and resolutions, you can export it into Xrandr commands
(require 'exwm-randr)
(exwm-randr-mode)
(setq exwm-randr-workspace-monitor-plist '(0 "DP-3" 1 "DP-3" 2 "DP-3" 3 "DP-3" 4 "DP-3" 5 "HDMI-1" 6 "HDMI-1" 7 "HDMI-1" 8 "HDMI-1" 9 "HDMI-1"))
(start-process-shell-command "xrandr1" nil "xrandr --output DP-3 --mode 1920x1080 --rate 239.97")
(start-process-shell-command "xrandr2" nil "xrandr --output HDMI-1 --mode 1920x1080 --rate 60 --rotate right")
(setq exwm-workspace-warp-cursor t)
;; Set number of workspaces by default
(setq exwm-workspace-number 10)
(defun exwm-switch-workspace-left ()
"Switch one workspace to the left"
@ -1654,6 +1666,8 @@ Install the package, enable it and ensure that it always is installed, and then
(exwm-input-set-key (kbd "<M-RET>") 'eshell)
(exwm-input-set-key (kbd "M-E") '(start-process-shell-command "pkill" nil "pkill emacs"))
;; (exwm-input-set-key (kbd "s-i") 'exwm-input-toggle-keyboard)
;; (exwm-input-set-key (kbd "s-h") 'exwm-switch-workspace-left)