diff options
-rw-r--r-- | home-config/home-configuration.scm | 2 | ||||
-rw-r--r-- | home-config/hypr/hyprland.conf | 15 | ||||
-rw-r--r-- | home-config/hypr/monitors.conf | 2 | ||||
-rw-r--r-- | modules/ryan-packages/freedesktop.scm | 28 |
4 files changed, 41 insertions, 6 deletions
diff --git a/home-config/home-configuration.scm b/home-config/home-configuration.scm index eaf8115..de6cce3 100644 --- a/home-config/home-configuration.scm +++ b/home-config/home-configuration.scm | |||
@@ -75,6 +75,8 @@ | |||
75 | "kdenlive" | 75 | "kdenlive" |
76 | "sqlite" | 76 | "sqlite" |
77 | "mpv" | 77 | "mpv" |
78 | "playerctl" | ||
79 | "pamixer" | ||
78 | "git")) | 80 | "git")) |
79 | (list my-neovim))) | 81 | (list my-neovim))) |
80 | 82 | ||
diff --git a/home-config/hypr/hyprland.conf b/home-config/hypr/hyprland.conf index 2c23c63..fa5e6e4 100644 --- a/home-config/hypr/hyprland.conf +++ b/home-config/hypr/hyprland.conf | |||
@@ -15,7 +15,7 @@ monitor=,preferred,auto,1 | |||
15 | # exec-once = waybar & hyprpaper & firefox | 15 | # exec-once = waybar & hyprpaper & firefox |
16 | 16 | ||
17 | # Source a file (multi-file configs) | 17 | # Source a file (multi-file configs) |
18 | # source = ~/.config/hypr/myColors.conf | 18 | source = ~/.config/hypr/monitors.conf |
19 | 19 | ||
20 | # Some default env vars. | 20 | # Some default env vars. |
21 | env = XCURSOR_SIZE,24 | 21 | env = XCURSOR_SIZE,24 |
@@ -123,6 +123,19 @@ bind = $mainMod, F, fullscreen, 1 | |||
123 | bind = $mainMod SHIFT, F, fullscreen | 123 | bind = $mainMod SHIFT, F, fullscreen |
124 | bind = ,XF86MonBrightnessUp, exec, light -A 10 | 124 | bind = ,XF86MonBrightnessUp, exec, light -A 10 |
125 | bind = ,XF86MonBrightnessDown, exec, light -U 10 | 125 | bind = ,XF86MonBrightnessDown, exec, light -U 10 |
126 | bind = ,XF86AudioRaiseVolume, exec, pamixer -i 5 | ||
127 | bind = ,XF86AudioLowerVolume, exec, pamixer -d 5 | ||
128 | bind = ,XF86AudioMute, exec, pamixer -t | ||
129 | bind = ,XF86AudioPlay, exec, playerctl play-pause | ||
130 | bind = ,XF86AudioNext, exec, playerctl next | ||
131 | bind = ,XF86AudioPrev, exec, playerctl previous | ||
132 | bind = ,XF86AudioStop, exec, playerctl stop | ||
133 | |||
134 | # Move workspace between monitors | ||
135 | bind = $mainMod CTRL SHIFT, left, movecurrentworkspacetomonitor, l | ||
136 | bind = $mainMod CTRL SHIFT, right, movecurrentworkspacetomonitor, r | ||
137 | bind = $mainMod CTRL SHIFT, up, movecurrentworkspacetomonitor, u | ||
138 | bind = $mainMod CTRL SHIFT, down, movecurrentworkspacetomonitor, d | ||
126 | 139 | ||
127 | # Move focus with mainMod + arrow keys | 140 | # Move focus with mainMod + arrow keys |
128 | bind = $mainMod, left, movefocus, l | 141 | bind = $mainMod, left, movefocus, l |
diff --git a/home-config/hypr/monitors.conf b/home-config/hypr/monitors.conf new file mode 100644 index 0000000..95844c8 --- /dev/null +++ b/home-config/hypr/monitors.conf | |||
@@ -0,0 +1,2 @@ | |||
1 | monitor=eDP-1,1920x1080, 1920x0, 1 | ||
2 | monitor=HDMI-A-1,1920x1080, 0x0, 1 | ||
diff --git a/modules/ryan-packages/freedesktop.scm b/modules/ryan-packages/freedesktop.scm index e5db0af..7cb9e8e 100644 --- a/modules/ryan-packages/freedesktop.scm +++ b/modules/ryan-packages/freedesktop.scm | |||
@@ -49,15 +49,33 @@ | |||
49 | (build-system meson-build-system) | 49 | (build-system meson-build-system) |
50 | (arguments | 50 | (arguments |
51 | (list | 51 | (list |
52 | #:modules | ||
53 | '((guix build utils) | ||
54 | (guix build meson-build-system) | ||
55 | ((guix build qt-build-system) #:prefix qt:)) | ||
56 | #:imported-modules | ||
57 | (append %meson-build-system-modules | ||
58 | %qt-build-system-modules) | ||
52 | #:tests? #f | 59 | #:tests? #f |
53 | #:configure-flags #~(list "-Dsystemd=disabled") | 60 | #:configure-flags #~(list "-Dsystemd=disabled") |
54 | #:phases | 61 | #:phases |
62 | ;; After building the portal, we need to build the share selector using qt | ||
55 | #~(modify-phases %standard-phases | 63 | #~(modify-phases %standard-phases |
56 | (add-after 'build 'chdir-and-build | 64 | (add-after 'install 'chdir |
57 | (lambda _ (chdir "../source/hyprland-share-picker/") | 65 | (lambda _ (chdir "../source/hyprland-share-picker/"))) |
58 | (invoke "make"))) | 66 | (add-after 'chdir 'check-setup |
59 | (add-after 'install 'install-picker | 67 | (assoc-ref qt:%standard-phases 'check-setup)) |
60 | (lambda _ (install-file "hyprland-share-picker" (string-append #$output "/bin"))))))) | 68 | (add-after 'check-setup 'qt-build-new |
69 | (lambda* (#:key inputs outputs #:allow-other-keys) | ||
70 | ((assoc-ref qt:%standard-phases 'build) | ||
71 | #:inputs inputs | ||
72 | #:outputs outputs | ||
73 | #:configure-flags '() | ||
74 | #:qtbase (let ((module (resolve-interface '(gnu packages qt))))(module-ref module 'qtbase))))) | ||
75 | (add-after 'qt-build 'qt-install | ||
76 | (assoc-ref qt:%standard-phases 'install)) | ||
77 | (add-after 'qt-install 'qt-wrap | ||
78 | (assoc-ref qt:%standard-phases 'qt-wrap))))) | ||
61 | (native-inputs (list cmake pkg-config)) | 79 | (native-inputs (list cmake pkg-config)) |
62 | (inputs (list elogind hyprland hyprland-protocols pipewire wayland-protocols wayland libinih mesa qtwayland `(,util-linux "lib"))) | 80 | (inputs (list elogind hyprland hyprland-protocols pipewire wayland-protocols wayland libinih mesa qtwayland `(,util-linux "lib"))) |
63 | (home-page "") | 81 | (home-page "") |