fix(greetd): start swww from ags
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-02-06 16:03:45 -05:00
parent 3ae192b3c1
commit 7f4496ed51
2 changed files with 13 additions and 5 deletions

View file

@ -1,11 +1,20 @@
const { Box, Button, Entry, Label, Menu, MenuItem, Window } = Widget; const { Box, Button, Entry, Label, Menu, MenuItem, Window } = Widget;
const { idle, readFileAsync } = Utils; const { execAsync, idle, readFileAsync } = Utils;
const greetd = await Service.import('greetd'); const greetd = await Service.import('greetd');
const { Gdk } = imports.gi; const { Gdk } = imports.gi;
const DEFAULT_NAME = 'matt'; const DEFAULT_NAME = 'matt';
execAsync(['swww', 'init', '--no-cache']).then(() => {
execAsync([
'swww', 'img', '-t', 'none',
`${App.configDir}/.wallpaper`,
]).catch(print);
}).catch(print);
const name = Label(DEFAULT_NAME); const name = Label(DEFAULT_NAME);
let menu; let menu;

View file

@ -57,10 +57,7 @@
"env = WLR_NO_HARDWARE_CURSORS,1\n" "env = WLR_NO_HARDWARE_CURSORS,1\n"
]) ])
++ [ ++ [
"exec-once = ${setupMonitors} && sleep 0.5 &&" "exec-once = ${setupMonitors}\n"
# FIXME: doesn't start
" swww init --no-cache &&"
" swww img -t none ${pkgs.dracula-theme}/wallpapers/waves.png\n"
"${readFile ./hyprland.conf}\n" "${readFile ./hyprland.conf}\n"
@ -94,6 +91,8 @@ in {
]; ];
file = { file = {
".config/ags/.wallpaper".source = "${pkgs.dracula-theme}/wallpapers/waves.png";
".config/ags" = { ".config/ags" = {
source = ../ags/config; source = ../ags/config;
recursive = true; recursive = true;