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 { idle, readFileAsync } = Utils;
const { execAsync, idle, readFileAsync } = Utils;
const greetd = await Service.import('greetd');
const { Gdk } = imports.gi;
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);
let menu;

View file

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