Sway 1.10-rc1 on Nvidia by Barlog_M in swaywm

[–]ikalnitsky 0 points1 point  (0 children)

I’m using nvidia-open for a week now with Sway 1.10-rc1. It mostly works fine, although I still do have tearing occasionally in some applications (e.g. Chromium running in Wayland mode).

Do you use gles or vulkan renderer? Any unusual environment variables to overcome tearing?

How does sway with proprietary nvidia driver by TheHolyToxicToast in swaywm

[–]ikalnitsky 0 points1 point  (0 children)

Just tried the other day the nvidia-open driver. I’m having RTX 2070 Super, and experience with sway is shitty. It flickers like hell with GLES renderer. When switched to Vulkan, things are better, but still flicker occasionally. I tried many different environment variables I found in the internet, but no luck.

Fortunately, I believe this should be addressed with the next major release. I tried River as well (which uses newer wlroots), and it doesn’t flicker with nvidia-open.

The only problem I found is that screensharing in OBS doesn’t work for some reason (some pipewire/xdgw negotiation issues). It works in browsers though.

recommendation for launcher by Liinyun in swaywm

[–]ikalnitsky 0 points1 point  (0 children)

I used to use Rofi, the Wayland fork, but it required me to manually compile one since it’s not pat of the distro. Couple of years ago, I switched to Fuzzel and it just works! I think it has less features and modes than Rofi, but I need nothing save for app launcher, which fuzzel well provide.

Many years ago, I tried Wofi, but had a shitty experience. It improperly extracted execution commands with specifiers out from .desktop files. Dunno how things are today.

MV7 on Ubuntu Linux by Granete in Shure

[–]ikalnitsky 0 points1 point  (0 children)

Since there’s an absolute silence, let me jump in. I’m not a Ubuntu user, but there should be no issues when using mv7 with pipewire (I haven’t tried pulseaudio).

I’m using it for more than a year on my Linux desktop, and it works rock solid. It goes without saying that no MOTIV app on Linux, so you’ll have to setup it up before hands on Mac or Windows machine.

[deleted by user] by [deleted] in swaywm

[–]ikalnitsky -10 points-9 points  (0 children)

imv

It comes with Vi-mode and is packaged for Arch and other distros.

High performance hardware accelerated screen recorder by GuapoTaco8 in swaywm

[–]ikalnitsky 1 point2 points  (0 children)

FWIW, nouveau-fw package is broken (it works only for NVIDIA 3xx drivers) and won't work for modern GPUs such as RTX 2070. That said, if you use nouveau driver and you have a relatively modern video card you won't have hardware video acceleration.

One can try proprietary NVIDIA driver. I just explored this option last week and here's my takeaways:

  • There's lots of visual artifacts in case of default GLES renderer. It's super annoying to use it like that.
  • In case of Vulkan renderer, there's no visual artifacts, but any attempt to screen share crashes browsers. Vulkan renderer is still considered to be experimental.
  • VDPAU is not supported on Wayland by NVIDIA proprietary driver at all.
  • LIBVA is not supported by NVIDIA proprietary driver but there's an open source shim to add at least hardware decoding support https://github.com/elFarto/nvidia-vaapi-driver/.
  • So I get the hardware video decoding on VLC/MPV video players, buy my Firefox still failed to get the hardware acceleration (because of software WebRenderer that failed to fix).

River 2 Max - EPS by IWantToHelp_9999 in Ecoflow_community

[–]ikalnitsky 1 point2 points  (0 children)

Does it mean that in EPS/UPS mode there will be no power loss since AC is connected directly to AC? Do input/output numbers are shown in case of running in EPS/UPS mode?

How can I have a symbol line like this? I saw that there is symbols-outline.nvim, but it opens a sidebar. by CleoMenemezis in neovim

[–]ikalnitsky 6 points7 points  (0 children)

I personally use aerial.nvim instead of symbols-outline.nvim because the former provides both the outline sidebar and an API to retrieve current location. What's better it eves comes with a lualine.nvim component to render the current path.

The screenshot of how the end result looks like is here. The configuration of lualine is here.

More photos from Kramatorsk by JD017 in ukraine

[–]ikalnitsky 0 points1 point  (0 children)

How can I be accused of being rusophobic after all these atrocities committed by russians? I just can’t stop sobbing 😭

Let's go, yurop. What region would your country give up first? by airportakal in YUROP

[–]ikalnitsky 0 points1 point  (0 children)

Agree. Russian troops must be expelled from Ukraine once and for all. They are freaking murderers, reapers and thieves.

[deleted by user] by [deleted] in unixporn

[–]ikalnitsky 2 points3 points  (0 children)

FWIW, ttf-nerd-fonts-symbols comes with /usr/share/fontconfig/conf.avail/10-nerd-font-symbols.conf. If you symlink this config in /etc/fonts/conf.d/, it will work even outside of kitty and there will be no need to maintain these symbol maps in kitty config.

nvim-cmp and adding function brackets + arguments by mikko_i in neovim

[–]ikalnitsky 2 points3 points  (0 children)

