Package Details: code-translucent 1.98.2-2

Git Clone URL: https://aur.archlinux.org/code-translucent.git (read-only, click to copy)
Package Base: code-translucent
Description: The Open Source build of Visual Studio Code (vscode) editor with translucent window, official marketplace, unblocked proprietary features and wayland support!
Upstream URL: https://github.com/microsoft/vscode
Keywords: code code-oss translucent transparent visual-studio-code vscode
Licenses: MIT
Conflicts: code-oss
Provides: code-oss
Submitter: observ33r
Maintainer: observ33r
Last Packager: observ33r
Votes: 8
Popularity: 0.25
First Submitted: 2022-09-18 16:29 (UTC)
Last Updated: 2025-03-30 17:24 (UTC)

Pinned Comments

observ33r commented on 2022-09-18 17:36 (UTC) (edited on 2023-05-08 05:36 (UTC) by observ33r)

  • Completely rewritten patch with correct implementation of transparency for electron window!
  • It actually running from compiled binaries! No need for electron dependency!
  • No conflicting with official release! You can have installed both!
  • Added support for official marketplace!
  • Added support for flags configuration file!
  • Added support for Wayland!
  • Unblocked proprietary features!
How to change window color?
"workbench.colorCustomizations": {
    //Black window color with 75% transparency (#RRGGBBAA)
    "window.background": "#000000BF"
},

..assuming you have a customized theme with all other transparent elements!

Building within clean chroot!

You can build package in completely clean environment without conflicting with any local dependencies (latest nodejs package etc..)!

Execute the following commands inside the package directory:

yes | sudo pacman -S devtools
extra-x86_64-build -c && rm *.log
mapfile -t _pkgs <<< "$(printf '%s\n' code-translucent-*.pkg.tar.zst | sort -Vr)"
sudo pacman -U "${_pkgs[0]}"

..or just run "build-with-chroot.sh" script!

Latest Comments

« First ‹ Previous 1 .. 3 4 5 6 7 8

strimmlarn commented on 2019-12-15 12:47 (UTC)

Got error when installing this.

fixed it by writing: "npm install nodejs"

then installed it again.

frantic1048 commented on 2019-11-04 06:36 (UTC) (edited on 2019-11-04 06:39 (UTC) by frantic1048)

@ShayBox: For minimal changes, this package is based on https://www.archlinux.org/packages/community/x86_64/code/, which uses nodejs-lts-dubnium as a make dependency.

Using nodejs to build may work, but I haven't tried.

Using -bin package is not an option for this package since we have to apply the transparent patch to source code to make things work properly. Patching a compiled -bin package would make code continuously complain about corrupt installation(https://code.visualstudio.com/docs/supporting/FAQ#_installation-appears-to-be-corrupt-unsupported).

To your concern about building, here are two solutions:

Solution A:

Use devtools (https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_clean_chroot#Convenience_way) to build the package.

extra-x86_64-build (comes from devtools) will build the package in a clean environment, without bothering your local packages.

Solution B:

Use archlinuxcn repo (https://github.com/archlinuxcn/repo).

I've added code-transparent to archlinuxcn repo. You can install code-transparent with the prebuilt package from archlinuxcn repo.

shaybox commented on 2019-11-01 04:27 (UTC) (edited on 2019-11-01 04:33 (UTC) by shaybox)

I love the transparency patches, and I know this is also a problem with the original code package, but unfortunately this just isn't compilable, because it uses nodejs-lts-dubnium instead of nodejs, and because they conflict, I can't install nodejs-lts-dubnium even temporarily to build it, a ton of packages use nodejs as a dependency, and to uninstall nodejs I would have to remove a lot of other packages, you're either going to have to provide some binary source like a -bin package, or an arch repository, or get it to build with nodejs instead of nodejs-lts-dubnium, I haven't tested it, so it may compile.
Ultimately the code's PKGBUILD isn't very good, it uses the wrong nodejs, uses both npm and yarn, python2, and electron4.
I guess the easiest option would be a bin package, that's what all the other aur packages have chosen.