source: dotfiles/wm/.stumpwmrc

Last change on this file was 09e91e8, checked in by w96k <w96k@…>, on Apr 16, 2023 at 5:57:05 PM

Update emacs config

  • Property mode set to 100644
File size: 1.9 KB
Line 
1;; -*- mode: common-lisp -*-
2
3(in-package :stumpwm)
4
5(run-shell-command "xfce4-panel")
6
7(setq *startup-message* "Welcome to your lovely LISP-machine")
8(set-prefix-key (kbd "C-TAB"))
9
10(set-normal-gravity :top)
11
12(defcommand icecat () ()
13 (run-or-raise "icecat" '(:class "IceCat")))
14
15(defcommand firefox () ()
16 (run-or-raise "firefox" '(:class "Firefox")))
17
18(defcommand nyxt () ()
19 "Start Next or switch to it, if it is already running."
20 (run-or-raise "nyxt" '(:class "nyxt")))
21
22(define-key *root-map* (kbd "b") "nyxt")
23
24;; launch terminal
25(defcommand xterm () ()
26 "Start Urxvt or switch to it, if it is already running."
27 (run-or-raise "xterm" '(:class "xterm")))
28
29(define-key *root-map* (kbd "c") "xterm")
30(define-key *root-map* (kbd "C") "xterm")
31
32;; Change emacs to emacsclient
33(defcommand emacsclient () ()
34 (run-or-raise "emacsclient -c -a emaces" '(:class "Emacs")))
35(defcommand emacs () ()
36 (run-or-raise "emacs" '(:class "Emacs")))
37 (define-key *root-map* (kbd "e") "emacs")
38
39;; Volume Management in thinkpad
40(progn
41 (define-key *top-map* (kbd "XF86AudioLowerVolume") "exec amixer -q sset Master 3%-")
42 (define-key *top-map* (kbd "XF86AudioRaiseVolume") "exec amixer -q sset Master 3%+")
43 (define-key *top-map* (kbd "XF86AudioMute") "amixer -q sset Master toggle"))
44
45;; Printscreen
46(defcommand printscreen () ()
47 "Works in X11 only"
48 (message "Print screen region")
49 (run-shell-command "import screenshot.png"))
50
51(define-key *top-map* (kbd "SunPrint_Screen") "printscreen")
52
53;; Enable Mode-line
54;;(enable-mode-line (current-screen) (current-head) t)
55
56;; Gaps: useless concept to be honest
57;; (load-module "swm-gaps")
58;; (setf swm-gaps:*inner-gaps-size* 0)
59;; (setf swm-gaps:*outer-gaps-size* 2)
60;; (swm-gaps:toggle-gaps)
61
62;; Show / Hide mode-line
63;; (define-key *root-map* (kbd "M") "mode-line")
64
65;; Old fix for scrolling gtk issue
66(setf (getenv "GDK_CORE_DEVICE_EVENTS") "1")
Note: See TracBrowser for help on using the repository browser.