Changeset 42ee519 in dotfiles for wm/.stumpwmrc


Ignore:
Timestamp:
Jan 6, 2020, 8:32:05 PM (5 years ago)
Author:
Mikhail Kirillov <w96k@…>
Branches:
master
Children:
7c65a3f
Parents:
e6db78d
git-author:
Mikhail Kirillov <w96k@…> (01/06/20 13:59:13)
git-committer:
Mikhail Kirillov <w96k@…> (01/06/20 20:32:05)
Message:

Update visual style of wm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wm/.stumpwmrc

    re6db78d r42ee519  
    11(in-package :stumpwm)
     2(load "~/quicklisp/setup.lisp")
    23
    3 (setq *startup-message* nil)
    4 (setq *startup-mode-line* t)
     4(setq *startup-message* "Welcome to your lovely LISP-machine")
     5
     6;; Shepherd (with emacs daemon)
     7(run-shell-command "shepherd")
     8
     9(set-prefix-key (kbd "C-t"))
    510
    611(set-module-dir "~/stumpwm/contrib")
     12(ql:quickload :clx-truetype)
    713
    8 ;; Modeline Battery
    914(load-module "battery-portable")
    1015(load-module "cpu")
    1116(load-module "mem")
     17(load-module "command-history")
     18(load-module "clipboard-history")
     19(load-module "shell-command-history")
     20(load-module "app-menu")
     21;;(load-module "screenshot")
     22(load-module "ttf-fonts")
    1223
    13 (setf *mode-line-pad-x* 8
    14       *mode-line-pad-y* 1
     24(clx-truetype:cache-fonts)
     25
     26(setf *mode-line-pad-x* 20
     27      *mode-line-pad-y* 8
    1528      *mode-line-timeout* 1
     29      *mouse-focus-policy* :click
    1630      *window-border-style* :thin
    17       *frame-number-map* "1234567890"
     31      *message-window-gravity* :center
     32      *normal-border-width* 8
     33      *mode-line-border-width* 0
     34      *transient-border-width* 0
    1835      *mode-line-position* :top
    19       *window-format* "%m%n%s%c"
     36      *window-format* "%m%n%s%t "
     37      *hidden-window-color* ""
    2038      *cpu-modeline-fmt* "%C"
     39      *mode-line-background-color* "#2d2d2d"
     40      *startup-mode-line* t
    2141      *window-name-source* :class
    2242      *delim* " ^2::^7 "
     43     
    2344      *screen-mode-line-format* (list
    2445                                 ;; Windows
    25                                  ;;"[^B%n^b]"
    26                                  "^7%W ^>^7"
     46                                 ;;"[^4%n^b]"
     47                                 "^7%v ^>^7"
    2748                                 ;; CPU
    2849                                 "%C" *delim*
     
    3556                                 ))
    3657
     58;; Colors
     59(set-bg-color "#1C2028")
     60(set-border-color "#666666")
     61(set-focus-color "#6699cc")
     62(set-unfocus-color "#2d2d2d")
     63(set-win-bg-color "#2d2d2d")
     64
     65
    3766;; launch Web browser
    3867(defcommand next () ()
    39   "Start Icecat or switch to it, if it is already running."
     68  "Start Next or switch to it, if it is already running."
    4069  (run-or-raise "next" '(:class "Next")))
    4170(define-key *root-map* (kbd "B") "next")
     71
     72(defcommand icecat () ()
     73  "Start Next or switch to it, if it is already running."
     74  (run-or-raise "icecat" '(:class "IceCat")))
     75(define-key *root-map* (kbd "b") "icecat")
    4276
    4377;; launch terminal
     
    6397
    6498;; Mode-line
    65 (progn
    66   (enable-mode-line (current-screen) (current-head) t))
     99(enable-mode-line (current-screen) (current-head) t)
     100
     101
     102;; Gaps
     103(load-module "swm-gaps")
     104(setf swm-gaps:*inner-gaps-size* 8)
     105(setf swm-gaps:*outer-gaps-size* 4)
     106(swm-gaps:toggle-gaps)
     107
     108;; Golden Ratio
     109;;(load-module "swm-golden-ratio")
     110;;(swm-golden-ratio:toggle-golden-ratio)
     111
     112(setf (getenv "GDK_CORE_DEVICE_EVENTS") "1")
     113
     114(defun key-press-hook (key key-seq cmd)
     115    (let ((*message-window-gravity* :bottom))
     116      (message-no-timeout "Key sequence: ~A"
     117               (print-key-seq (reverse key-seq))))
     118    (when (stringp cmd)
     119        (sleep 0.1)))
     120
     121(defmacro replace-hook (hook fn)
     122  `(remove-hook ,hook ,fn)
     123  `(add-hook ,hook ,fn))
     124
     125(replace-hook *key-press-hook* 'key-press-hook)
     126
     127;; Clipboard history
     128(define-key *root-map* (kbd "C-y") "show-clipboard-history")
     129(clipboard-history:start-clipboard-manager)
     130
     131;; Shell history
     132(setf shell-command-history:*shell-command-history-file*
     133      "/home/w96k/.cache/stumpwm/shell-command-history")
     134
     135;; Menu
     136(setq app-menu:*app-menu*
     137      '(("Telegram" "telegram-desktop")
     138        ("Icecat" icecat)
     139        ("Next" next)
     140        ("Terminal" urxvt)
     141        ("Deluge" "deluge")))
     142
     143(define-key *root-map* (kbd "q") "show-menu")
Note: See TracChangeset for help on using the changeset viewer.