summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Schanzenbacher <ryan@rschanz.org>2023-07-15 15:03:45 -0400
committerRyan Schanzenbacher <ryan@rschanz.org>2023-07-15 15:03:45 -0400
commitd96fae90d7ab61560b74013f7225a132c691144f (patch)
tree361d014d4f572f37f0607099f4e7116fb52c72b7
parent8cebfbd1d7c05451796c425076d48d562f0fbaa2 (diff)
Some prelim changes, THIS BRANCH DOES NOT WORK
-rw-r--r--home-config/home-configuration.scm2
-rw-r--r--home-config/hypr/hyprland.conf15
-rw-r--r--home-config/hypr/monitors.conf2
-rw-r--r--modules/ryan-packages/freedesktop.scm28
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 18source = ~/.config/hypr/monitors.conf
19 19
20# Some default env vars. 20# Some default env vars.
21env = XCURSOR_SIZE,24 21env = XCURSOR_SIZE,24
@@ -123,6 +123,19 @@ bind = $mainMod, F, fullscreen, 1
123bind = $mainMod SHIFT, F, fullscreen 123bind = $mainMod SHIFT, F, fullscreen
124bind = ,XF86MonBrightnessUp, exec, light -A 10 124bind = ,XF86MonBrightnessUp, exec, light -A 10
125bind = ,XF86MonBrightnessDown, exec, light -U 10 125bind = ,XF86MonBrightnessDown, exec, light -U 10
126bind = ,XF86AudioRaiseVolume, exec, pamixer -i 5
127bind = ,XF86AudioLowerVolume, exec, pamixer -d 5
128bind = ,XF86AudioMute, exec, pamixer -t
129bind = ,XF86AudioPlay, exec, playerctl play-pause
130bind = ,XF86AudioNext, exec, playerctl next
131bind = ,XF86AudioPrev, exec, playerctl previous
132bind = ,XF86AudioStop, exec, playerctl stop
133
134# Move workspace between monitors
135bind = $mainMod CTRL SHIFT, left, movecurrentworkspacetomonitor, l
136bind = $mainMod CTRL SHIFT, right, movecurrentworkspacetomonitor, r
137bind = $mainMod CTRL SHIFT, up, movecurrentworkspacetomonitor, u
138bind = $mainMod CTRL SHIFT, down, movecurrentworkspacetomonitor, d
126 139
127# Move focus with mainMod + arrow keys 140# Move focus with mainMod + arrow keys
128bind = $mainMod, left, movefocus, l 141bind = $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 @@
1monitor=eDP-1,1920x1080, 1920x0, 1
2monitor=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 "")