Skip to content

Commit

Permalink
Fully migrate to labwc, remove weston
Browse files Browse the repository at this point in the history
This patch fully migrates Ghaf to labwc, removing Weston compositor
support, improves usability and performance of the labwc environment.

Signed-off-by: Humaid Alqasimi <humaid.alqassimi@tii.ae>
  • Loading branch information
humaidq-tii committed Jun 3, 2024
1 parent 04af95b commit d90b9f0
Show file tree
Hide file tree
Showing 49 changed files with 553 additions and 1,433 deletions.
Binary file removed assets/icons/png/app.png
Binary file not shown.
Binary file removed assets/icons/png/appflowy.png
Binary file not shown.
Binary file removed assets/icons/png/browser.png
Binary file not shown.
Binary file removed assets/icons/png/element.png
Binary file not shown.
Binary file removed assets/icons/png/pdf.png
Binary file not shown.
Binary file removed assets/icons/png/settings.png
Binary file not shown.
Binary file removed assets/icons/png/windows.png
Binary file not shown.
27 changes: 0 additions & 27 deletions assets/icons/svg/app.svg

This file was deleted.

29 changes: 0 additions & 29 deletions assets/icons/svg/appflowy.svg

This file was deleted.

11 changes: 0 additions & 11 deletions assets/icons/svg/browser.svg

This file was deleted.

3 changes: 3 additions & 0 deletions assets/icons/svg/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/svg/icon_arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/svg/iconify.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/icons/svg/max.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 0 additions & 27 deletions assets/icons/svg/pdf.svg

This file was deleted.

9 changes: 0 additions & 9 deletions assets/icons/svg/settings.svg

This file was deleted.

6 changes: 6 additions & 0 deletions assets/icons/svg/wifi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 0 additions & 6 deletions assets/icons/svg/windows.svg

This file was deleted.

2 changes: 1 addition & 1 deletion lib/icons.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2024 TII (SSRC) and the Ghaf contributors
# SPDX-License-Identifier: Apache-2.0
{pkgs, ...}: rec {
{pkgs, ...}: {
/*
*
Resizes a PNG to fit the given size.
Expand Down
17 changes: 17 additions & 0 deletions lib/launcher.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2024 TII (SSRC) and the Ghaf contributors
# SPDX-License-Identifier: Apache-2.0
_: {
rmDesktopEntries = pkgs:
map (pkg:
pkg.overrideAttrs (old: let
pInst =
if (old ? postInstall)
then old.postInstall
else "";
in {
desktopItems = null;
desktopItem = null;
postInstall = pInst + "rm -rf \"$out/share/applications\"";
}))
pkgs;
}
5 changes: 3 additions & 2 deletions modules/common/development/debug-tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
nvpmodel-check = pkgs.callPackage ./scripts/nvpmodel_check.nix {};

inherit (lib) mkEnableOption mkIf;
inherit (import ../../../lib/launcher.nix {inherit pkgs lib;}) rmDesktopEntries;
in {
options.ghaf.development.debug.tools = {
enable = mkEnableOption "Debug Tools";
Expand All @@ -39,7 +40,6 @@ in {
ethtool
# Basic monitors

htop
iftop
iotop
traceroute
Expand All @@ -64,12 +64,13 @@ in {
nvpmodel-check
rm-linux-bootmgrs
]
++ rmDesktopEntries [pkgs.htop]
# TODO Can this be changed to platformPkgs to filter ?
# LuaJIT (which is sysbench dependency) not available on RISC-V
++ lib.optional (config.nixpkgs.hostPlatform.system != "riscv64-linux") pkgs.sysbench
# runtimeShell (unixbench dependency) not available on RISC-V nor on cross-compiled Orin AGX/NX
++ lib.optional (pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform) pkgs.unixbench
# Build VLC only on x86
++ lib.optional (config.nixpkgs.hostPlatform.system == "x86_64-linux") pkgs.vlc;
++ lib.optionals (config.nixpkgs.hostPlatform.system == "x86_64-linux") rmDesktopEntries [pkgs.vlc];
};
}
3 changes: 1 addition & 2 deletions modules/desktop/graphics/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
# SPDX-License-Identifier: Apache-2.0
{
imports = [
./weston.nix
./labwc.nix
./weston.ini.nix
./labwc.config.nix
./waybar.config.nix
./demo-apps.nix
./fonts.nix
Expand Down
Loading

0 comments on commit d90b9f0

Please sign in to comment.