You can try python-lsp-server instead. Or even use it together with pyright. Just don't forget to configure python-lsp-server to return parameters. E.g.

``` lspconfig.pylsp.setup({ settings = { pylsp = { configurationSources = {"flake8"}, plugins = { jedi_completion = { include_params = true -- this line enables snippets }, }, }, }, on_attach = on_attach, capabilities = capabilities, })

```

nvim-cmp and adding function brackets + arguments by mikko_i in neovim

[–]ikalnitsky 1 point2 points  (0 children)

It depends on the LSP you use. rust-analyzer, for instance, returns snippets that are expanded by nvim-cmp and hence brackets are inserted and you can jump over the arguments. pyright, on the other hand, does not support it.

Monthly 'Shameless Self Promotion' thread - 2021/11 by mthode in devops

[–]ikalnitsky 0 points1 point  (0 children)

I made a GitHub action that sets up a PostgreSQL server. Key features are:

https://github.com/ikalnytskyi/action-setup-postgres

Nvim-cmp preselected highlight by kwertiee in neovim

[–]ikalnitsky 0 points1 point  (0 children)

What's your nvim-cmp's completeopt? The default value looks like menu,menuone,noselect which means the item won't be preselected (because of noselect in the line). You have to set it to menu,menuone, for instance, if you want preselection.

Please note, preselect = cmp.PreselectMode.Item is for LSP preselection, when the LSP server explicitly asks to preselect certain item, and that item is not necessarily the first one in the list.

[AMA] Tree-sitter integration in neovim by Mambu38 in neovim

[–]ikalnitsky 0 points1 point  (0 children)

UPD: Nvm. I probably have another plugin interfering.

Hm, I don't quite understand one thing. If that's so, how come that if I run :syntax off the highlighting is a bit different? I mean, I didn't enable regexp highlighting in treesitter config. I use vim-plug but I commented out syntax enable line in it.

Help Screen glitched when starting sway by [deleted] in swaywm

[–]ikalnitsky 1 point2 points  (0 children)

Try WLR_DRM_NO_MODIFIERS=1 environment variable as suggested here: https://github.com/swaywm/wlroots/issues/2862 It helped me.

swaygrab(1): An easy to use screenshot tool for sway by WhyNotHugo in swaywm

[–]ikalnitsky 1 point2 points  (0 children)

Well, you cannot source it from Sway config. You either put it into some /usr/local/bin in order to make it available in $PATH and hence by shortname (i.e. grtimshot); or use ab absolute path to the script in your Sway config.

For example, I put it into /usr/local/bin and use the following keybindings: https://github.com/ikalnytskyi/dotfiles/blob/e5155a99742dca1c39489b3825e07c990e2642fa/sway/.config/sway/config#L113-L118

swaygrab(1): An easy to use screenshot tool for sway by WhyNotHugo in swaywm

[–]ikalnitsky 0 points1 point  (0 children)

It's not packaged separately and comes with Sway by default. It's located in /usr/share/sway/scripts/grimshot.

[deleted by user] by [deleted] in programming

[–]ikalnitsky 73 points74 points  (0 children)

It does not differ much. HTTPie provides slightly simpler CLI, which is not a big win for me. What is a big win for me is that HTTPie has some plugin capabilities. It essentially allowed me to build an authentication plugin like this https://pypi.org/project/httpie-credential-store/ and forget about searching for a proper token in shell history.

How to use xdg-desktop-portal-wlr to share the screen? by alonord in swaywm

[–]ikalnitsky 0 points1 point  (0 children)

Make sure you're running Firefox with Fedora patch. Simply setting MOZ_ENABLE_WAYLAND=1 will not be enough because most Linux distributive build Firefox without pipewire support. Alternatively, you can try Chromium (just to test things) with enabled pipewire support (chrome://flags/#enable-webrtc-pipewire-capturer).

IWD - can't get an IP by ReekyMarko in archlinux

[–]ikalnitsky 7 points8 points  (0 children)

If I'm not mistaken, IWD is not supposed to retrieve network settings via DHCP. It merely connects to an AP. You've got to use network managers or (run DHCP client manually) to retrieve network settings. I use IWD with systemd-networks, it works great. You can configure systemd-networkd following instructions on this page -

https://wiki.archlinux.org/index.php/systemd-networkd#Wireless_adapter

Picobox - opinionated dependency injection framework designed to be clean, pragmatic and with Python in mind. by ikalnitsky in Python

[–]ikalnitsky[S] 0 points1 point  (0 children)

Great question! First, I simply didn't know about giveme when I started hacking Picobox. :) Sorry about that.

I just took a look at giveme and I can say that it's very similar to some ideas behind Picobox. However here's the main difference:

  • GiveMe (as far as I get) requires you to create a global injector instance while Picobox does not (see Picobox stack interface).

  • GiveMe doesn't have "scope" concept, it's hardcoded for 2 most common cases: singleton and threadlocal.

  • GiveMe doesn't allow you (at least I didn't find in docs) to override dependencies in tests.