added various build artifacts for the tundra dev env
This commit is contained in:
parent
ba3f4f6f7b
commit
2bd0b967cb
7 changed files with 566 additions and 0 deletions
31
hosts/packages/tundra/src/app.in.vala
Normal file
31
hosts/packages/tundra/src/app.in.vala
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
class App : Astal.Application {
|
||||
public static App instance;
|
||||
|
||||
public override void request (string msg, SocketConnection conn) {
|
||||
print(@"$msg\n");
|
||||
AstalIO.write_sock.begin(conn, "ok");
|
||||
}
|
||||
|
||||
public override void activate () {
|
||||
foreach (var mon in this.monitors)
|
||||
add_window(new Bar(mon));
|
||||
|
||||
apply_css("@STYLE@");
|
||||
}
|
||||
|
||||
public static void main(string[] args) {
|
||||
var instance_name = "vala";
|
||||
|
||||
App.instance = new App() {
|
||||
instance_name = instance_name
|
||||
};
|
||||
|
||||
try {
|
||||
App.instance.acquire_socket();
|
||||
App.instance.run(null);
|
||||
} catch (Error err) {
|
||||
print(AstalIO.send_request(instance_name, string.joinv(" ", args)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue