blob: 9997cc75e9eca87e177ae1a5c9ed1b24b69d1fb9 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
;;; myExwm.el -*- lexical-binding: t; -*-
(require 'exwm-randr)
(setq exwm-randr-workspace-monitor-plist '(0 "DisplayPort-2" 1 "HDMI-A-0"))
(add-hook 'exwm-randr-screen-change-hook
(lambda ()
(start-process-shell-command
"xrandr" nil "xrandr --output DisplayPort-0 --off --output DisplayPort-1 --off --output DisplayPort-2 --primary --mode 2560x1440 --pos 1920x0 --rotate normal --output HDMI-A-0 --mode 1920x1080 --pos 0x0 --rotate normal")))
(exwm-randr-enable)
(require 'exwm)
(require 'exwm-config)
(exwm-enable)
(require 'exwm-systemtray)
(exwm-systemtray-enable)
;;Essentials
(map! :desc "Change workspaces" :n "s-e" #'exwm-workspace-switch)
(map! :desc "Dmenu" :n "s-<tab>" #'dmenu)
;;Volume
(map! :desc "VolumeIncrease" :n "<XF86AudioRaiseVolume>" #'volume-raise-10)
(map! :desc "VolumeDecrease" :n "<XF86AudioLowerVolume>" #'volume-lower-10)
;;Spotify
(map! :desc "Spotify play/pause" :n "s-p" #'spotify-playpause)
(map! :desc "Spotify next" :n "s-n" #'spotify-next)
(map! :desc "Spotify previous" :n "s-b" #'spotify-previous)
|