Score:0

Installation: Copy script somewhere into $PATH

us flag

I wanted to install polybar-themes and one of the dependencies was networkmanager_dmenu so, i want to install it. Im on Ubuntu 20.04 and only valid option there for me is: Copy script somewhere into $PATH I have no idea on how to implement this, can someone explain this to me?

Score:1
cn flag

PATH is an environmental variable that contains a list of directories where the system searches for an executable that matched a command. See here for more information. The contents can be seen in your terminal with the command

echo $PATH

In theory, you thus could have your install program look at the directories in there, and install it in one of the directories listed.

However, there are conventions on the use of directories. sbins directories are intended for system binaries, bin directories for all other executables. You thus will select a bin directory:

  • If you distribute your executable (your script) through the packaging system of your distribution, place it in /usr/bin. For Ubuntu, this means your software is packaged as a .deb installation file.
  • If your script is a custom installation script, then place your executable in /usr/local/bin. That directory is not managed by the packaging system of the operating system.
Score:-1
au flag

Polybar themes are made to work with tiling window managers like dwm, bspwm, xmonad, i3 etc. By default ubuntu 20.04 comes with gnome which is not a tiling window manager. Therefore polybar does not work with regular ubuntu desktop, unless you install specifically a tiling window manager.

Patrick Ziegler avatar
us flag
This is not true. While many people are using polybar with a tiling window manager, it will work on any window manager running on an X server.
llesh avatar
au flag
@Patrick Ziegler Why the downvote? I never said that polybar does not work on X server. I said if the user has the default installation of Ubuntu, polybar would not work as they expect.
Patrick Ziegler avatar
us flag
I downvoted because you said that polybar doesn't work properly on non-tiling WMs. Whether the WM uses tiling for its windows has no influence on polybar.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.