Changeset 30cc41f in dotfiles


Ignore:
Timestamp:
Apr 21, 2023, 11:14:57 PM (21 months ago)
Author:
Mikhail Kirillov <mikhail.kirillov@…>
Branches:
master
Children:
3e76cbf
Parents:
f73cc02
Message:

Add brightness control to sway

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guix/rde/src/wkz-p1.scm

    rf73cc02 r30cc41f  
    1 (define-module (abcdw minimal)
     1(define-module (wkz-p1)
    22  #:use-module (rde features)
    33  #:use-module (rde features base)
    4   #:use-module (abcdw feature-lists)
    54  #:use-module (rde features documentation)
    65  #:use-module (rde features linux)
     
    3635   (append
    3736    (strings->packages
    38      ;; "figlet" ;; TODO: Move to emacs-artist-mode
    3937     ;; "calibre"
    4038     "glibc-locales"
    41      "icecat" "nyxt"
    42      "ungoogled-chromium-wayland" "ublock-origin-chromium"
    43 
    44      ;; "utox" "qtox" "jami"
     39     "icecat" ;; "nyxt"
     40     ;; "ungoogled-chromium-wayland" "ublock-origin-chromium"
    4541
    4642     "alsa-utils" "yt-dlp" "cozy"
     
    4945     "obs" "obs-wlrobs"
    5046     "recutils" "binutils" "make"
    51      ;; "fheroes2"
    52 
    53      "hicolor-icon-theme" ;; "adwaita-icon-theme" "gnome-themes-extra"
     47
    5448     "papirus-icon-theme" "arc-theme"
    5549     "thunar" "fd"
    5650     "glib:bin"
    57 
    58      ;; "libreoffice"
    59      "ffmpeg"
    60      "ripgrep"))))
     51     "wob" "brightnessctl"
     52
     53     "ffmpeg"))))
    6154
    6255(define sway-extra-config-service
     
    6558   home-sway-service-type
    6659   `((output DP-2 scale 2)
    67      ;; (output * bg ,wallpaper-ai-art center)
    68      ;; (output eDP-1 disable)
    6960     ,@(map (lambda (x) `(workspace ,x output DP-2)) (iota 8 1))
    7061
    71      ;; (workspace 9 output DP-2)
    72      ;; (workspace 10 output DP-2)
    73 
    74      ;; (bindswitch --reload --locked lid:on exec /run/setuid-programs/swaylock)
     62     (bindswitch --reload --locked lid:on exec /run/setuid-programs/swaylock)
     63
     64     (bindsym --locked XF86MonBrightnessUp exec
     65              ,(file-append (@ (gnu packages linux) brightnessctl) "/bin/brightnessctl")
     66              set 5%+)
     67     (bindsym --locked XF86MonBrightnessDown exec
     68              ,(file-append (@ (gnu packages linux) brightnessctl) "/bin/brightnessctl")
     69              set 5%-)
    7570
    7671     (bindsym
     
    116111     (feature-desktop-services)
    117112     (feature-hidpi)
    118      ;; (feature-foreign-distro)
     113     (feature-foreign-distro)
    119114     
    120115     (feature-sway)
Note: See TracChangeset for help on using the changeset viewer.