Advertisement
Guest User

Untitled

a guest
May 20th, 2023
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 5.09 KB | None | 0 0
  1. ;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
  2.  
  3. ;; Place your private configuration here! Remember, you do not need to run 'doom
  4. ;; sync' after modifying this file!
  5.  
  6.  
  7. ;; Some functionality uses this to identify you, e.g. GPG configuration, email
  8. ;; clients, file templates and snippets. It is optional.
  9. (setq user-full-name "John Doe"
  10.       user-mail-address "[email protected]")
  11.  
  12. ;; Doom exposes five (optional) variables for controlling fonts in Doom:
  13. ;;
  14. ;; - `doom-font' -- the primary font to use
  15. ;; - `doom-variable-pitch-font' -- a non-monospace font (where applicable)
  16. ;; - `doom-big-font' -- used for `doom-big-font-mode'; use this for
  17. ;;   presentations or streaming.
  18. ;; - `doom-unicode-font' -- for unicode glyphs
  19. ;; - `doom-serif-font' -- for the `fixed-pitch-serif' face
  20. ;;
  21. ;; See 'C-h v doom-font' for documentation and more examples of what they
  22. ;; accept. For example:
  23. ;;
  24. ;;(setq doom-font (font-spec :family "Fira Code" :size 12 :weight 'semi-light)
  25. ;;      doom-variable-pitch-font (font-spec :family "Fira Sans" :size 13))
  26. ;;
  27. ;; If you or Emacs can't find your font, use 'M-x describe-font' to look them
  28. ;; up, `M-x eval-region' to execute elisp code, and 'M-x doom/reload-font' to
  29. ;; refresh your font settings. If Emacs still can't find your font, it likely
  30. ;; wasn't installed correctly. Font issues are rarely Doom issues!
  31.  
  32. ;; There are two ways to load a theme. Both assume the theme is installed and
  33. ;; available. You can either set `doom-theme' or manually load a theme with the
  34. ;; `load-theme' function. This is the default:
  35. (setq doom-theme 'doom-tomorrow-night)
  36.  
  37. ;; This determines the style of line numbers in effect. If set to `nil', line
  38. ;; numbers are disabled. For relative line numbers, set this to `relative'.
  39. (setq display-line-numbers-type t)
  40.  
  41. ;; If you use `org' and don't want your org files in the default location below,
  42. ;; change `org-directory'. It must be set before org loads!
  43. (setq org-directory "~/org/")
  44.  
  45. ;; Whenever you reconfigure a package, make sure to wrap your config in an
  46. ;; `after!' block, otherwise Doom's defaults may override your settings. E.g.
  47. ;;
  48. ;;   (after! PACKAGE
  49. ;;     (setq x y))
  50. ;;
  51. ;; The exceptions to this rule:
  52. ;;
  53. ;;   - Setting file/directory variables (like `org-directory')
  54. ;;   - Setting variables which explicitly tell you to set them before their
  55. ;;     package is loaded (see 'C-h v VARIABLE' to look up their documentation).
  56. ;;   - Setting doom variables (which start with 'doom-' or '+').
  57. ;;
  58. ;; Here are some additional functions/macros that will help you configure Doom.
  59. ;;
  60. ;; - `load!' for loading external *.el files relative to this one
  61. ;; - `use-package!' for configuring packages
  62. ;; - `after!' for running code after a package has loaded
  63. ;; - `add-load-path!' for adding directories to the `load-path', relative to
  64. ;;   this file. Emacs searches the `load-path' when you load packages with
  65. ;;   `require' or `use-package'.
  66. ;; - `map!' for binding new keys
  67. ;;
  68. ;; To get information about any of these functions/macros, move the cursor over
  69. ;; the highlighted symbol at press 'K' (non-evil users must press 'C-c c k').
  70. ;; This will open documentation for it, including demos of how they are used.
  71. ;; Alternatively, use `C-h o' to look up a symbol (functions, variables, faces,
  72. ;; etc).
  73. ;;
  74. ;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
  75. ;; they are implemented.
  76.  
  77.  
  78. ;; (set-frame-parameter nil 'alpha 85)
  79. (setq display-time-default-load-average nil)
  80. (display-time-mode t)
  81.  
  82. (require 'exwm)
  83. (require 'exwm-config)
  84.  
  85. (require 'exwm-randr)
  86. (setq exwm-randr-workspace-monitor-plist '(2 "HDMI-0"))
  87. (add-hook 'exwm-randr-screen-change-hook
  88.           (lambda ()
  89.             (start-process-shell-command
  90.              "xrandr" nil "xrandr --output HDMI-0 --noprimary --mode 1920x1080 --rotate normal --left-of-DP-4 --output DP-4 --primary --mode 1920x1080 --rotate normal --refresh 240")))
  91. (exwm-randr-enable)
  92.  
  93. (defun efs/exwm-update-class ()
  94.   (exwm-workspace-rename-buffer exwm-class-name))
  95.  
  96. (use-package exwm
  97.  :config
  98.  (setq exwm-workspace-number 5)
  99.  
  100.  (define-key exwm-mode-map [?\C-q] 'exwm-input-send-next-key)
  101.  
  102.  (setq exwm-input-prefix-keys
  103.       '(?\C-x ;; change? - may inpact gaming. Think crouch + molly csgo.
  104.         ?\M-x
  105.         ?\S-h ;; window management
  106.         ?\S-j
  107.         ?\S-k
  108.         ?\S-l))
  109.  
  110.  (setq exwm-input-global-keys
  111.        '(
  112.          ([s-left] . windmove-left)
  113.          ([s-down] . windmove-down)
  114.          ([s-up] . windmove-up)
  115.          ([s-right] . windmove-right)
  116.          ([?\s-h] . windmove-left)
  117.          ([?\s-j] . windmove-down)
  118.          ([?\s-k] . windmove-up)
  119.          ([?\s-l] . windmove-right)
  120.  
  121.          ([s-S-left] . windmove-swap-states-left)
  122.          ([s-S-down] . windmove-swap-states-down)
  123.          ([s-S-up] . windmove-swap-states-up)
  124.          ([s-S-right] . windmove-swap-states-right)
  125.          ([?\s-H] . windmove-swap-states-left)
  126.          ([?\s-J] . windmove-swap-states-down)
  127.          ([?\s-K] . windmove-swap-states-up)
  128.          ([?\s-L] . windmove-swap-states-right)
  129.  
  130.          ([?\s-r] . exwm-reset)
  131.  
  132. )))
  133.  
  134. (exwm-enable)
  135.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement