;; Default bindings. ;; This file will only be loaded if 'inhibit-defaults? is #f. (setq inhibit-defaults? #t) ;; M-x geiser-connect-local /tmp/dwl-guile.socket (dwl:start-repl-server) (dwl:set-tty-keys "C-M") (dwl:set-tag-keys "s" "s-S") (setq tags (list "dev" "web" "doc" "wte" "art" "ws6" "img" "vid" "agd")) (set-layouts 'default "[]=" 'dwl:tile 'monocle "[M]" 'dwl:monocle) ;; TODO add back hyper! (set-xkb-rules '((layout . us) (options . "ctrl:nocaps"))) (setq repeat-rate 70 repeat-delay 250 ;; aka focus follows mouse sloppy-focus? #f) ;; colors :) (setq focus-color "#ffffff" border-color "#666666") (set-rules '((id . "emacs") (tags . 1) (floating? . #f) (monitor . -1) (id . "icecat") (tags . 2) (floating? . #f) (monitor . -1) (id . "librewolf") (tags . 2) (floating? . #f) (monitor . -1) (id . "Zathura") (tags . 3) (floating? . #f) (monitor . -1) (id . "libreoffice") (tags . 4) (floating? . #f) (monitor . -1) (id . "gimp") (tags . 5) (floating? . #t) (monitor . -1) (id . "imv") (tags . 7) (floating? . #f) (monitor . -1) (id . "Mpv") (tags . 8) (floating? . #f) (monitor . -1))) (set-keys "s-x" '(dwl:spawn "bemenu-run") "s-" '(dwl:spawn "emacsclient" "-nc") "s-S-b" '(dwl:spawn "icecat") "s-S-c" '(dwl:spawn "librewolf") ;; "s-S-o" '(dwl:spawn "BOOKMARKS!") ;; "s-S-p" '(dwl:spawn "PASSMENU!") ;; BRIGHTNESS ;; VOL ;; MPD "s-" '(dwl:spawn "flameshot launcher") "" '(dwl:spawn "flameshot full") "s-n" '(dwl:focus-stack 1) "s-p" '(dwl:focus-stack -1) "s-f" '(dwl:change-master-factor 0.01) "s-b" '(dwl:change-master-factor -0.01) "s-" '(dwl:change-masters 1) "s-" '(dwl:change-masters -1) "s-t" '(dwl:cycle-layout 1) "s-" '(dwl:focus-monitor 'DIRECTION-LEFT) "s-" '(dwl:focus-monitor 'DIRECTION-RIGHT) "s-" '(dwl:focus-monitor 'DIRECTION-UP) "s-" '(dwl:focus-monitor 'DIRECTION-DOWN) "s-S-" '(dwl:tag-monitor 'DIRECTION-LEFT) "s-S-" '(dwl:tag-monitor 'DIRECTION-RIGHT) "s-S-" '(dwl:tag-monitor 'DIRECTION-UP) "s-S-" '(dwl:tag-monitor 'DIRECTION-DOWN) "s-q" 'dwl:kill-client "s-" 'dwl:zoom "s-" 'dwl:view "s-0" '(dwl:view 0) ;; 0 will show all tags "s-m" '(dwl:set-layout "monocle") "s-t" '(dwl:set-layout "default") "s-S-" 'dwl:toggle-floating "s-S-q" 'dwl:quit "s-" 'dwl:move "s-" 'dwl:resize "s-=" '(dwl:change-gaps -4) "s-" '(dwl:change-gaps 4)) (set-monitor-rules '((masters . 1) (master-factor . 0.55) (scale . 1) (transform . TRANSFORM-NORMAL) (layout . default))) (add-hook! dwl:hook-startup (lambda () (dwl:spawn "set-bg") (dwl:change-gaps 8) (dwl:spawn "emacs" "--daemon")))