aboutsummaryrefslogtreecommitdiffstats
path: root/oni/home/services/stumpwm
diff options
context:
space:
mode:
authorGravatar Tom Willemse2023-03-16 16:35:06 -0700
committerGravatar Tom Willemse2023-03-16 16:35:06 -0700
commitd8094dbd63717e1d122f3ca7e1998e9f251057c8 (patch)
treec9e04d2670956ad0a2212befe18ffc5d3de0dca1 /oni/home/services/stumpwm
parent7e621a8a2287fc9c2604b4319436075c5bbbdfac (diff)
downloadnew-dotfiles-d8094dbd63717e1d122f3ca7e1998e9f251057c8.tar.gz
new-dotfiles-d8094dbd63717e1d122f3ca7e1998e9f251057c8.zip
Add stumpwm configuration
Diffstat (limited to 'oni/home/services/stumpwm')
-rw-r--r--oni/home/services/stumpwm/config30
1 files changed, 30 insertions, 0 deletions
diff --git a/oni/home/services/stumpwm/config b/oni/home/services/stumpwm/config
new file mode 100644
index 0000000..170f0db
--- /dev/null
+++ b/oni/home/services/stumpwm/config
@@ -0,0 +1,30 @@
+;; -*- mode: lisp; -*-
+(in-package :stumpwm-user)
+
+(require 'swank)
+
+(set-prefix-key (kbd "s-x"))
+
+(defcommand raise-browser () ()
+ "Open or show my browser"
+ (run-or-raise "firefox" '(:class "firefox")))
+
+(defcommand raise-emacs () ()
+ "Open or show Emacs"
+ (run-or-raise "emacsclient -c" '(:class "Emacs")))
+
+(defcommand raise-terminal () ()
+ "Open or show my terminal"
+ (run-or-raise "kitty" '(:class "kitty")))
+
+(define-key *top-map* (kbd "s-b") "raise-browser")
+(define-key *top-map* (kbd "s-e") "raise-emacs")
+(define-key *top-map* (kbd "s-t") "raise-terminal")
+
+(define-remapped-keys
+ '(("teams-for-linux"
+ ("C-M-Break" . "C-S-m"))))
+
+(mode-line)
+(restore-from-file "default")
+(swank:create-server :dont-close t)