Package Details: code-translucent 1.96.0-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: 7
Popularity: 0.000944
First Submitted: 2022-09-18 16:29 (UTC)
Last Updated: 2024-12-11 20:07 (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 2 3 4 5 6 7 8 Next › Last »

frantic1048 commented on 2020-03-12 09:59 (UTC)

@gusbemacbe

I would like to suggest you rename code-oss to code-tranparent for not confilecting with the testing cxode-oss.

That's reasonable, I will try to rename for the executable, or if you could provide a patch is appreciated.

And would it work with Electron 10

Not tried/planned, this package is directly based on the official code package1, with an extra patch for transparency.

The official package already makes it use an external electron(which currently is electron6), to figure out how it works, refer to lines containing electron in PKGBUILD2:

Currently, the highest electron version in official repo is 8.0.x, and the latest vscode requires3 electron 7. It may need some time for the upstream upgrade to electron 10. However, you could have a try with it. Btw, be sure to checkout electron's release note for breaking changes.

gusbemacbe commented on 2020-03-11 04:39 (UTC)

Hello @frantic1048

I would like to suggest you rename code-oss to code-tranparent for not confilecting with the testing cxode-oss. I did that. But I had to git pull every time, to change every time and compile every time via devtools, but I prefer installing via archlinuxcn.

And would it work with Electron 10? Because I refer to https://github.com/electron/electron/pull/19159#issuecomment-597437430.

frantic1048 commented on 2019-12-27 03:11 (UTC)

@XeGrox: If you've got any issue, please, clarify:

  1. What is expected?
  2. What is not working as expected?
  3. What is changed/did you do anything?

(Please consider reading http://www.catb.org/~esr/faqs/smart-questions.html)

For your last message:

Not working as of 18/12/19 after latest update

I cannot figure out WHAT is not working or should be working, after WHAT update or specific operation. Thus I cannot help solve your issue in any way.

Did you follow the instruction after installation (https://aur.archlinux.org/cgit/aur.git/tree/code-transparent.install?h=code-transparent)? BTW, there's new version 1.41.1-1 since Dec, 25.

XeGrox commented on 2019-12-18 13:27 (UTC)

Not working as of 18/12/19 after latest update

frantic1048 commented on 2019-12-18 07:59 (UTC)

@strimmlarn

According to https://pastebin.com/0AGc5nRy and previous message you mentioned about using yay, it looks yay is using an existing package(built on previous installation process) for your last installation.

The error said something like: "could not find npm nodejs".

I cannot determine what happend here. All the dependencies of this package are from the official repo(no AUR deps), it should not trigger errors like "cannot found package" where the package is in the official repo.

BTW, as the issue mentioned in https://aur.archlinux.org/packages/code-transparent/#comment-714439, if you are building this package yourself, building in a clean environment(like extra-x86_64-build does) is recommended. You can check your AUR helper if it supports building in a clean environment.

Further, you can refer to https://aur.archlinux.org/packages/code-transparent/#comment-714795 for the manually building solution, or use archlinuxcn repo(which delivers a prebuilt code-transparent package to you, also maintained by me).

strimmlarn commented on 2019-12-17 04:49 (UTC) (edited on 2019-12-17 04:57 (UTC) by strimmlarn)

huh removed code-transparent + all dependencies + npm and didn't get the error this time its just installed.

don't know if it helps but here is the log for that:

https://pastebin.com/0AGc5nRy

If you can help me help you just tell me, thx for the package btw.

strimmlarn commented on 2019-12-17 04:21 (UTC)

@frantic1048

sry I don't know where to search for it.

Used yay and didn't have a default folder for makepkg logs.

The error said something like: "could not find npm nodejs".

Ahh what the hell, I try to reinstall it brb.

frantic1048 commented on 2019-12-16 02:23 (UTC)

@strimmlarn: Any log please ?

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.