;;; bandali-exwm.el --- bandali's EXWM configuration -*- lexical-binding: t; -*-
-;; Copyright (C) 2018-2022 Amin Bandali
+;; Copyright (c) 2018-2023 Amin Bandali
;; Author: Amin Bandali <bandali@gnu.org>
;; Keywords: tools
(add-to-list 'load-path (b/lisp "xelb"))
(add-to-list 'load-path (b/lisp "exwm"))
(require 'exwm)
-(setq ;; exwm-replace t
- exwm-workspace-show-all-buffers t)
+;; (setq exwm-replace t)
;; make class name the buffer name, truncating beyond 60 characters
(defun b/exwm-rename-buffer ()
(interactive)
([?\s-\;] . (lambda ()
(interactive)
(start-process-shell-command
- "dmneu-pamixer" nil "dmenu-pamixer")))
+ "dmneu-pamixer" nil "dmenu-pamixer")
+ (b/volume-update)))
([XF86AudioMute] . ; borken on my X200 :-(
(lambda ()
(interactive)
- (start-process "" nil "pamixer" "--toggle-mute")))
+ (start-process "" nil "pamixer" "--toggle-mute")
+ (b/volume-update)))
+ ([\s-XF86AudioMute] . ; toggle mic mute
+ (lambda ()
+ (interactive)
+ (start-process
+ "" nil "pamixer" "--default-source" "--toggle-mute")
+ (b/volume-update)))
([XF86Launch1] .
(lambda ()
(interactive)
- (start-process "" nil "pamixer" "--toggle-mute")))
+ (start-process "" nil "pamixer" "--toggle-mute")
+ (b/volume-update)))
([\s-XF86Launch1] . ; toggle mic mute
(lambda ()
(interactive)
(start-process
- "" nil "pamixer" "--default-source" "--toggle-mute")))
+ "" nil "pamixer" "--default-source" "--toggle-mute")
+ (b/volume-update)))
([XF86AudioLowerVolume] .
(lambda ()
(interactive)
(start-process
- "" nil "pamixer" "--allow-boost" "--decrease" "5")))
+ "" nil "pamixer" "--allow-boost" "--decrease" "5")
+ (b/volume-update)))
([XF86AudioRaiseVolume] .
(lambda ()
(interactive)
(start-process
- "" nil "pamixer" "--allow-boost" "--increase" "5")))
+ "" nil "pamixer" "--allow-boost" "--increase" "5")
+ (b/volume-update)))
+ ([\s-XF86AudioLowerVolume] .
+ (lambda ()
+ (interactive)
+ (start-process
+ "" nil "pamixer" "--default-source" "--decrease" "5")
+ (b/volume-update)))
+ ([\s-XF86AudioRaiseVolume] .
+ (lambda ()
+ (interactive)
+ (start-process
+ "" nil "pamixer" "--default-source" "--increase" "5")
+ (b/volume-update)))
([XF86AudioPlay] .
(lambda ()
(interactive)
(start-process "" nil "light" "-A" "5")))
([XF86ScreenSaver] .
(lambda ()
- (interactive)
- (start-process "" nil "dm-tool" "lock")))
+ (interactive)
+ (start-process "" nil "dm-tool" "lock")))
([\s-XF86Back] . previous-buffer)
([\s-XF86Forward] . next-buffer)))
(require 'exwm-edit)
(with-eval-after-load 'exwm-workspace
+ (setq exwm-workspace-show-all-buffers t)
(setq-default
mode-line-format
(append
'((:eval
(format
" [%s]" (number-to-string
- exwm-workspace-current-index)))))))
+ exwm-workspace-current-index)))))))
+
+(with-eval-after-load 'exwm-layout
+ (setq exwm-layout-show-all-buffers t))
(provide 'bandali-exwm)
;;; bandali-exwm.el ends here