diff --git a/init.lua b/init.lua index 7e30fb8..cb0efdb 100644 --- a/init.lua +++ b/init.lua @@ -2,12 +2,10 @@ require("lua.globals") local bar = require('lua.widgets.bar') -local App = astal.App - local scss = "./style/style.scss" local css = "./style/style.css" -astal.exec(string.format("sassc %s %s", scss, css)) +exec(string.format("sassc %s %s", scss, css)) App:start({ css = css, diff --git a/lua/globals.lua b/lua/globals.lua index 7211a72..45e3d60 100644 --- a/lua/globals.lua +++ b/lua/globals.lua @@ -1,15 +1,14 @@ lgi = require('lgi') -astal = require("astal") - -GLib = astal.GLib -Gtk = astal.Gtk -Gdk = astal.Gdk -Gio = astal.Gio +astal = require("astal.gtk3") Astal = astal.Astal Widget = astal.Widget +App = astal.App +Gtk = astal.Gtk -bind = astal.bind +bind = require'astal'.bind +read_file = require'astal'.read_file +exec = require'astal'.exec -Variable = astal.Variable +Variable = require('astal.variable')