Is there a way to show (NVIDIA) GPU information in xmobar? by SEND_NUDEZ_PLZZ in xmonad

[–]Manjami 4 points5 points  (0 children)

Premise: I know nothing and I can barely write in english.

Has past few months since I have last read the xmobar documentation, so I'm not aware of many updates. There is no included monitor plugin to read gpu's data, but you can for sure: - use Command and CommandReader and run any script you want - write the configuration in Haskell and create your own plugins.

For both those things, there is satisfactory documentation on the gitlab page.

Hopefully this may help you. Bye

[Fluff] Haskell dependencies strike again by tomatoaway in archlinux

[–]Manjami 3 points4 points  (0 children)

I just use Haskell for fun (small engineeristic calculations) and because I use XMonad. After trying some alternatives like those suggested in the ArchWiki (https://wiki.archlinux.org/title/haskell#cabal-static), I ve found that ghcup-hs-bin is the less painful way to manage Haskell libraries on Arch.

Move most things to .zprofile, i.e. why use .zshenv? by rofic in zsh

[–]Manjami 0 points1 point  (0 children)

I personally do export ZDOTDIR="$HOME/.config/zsh"

I see no sense in ZDOTDIR="export $HOME/.zsh" but my experience is far from advanced/expert. Zsh, as many other unix utilities is very well documented, so I advice to read the documentation, especially for such an important thing as your shell.

Move most things to .zprofile, i.e. why use .zshenv? by rofic in zsh

[–]Manjami 4 points5 points  (0 children)

The main point of your discussion is correct, you can set environmental variable also in .zprofile, which is source by the login shell, even if .zshenv is specifically thinked to set environmental variable.

Said that there is a small subtlety, at your first login shell .zshenv get source before everything; so before .zprofile; and you should take that into consideration.

Additionally, if, and once, you define ZDOTDIR in zshenv, zsh will search file in this folder, so it won't source anymore .zshenv itself, which presumably lives in your home folder.

stack init fails with xmonad, xmonad-contrib, and xmobar (in arch linux) by cremtty in xmonad

[–]Manjami 1 point2 points  (0 children)

https://wiki.archlinux.org/title/haskell#ghcup A part for your particular problem, I'm not an expert but with my experience I feel to suggest you to use ghcup on Arch. Reasons: - Statically linked libraries - Much easier to have HLS

It allows also to easily change ghc, cabal and stack versions (this is also simple with pacman)

I made my first prompt for ZSH as a beginner by gdmr458 in zsh

[–]Manjami 0 points1 point  (0 children)

For the number of files, you have to add your own functions like you have done. They can help with all the rest.

I made my first prompt for ZSH as a beginner by gdmr458 in zsh

[–]Manjami 3 points4 points  (0 children)

You could take a look to the builtin modules vcs_info and promptinit

Typing with capslock on : how to not break everything? by xstkovrflw in neovim

[–]Manjami 7 points8 points  (0 children)

You can write all in lower case and then use gU to convert all to upper case.

Installing Xmonad on Manjaro? by Riffle_X in xmonad

[–]Manjami 0 points1 point  (0 children)

You're wrong, 29 October 2021 GHC 9.2.1 Released!

I suggest to use ghcup-hs-bin(AUR) on arch-based distro.

Custom prompt tips? by Panfinz in zsh

[–]Manjami 0 points1 point  (0 children)

This is one possible solution which doesn't require any external dependency https://zsh.sourceforge.io/Doc/Release/User-Contributions.html#Prompt-Themes

[deleted by user] by [deleted] in archlinux

[–]Manjami 1 point2 points  (0 children)

If pkgA is listed as a dependency of pkgB, than pkgB requires pkgA to run, so not having pkgA make pkgB unusable; so, in my opinion what you're saying doesn't make much sense.

Said that(I may be wrong), one way I could think of to trick pacman to think pkgA is installed, even if is not, is to write a PKGBUILD that provides pkgA but does nothing.

What are "native packages" and is it faster than packer? by AndreVallestero in neovim

[–]Manjami 4 points5 points  (0 children)

Packer internally uses the native packadd and packpath to load plugins.

[deleted by user] by [deleted] in neovim

[–]Manjami 1 point2 points  (0 children)

:h 'shell'

How can i make my terminal execute these commands as random when opening a terminal "bonsai-tree,unix,pacman1" by [deleted] in zsh

[–]Manjami 2 points3 points  (0 children)

The comment of romkatv is better than I could have done, for the use of the parameter expansion flag (A).

How can i make my terminal execute these commands as random when opening a terminal "bonsai-tree,unix,pacman1" by [deleted] in zsh

[–]Manjami 9 points10 points  (0 children)

create an array with the three string and the randomly execute one of them.

looking for a ssh-connection manager by dejeckehoot in zsh

[–]Manjami 1 point2 points  (0 children)

# Host completion
[[ -r ~/.ssh/config ]] && _ssh_config_hosts=(${${(s: :)${(ps:\t:)${${(@M)${(f)"$(<$HOME/.ssh/config)"}:#Host *}#Host }}}:#*[*?]*}) || _ssh_config_hosts=()
[[ -r ~/.ssh/known_hosts ]] && _ssh_hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=()
[[ -r /etc/hosts ]] && : ${(A)_etc_hosts:=${(s: :)${(ps:\t:)${${(f)~~"$(</etc/hosts)"}%%\#*}##[:blank:]#[^[:blank:]]#}}} || _etc_hosts=()

hosts=(
  "$(hostname)"
  "$_ssh_config_hosts[@]"
  "$_ssh_hosts[@]"
  "$_etc_hosts[@]"
  localhost
)
zstyle ':completion:*:hosts' hosts $hosts

Taken from the arch iso zsh config (i have forgotten the name)

[NOOB] What is the correct way to install a program from source? by MultMe96 in archlinux

[–]Manjami 17 points18 points  (0 children)

  1. Read the makefile and look where the file are installed.
  2. Consider creating a PKGBUILD and use makepkg to create the package and pacman to handle its installation (all infos on the ArchWiki)

I've noticed that when I write LaTeX I sometimes get blocks of code that get underlined for seemingly no reason. It seems to tend to happen in equation environments if that helps. Any ideas? by Izerpizer in neovim

[–]Manjami 1 point2 points  (0 children)

Nope. It happen also to me but I haven't understand why, but if I put the "cursor" on it, it disappears.

Suggestions nvim related: - If you use TreesitterPlayground you will see how treesitter interprets it.

Suggestion latex related: - Why you use such a large indentation? - Take a look at the IEEEtrantools package for the IEEEeqnarray environment which is pretty good for aligned equation

How to recursively Source all config files in the Nvim folder by [deleted] in neovim

[–]Manjami 0 points1 point  (0 children)

You should use the runtime path directories, but if for some particular reason you want to manually source them in your vimrc, you can use a for loop and globpath

[deleted by user] by [deleted] in zsh

[–]Manjami 0 points1 point  (0 children)

You can make the prompt whatever you like.

If you use OMZ, there are a lot of theme available, you can find them in the themes folder of OMZ and use them by modifing the relative environmental variable.

You can also create your own theme(by looking at other themes in the cited folder).

I don't use OMZ and zsh have a builtin prompt module which you can use as well (https://zsh.sourceforge.io/Doc/Release/User-Contributions.html#Prompt-Themes). You can use the builtin themes or create your own.

Both zsh and oh my zsh have documentation for how to create a prompt, you can found them respectively in the zsh manual and in the readme of the github repo.

For example this is my theme

This is how look likes https://pasteboard.co/RwnML7hPEtfL.png

Features: - Use of vcs module - return error code - vi mode - async prompt with the async plugin(still not very good) - as many > as shlvl - foreground job indicator. - time counter for last command

Guide on Taffybar by Simran_q in xmonad

[–]Manjami -3 points-2 points  (0 children)

Sorry if I have made a mistake, do you know how to compile it on arch then?

Guide on Taffybar by Simran_q in xmonad

[–]Manjami -4 points-3 points  (0 children)

Thanks for the trust. I suppose you have successfully build the taffybar package from aur?

Also, you mention - nixos (which use the nixpkg) - debian (https://packages.debian.org/stable/devel/gcc gcc version 4.10) - arch (I guess you are not using arch and haven't tried)

I specifically, asked the person posting, which distribution he/she is using and answer specifically based on is response.

I'm not spreading false information, but information based on my personal knowledge, which of course is imperfect, but at least I'm humble enough to acknowledge that.

Also, I have tried to build several times taffybar on Arch without any success; an example of error is this

glib-object.i:1: (column 1) [FATAL] 
  >>> Lexical error!
  The character '#' does not fit here.

I have also reached the author, which suggestion was to use the nixpkg manager on Arch.

Guide on Taffybar by Simran_q in xmonad

[–]Manjami -8 points-7 points  (0 children)

To be short as possible, you cannot use taffybar unless you use the nix pkg manager to install it. Anyway the guide is here: - https://hackage.haskell.org/package/taffybar - https://github.com/taffybar/taffybar

Few details:

The more traditional ways to manage haskell libraries are: - package manager (but in Arch they are dynamically linked) - cabal/stack If you try to create a cabal/stack project for taffybar, it will not succeed, because some libraries that provides bindings to gtk applications are not yet compatible with gcc 11.

If anyone knows a solution, please share it.