diff options
author | bd <bdunahu@operationnull.com> | 2025-01-25 15:15:56 -0500 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-01-25 15:15:56 -0500 |
commit | 93b2088a04c13a9f4f5934948fc9540f9f552b00 (patch) | |
tree | d3339859c47ab55fd0ded0f7acf90c30c412a0d5 /.config/guix/modules/xorg.scm | |
parent | a76f5a41c36311103786e43e2497cf93c613edde (diff) |
Refactor guix config for a single central packages file
Diffstat (limited to '.config/guix/modules/xorg.scm')
-rw-r--r-- | .config/guix/modules/xorg.scm | 136 |
1 files changed, 0 insertions, 136 deletions
diff --git a/.config/guix/modules/xorg.scm b/.config/guix/modules/xorg.scm deleted file mode 100644 index b857ab9..0000000 --- a/.config/guix/modules/xorg.scm +++ /dev/null @@ -1,136 +0,0 @@ -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Provides a set of my preferred ;; -;; program and services for x desktops ;; -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - - -(define-module (modules xorg) - #:use-module (gnu) - #:use-module (gnu home services) - #:use-module (gnu home services desktop) - #:use-module (guix gexp) - #:use-module (guix packages) - #:use-module (modules ymir) - #:export (bd-desktop-system-packages - bd-desktop-system-services - bd-desktop-home-services - )) - -(use-service-modules audio desktop networking - sound xorg) - -(use-package-modules - compton ;; picom - emacs ;; emacs - gnome ;; libnotify - image-viewers ;; feh - pulseaudio ;; pavucontrol, pulseaudio, - suckless ;; slock - wm ;; dunst - xdisorg ;; xrdb - xorg ;; xf86-input-libinput, xf86-video-fbdev, xinit... - ) - -(define bd-desktop-system-packages - (list - dunst - emacs-next - libnotify - pavucontrol - picom - pulseaudio - - feh - xf86-input-libinput - xf86-video-fbdev - xinit - xinput - xmodmap - xorg-server - xrandr - xrdb - xset - xss-lock - )) - -(define %keyboard-udev-rule - (udev-rule - "90-keyboard-hotplug.rules" - (string-append "ATTR{idVendor}==\"04b4\", ATTR{idProduct}==\"0510\", ACTION==\"add\", RUN+=\"/run/current-system/profile/bin/touch /tmp/keyboard_plugged\" RUN+=\"/run/current-system/profile/bin/chown " username " /tmp/keyboard_plugged\""))) - -(define bd-desktop-system-services - (list - (service screen-locker-service-type - (screen-locker-configuration - (name "slock") - (program (file-append slock "/bin/slock")))) - - (service x11-socket-directory-service-type) - (udev-rules-service 'keyboard-hotplug %keyboard-udev-rule) - - (service pulseaudio-service-type) - (service alsa-service-type))) - -(define bd-desktop-home-services - (list - (simple-service 'dotfiles - home-files-service-type - `((".Xmodmap" - ,(plain-file "Xmodmap" " -clear lock -clear control -clear mod1 -clear mod2 -clear mod3 -clear mod4 -clear mod5 -keycode 37 = Hyper_L -keycode 66 = Control_L -add control = Control_L Control_R -add mod1 = Alt_L Alt_R Meta_L -add mod2 = Num_Lock -add mod3 = Hyper_L -add mod4 = Super_L Super_R -add mod5 = Mode_switch ISO_Level3_Shift -")) - (".Xresources" - ,(plain-file "Xresources" " -Nsxiv.window.background: #000000 -Nsxiv.window.foreground: #FFFFFF -Nsxiv.bar.font: Terminus:size=9 -")) - (".xinitrc" - ,(plain-file "xinitrc" " -#!/bin/sh - -userresources=$HOME/.Xresources -usermodmap=$HOME/.Xmodmap - -# merge in defaults and keymaps - -if [ -f \"$userresources\" ]; then - - xrdb -merge \"$userresources\" - -fi - -if [ -f \"$usermodmap\" ]; then - xmodmap \"$usermodmap\" -fi - -picom & -xss-lock -- slock & -xset r rate 250 70 -xset s 600 -touchpad-defaults -xrandr-toggle -xkeyboard-auto & -exec emacs -mm")) - (".config/gtk-2.0/settings.ini" - ,(plain-file "settings.ini" " -[Settings] -gtk-application-prefer-dark-theme=1\n")) - (".config/gtk-3.0/settings.ini" - ,(plain-file "settings.ini" " -[Settings] -gtk-application-prefer-dark-theme=1\n")))))) |