Skip to content

neonoxd/ncps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NCurses Proton environment Setter

Provides a simple curses based user interface for setting up your proton environment and related variables by selecting a "compatdata" and a "proton" folder aimed to use in tandem with automated protontricks scripts

image image

After the selection has been made the script sets the following variables for the passed command

  • PROTON
    • Path to root folder of Proton
  • WINEPREFIX
    • pfx folder of the selected wineprefix/compatdata folder
  • PATHEXTRA
    • path to the bin folder of Proton
  • WINESERVER
    • path to the wineserver binary
  • WINELOADER
    • path to the wineloader binary
  • WINEDLLPATH
    • path entry string containing lib/wine:lib64/wine
  • APPID
    • APPID of selected wineprefix/compatdata

Installation

Simply run ./install.sh then you can use the ncps command

Usage

ncps /path/to/script params or ncps -c '/path/to/script params $envvar_as_param'

Set Env & Execute script with params

$ ncps ./cool_protontricks_script.sh -coolparams
... user interaction
$ hey i'm cool_protontricks_script.sh and received -coolparams and some PROTON env vars

Set Env & Execute script with params in shell mode

Allowing for expanding enviroment variables after they have been set by the tool

$ ncps -c './cool_protontricks_script_that_needs_appid.sh -coolparams $APPID'
... user interaction, selects app having 123realAppid
$ hey i'm cool_proton_script_that_needs_appid.sh and received -coolparams and 123realAppid as parameters

or

$ ncps -c 'echo hello $PROTON'
... user interaction
$ hello /home/deck/Steam/compatibilitytools.d/ProtonGE5

Known Issues & Planned updates

  • Prefix selector shows UNKNOWN for apps that are no longer installed, might use steamapi with caching to get app name
  • PgUP/PgDn & Mouse support is missing
  • Option to reuse last selected environment

Note

This script is primarily created for the Steam Deck

The curses menu can be navigated using the DPAD making it significantly easier to execute protontricks scripts

However, it should Just Work on a standard computer running linux

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published