1 | (define-module (abcdw minimal)
|
---|
2 | #:use-module (rde features)
|
---|
3 | #:use-module (rde features base)
|
---|
4 | #:use-module (abcdw feature-lists)
|
---|
5 | #:use-module (rde features documentation)
|
---|
6 | #:use-module (rde features linux)
|
---|
7 | #:use-module (rde features networking)
|
---|
8 | #:use-module (rde features wm)
|
---|
9 | #:use-module (rde features finance)
|
---|
10 | #:use-module (rde features mail)
|
---|
11 | #:use-module (rde features irc)
|
---|
12 | #:use-module (rde features video)
|
---|
13 | #:use-module (rde features keyboard)
|
---|
14 | #:use-module (rde features fontutils)
|
---|
15 | #:use-module (rde features emacs)
|
---|
16 | #:use-module (rde features emacs-xyz)
|
---|
17 | #:use-module (rde features shellutils)
|
---|
18 | #:use-module (rde features terminals)
|
---|
19 | #:use-module (rde features shells)
|
---|
20 | #:use-module (rde features version-control)
|
---|
21 | #:use-module (rde features virtualization)
|
---|
22 | ;; #:use-module (rde features web)
|
---|
23 | #:use-module (rde features xdg)
|
---|
24 | #:use-module (gnu home-services base)
|
---|
25 | #:use-module (gnu home services)
|
---|
26 | #:use-module (gnu home-services wm)
|
---|
27 | #:use-module (gnu services)
|
---|
28 |
|
---|
29 | #:use-module (rde packages)
|
---|
30 | #:use-module (guix gexp))
|
---|
31 |
|
---|
32 | (define home-extra-packages-service
|
---|
33 | (simple-service
|
---|
34 | 'home-profile-extra-packages
|
---|
35 | home-profile-service-type
|
---|
36 | (append
|
---|
37 | (strings->packages
|
---|
38 | ;; "figlet" ;; TODO: Move to emacs-artist-mode
|
---|
39 | ;; "calibre"
|
---|
40 | "glibc-locales"
|
---|
41 | "icecat" "nyxt"
|
---|
42 | "ungoogled-chromium-wayland" "ublock-origin-chromium"
|
---|
43 |
|
---|
44 | ;; "utox" "qtox" "jami"
|
---|
45 |
|
---|
46 | "alsa-utils" "yt-dlp" "cozy"
|
---|
47 | "pavucontrol" "wev"
|
---|
48 | "imagemagick"
|
---|
49 | "obs" "obs-wlrobs"
|
---|
50 | "recutils" "binutils" "make"
|
---|
51 | ;; "fheroes2"
|
---|
52 |
|
---|
53 | "hicolor-icon-theme" ;; "adwaita-icon-theme" "gnome-themes-extra"
|
---|
54 | "papirus-icon-theme" "arc-theme"
|
---|
55 | "thunar" "fd"
|
---|
56 | "glib:bin"
|
---|
57 |
|
---|
58 | ;; "libreoffice"
|
---|
59 | "ffmpeg"
|
---|
60 | "ripgrep"))))
|
---|
61 |
|
---|
62 | (define sway-extra-config-service
|
---|
63 | (simple-service
|
---|
64 | 'sway-extra-config
|
---|
65 | home-sway-service-type
|
---|
66 | `((output DP-2 scale 2)
|
---|
67 | ;; (output * bg ,wallpaper-ai-art center)
|
---|
68 | ;; (output eDP-1 disable)
|
---|
69 | ,@(map (lambda (x) `(workspace ,x output DP-2)) (iota 8 1))
|
---|
70 |
|
---|
71 | ;; (workspace 9 output DP-2)
|
---|
72 | ;; (workspace 10 output DP-2)
|
---|
73 |
|
---|
74 | ;; (bindswitch --reload --locked lid:on exec /run/setuid-programs/swaylock)
|
---|
75 |
|
---|
76 | (bindsym
|
---|
77 | --locked $mod+Shift+t exec
|
---|
78 | ,(file-append (@ (gnu packages music) playerctl) "/bin/playerctl")
|
---|
79 | play-pause)
|
---|
80 |
|
---|
81 | (bindsym
|
---|
82 | --locked $mod+Shift+n exec
|
---|
83 | ,(file-append (@ (gnu packages music) playerctl) "/bin/playerctl")
|
---|
84 | next)
|
---|
85 |
|
---|
86 | (bindsym $mod+Shift+o move workspace to output left)
|
---|
87 | (bindsym $mod+Ctrl+o focus output left)
|
---|
88 | (input type:touchpad
|
---|
89 | ;; TODO: Move it to feature-sway or feature-mouse?
|
---|
90 | (;; (natural_scroll enabled)
|
---|
91 | (tap enabled)))
|
---|
92 |
|
---|
93 | ;; (xwayland disable)
|
---|
94 | (bindsym $mod+Shift+Return exec emacs))))
|
---|
95 |
|
---|
96 | (define minimal-rde-config
|
---|
97 | (rde-config
|
---|
98 | (features
|
---|
99 | (list
|
---|
100 | ;; %general-features
|
---|
101 | (feature-user-info
|
---|
102 | #:user-name "w96k"
|
---|
103 | #:full-name "Mikhail Kirillov"
|
---|
104 | #:email "w96k.ru@gmail.com"
|
---|
105 | #:emacs-advanced-user? #t)
|
---|
106 |
|
---|
107 | (feature-vterm)
|
---|
108 | (feature-bash)
|
---|
109 | (feature-direnv)
|
---|
110 |
|
---|
111 | (feature-qemu)
|
---|
112 |
|
---|
113 | (feature-base-services)
|
---|
114 | (feature-base-packages)
|
---|
115 |
|
---|
116 | (feature-desktop-services)
|
---|
117 | (feature-hidpi)
|
---|
118 | ;; (feature-foreign-distro)
|
---|
119 |
|
---|
120 | (feature-sway)
|
---|
121 | (feature-emacs
|
---|
122 | #:default-application-launcher? #t)
|
---|
123 |
|
---|
124 | (feature-keyboard
|
---|
125 | ;; To get all available options, layouts and variants run:
|
---|
126 | ;; cat `guix build xkeyboard-config`/share/X11/xkb/rules/evdev.lst
|
---|
127 | #:keyboard-layout
|
---|
128 | (keyboard-layout
|
---|
129 | "us,ru"
|
---|
130 | "qwerty"
|
---|
131 | #:options '("grp:shifts_toggle" "ctrl:nocaps")))
|
---|
132 |
|
---|
133 | ;; (feature-alternative-frontends)
|
---|
134 |
|
---|
135 | (feature-youtube-dl)
|
---|
136 |
|
---|
137 | (feature-emacs-appearance)
|
---|
138 | ;; (feature-emacs-faces)
|
---|
139 | (feature-emacs-modus-themes)
|
---|
140 |
|
---|
141 | (feature-emacs-completion
|
---|
142 | #:mini-frame? #f
|
---|
143 | #:marginalia-align 'right)
|
---|
144 | (feature-emacs-corfu
|
---|
145 | #:corfu-doc-auto #f)
|
---|
146 | (feature-emacs-vertico)
|
---|
147 |
|
---|
148 | (feature-emacs-tramp)
|
---|
149 | (feature-emacs-project)
|
---|
150 | (feature-compile)
|
---|
151 | (feature-emacs-perspective)
|
---|
152 | (feature-emacs-input-methods)
|
---|
153 | (feature-emacs-which-key)
|
---|
154 | (feature-emacs-dired)
|
---|
155 | (feature-emacs-eshell)
|
---|
156 | (feature-emacs-monocle)
|
---|
157 |
|
---|
158 | (feature-emacs-message)
|
---|
159 | ;; (feature-emacs-erc
|
---|
160 | ;; #:erc-log? #f
|
---|
161 | ;; #:erc-autojoin-channels-alist '((Libera.Chat "#rde")))
|
---|
162 | (feature-emacs-telega)
|
---|
163 | (feature-emacs-elpher)
|
---|
164 |
|
---|
165 | (feature-emacs-pdf-tools)
|
---|
166 | ;; (feature-emacs-nov-el)
|
---|
167 | (feature-emacs-org)
|
---|
168 | (feature-emacs-org-roam
|
---|
169 | #:org-roam-directory "~/projects/at-w96k/content/digarden/pages/"
|
---|
170 | )
|
---|
171 | (feature-emacs-org-agenda)
|
---|
172 | (feature-emacs-org-protocol)
|
---|
173 | ;; TODO: Remove auctex dependency, which interjects in texinfo-mode.
|
---|
174 | ;; (feature-emacs-citar)
|
---|
175 |
|
---|
176 | (feature-emacs-smartparens
|
---|
177 | #:show-smartparens? #t)
|
---|
178 |
|
---|
179 | (feature-emacs-pulseaudio-control)
|
---|
180 | (feature-emacs-geiser)
|
---|
181 | (feature-emacs-guix)
|
---|
182 | (feature-emacs-eglot)
|
---|
183 |
|
---|
184 | (feature-manpages)
|
---|
185 |
|
---|
186 | (feature-xdg)
|
---|
187 |
|
---|
188 | (feature-git #:sign-commits? #f)
|
---|
189 |
|
---|
190 | (feature-custom-services
|
---|
191 | #:feature-name-prefix 'w96k
|
---|
192 | #:home-services
|
---|
193 | (list
|
---|
194 | home-extra-packages-service
|
---|
195 | sway-extra-config-service
|
---|
196 | ))
|
---|
197 |
|
---|
198 | ;; (feature-mpv
|
---|
199 | ;; #:extra-mpv-conf '((speed . 1.61)))
|
---|
200 |
|
---|
201 | (feature-sway-run-on-tty
|
---|
202 | #:sway-tty-number 2)
|
---|
203 | (feature-sway-screenshot)
|
---|
204 | ;; (feature-sway-statusbar
|
---|
205 | ;; #:use-global-fonts? #f)
|
---|
206 | (feature-waybar)
|
---|
207 | (feature-swayidle)
|
---|
208 | (feature-swaylock
|
---|
209 | #:swaylock (@ (gnu packages wm) swaylock-effects)
|
---|
210 | ;; The blur on lock screen is not privacy-friendly.
|
---|
211 | #:extra-config '((screenshots)
|
---|
212 | (effect-blur . 7x5)
|
---|
213 | (clock)))
|
---|
214 | ))))
|
---|
215 |
|
---|
216 | (rde-config-home-environment minimal-rde-config)
|
---|