<commit_before>;;; exwm-conf.el -- Setting for EXWM.
;;
;; https://github.com/ch11ng/exwm
(eval-when-compile
  (require 'exwm))

(defun pjones:exwm-update-class-hook ()
  "Update shit after a class name changes."
  (exwm-workspace-rename-buffer exwm-class-name))

(custom-set-variables
  '(exwm-workspace-number 9)

  ;; Simulated key presses to X Windows.
  '(exwm-input-simulation-keys
    '(([?\C-b] . [left])
      ([?\C-f] . [right])
      ([?\C-p] . [up])
      ([?\C-n] . [down])
      ([?\C-a] . [home])
      ([?\C-e] . [end])
      ([?\M-v] . [prior])
      ([?\C-v] . [next])
      ([?\C-d] . [delete])
      ([?\C-k] . [S-end delete]))))

(exwm-input-set-key (kbd "s-r")   #'exwm-reset)
(exwm-input-set-key (kbd "s-w")   #'exwm-workspace-switch)
(add-hook 'exwm-update-class-hook #'pjones:exwm-update-class-hook)<commit_msg>Add some EXWM settings that require a restart<commit_after>;;; exwm-conf.el -- Setting for EXWM.
;;
;; https://github.com/ch11ng/exwm
(eval-when-compile
  (require 'exwm))

;; Load optional EXWM features:
(require 'exwm-randr)
(require 'exwm-systemtray)

(defun pjones:exwm-update-class-hook ()
  "Update shit after a class name changes."
  (exwm-workspace-rename-buffer exwm-class-name))

(custom-set-variables
   ;; Move minibuffer to the top of the screen and auto hide:
   '(exwm-workspace-minibuffer-position 'top)

   ;; Number of workspaces:
  '(exwm-workspace-number 9)

  ;; RandR settings:
  '(exwm-randr-workspace-output-plist '(0 "eDP1"))

  ;; Simulated key presses to X Windows:
  '(exwm-input-simulation-keys
    '(([?\C-b] . [left])
      ([?\C-f] . [right])
      ([?\C-p] . [up])
      ([?\C-n] . [down])
      ([?\C-a] . [home])
      ([?\C-e] . [end])
      ([?\M-v] . [prior])
      ([?\C-v] . [next])
      ([?\C-d] . [delete])
      ([?\C-k] . [S-end delete]))))

(exwm-input-set-key (kbd "s-r") #'exwm-reset)
(exwm-input-set-key (kbd "s-w") #'exwm-workspace-switch)

;; Activate optional features:
(exwm-randr-enable)
(exwm-systemtray-enable)

;; Insert some hooks:
(add-hook 'exwm-update-class-hook #'pjones:exwm-update-class-hook)
{'fraction_non_alphanumeric': 0.22418738049713194, 'fraction_numerical': 0.0038240917782026767, 'mean_word_length': 2.8687615526802217, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 2, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1502953', 'n_tokens_mistral': 916, 'n_tokens_neox': 873, 'n_words': 167}