aboutsummaryrefslogtreecommitdiff
path: root/.exwm
diff options
context:
space:
mode:
Diffstat (limited to '.exwm')
-rw-r--r--.exwm9
1 files changed, 9 insertions, 0 deletions
diff --git a/.exwm b/.exwm
index 9398634..25e5aba 100644
--- a/.exwm
+++ b/.exwm
@@ -27,4 +27,13 @@
(call-process-shell-command "setxkbmap -option ctrl:nocaps")
+(defun exwm-rename-buffer ()
+ (interactive)
+ (exwm-workspace-rename-buffer
+ (concat exwm-class-name ":"
+ (if (<= (length exwm-title) 50) exwm-title
+ (concat (substring exwm-title 0 49) "...")))))
+(add-hook 'exwm-update-class-hook 'exwm-rename-buffer)
+(add-hook 'exwm-update-title-hook 'exwm-rename-buffer)
+
(exwm-config-example)