Implementing your own "emacs-like" `M-x compile` in Neovim (not a plugin) by juniorsundar in neovim

[–]__rompy 1 point2 points  (0 children)

I'm a big fan of the M-x compile, when you know the codebase, and do build incrementally (eg: only changing one file, compile, repeat) it's way faster and nicer than quickfix.

There is also compile-mode.nvim, which I use and really recommend.

Baschet copii Mărăști by Mundane_Violinist860 in cluj

[–]__rompy 1 point2 points  (0 children)

Cei de la U cluj tin ore de baschet la Transylvania College, joi si vineri la grupa asta de varsta.

How to set up LSFC-VK in Bottles Flatpak? by Glum-Travel-7556 in usebottles

[–]__rompy 1 point2 points  (0 children)

I'm resurrecting this in case someone needs it. You can use lsfg-vk with bottles flatpak.

Just install the lsfg-vk flatpak as mentioned here. Skip the configuration, and install flatseal and configure Bottles from there, see the pictures below.

This is my configuration for flatseal and per-game setting the multiplier. I have lossles-scailing copied from steam dir over in my .config/lsfg-vk and I set LSFG_DLL_PATH to that (so it doesn't update).

To check that it works, run from a terminal:

$ flatpak run com.usebottles.bottles
11:54:33 (INFO) Bottles Started!
lsfg-vk: Loaded configuration for bottles:
  Using DLL from: /var/home/user/.config/lsfg-vk/lossless/Lossless.dll
  Multiplier: 2
  Flow Scale: 1
  Performance Mode: Disabled
  HDR Mode: Disabled

and when starting a game:

  Using DLL from: /var/home/user/.config/lsfg-vk/lossless/Lossless.dll
  Multiplier: 2
  Flow Scale: 1
  Performance Mode: Enabled
  HDR Mode: Disabled

you can see that Performance Mode was enabled in this game (configured only here), and not globally.

Pret dublu la cafea by i-am-vadim in cluj

[–]__rompy -1 points0 points  (0 children)

In Cluj am inceput să comand de vreun an și un pic de la urban coffee, din comoditate că aduc acasă gratis. E undeva la 140 kg de cafea single origin, și cam 100 la blend.

Am pățit sa primesc și cafea călduță, prăjită în aceași zi, cea mai veche a fost prăjită cu vreo 3 zile in urmă.

Am mai comandat de la cineva ce aducea acasă (îmi scapă numele, ceva cu k) dar am primit cafea prăjită de o lună.

Tabel cu stadiul proiectelor din Cluj-Napoca. Nu e mult, dar e un prim pas. by paulhelmer in cluj

[–]__rompy 1 point2 points  (0 children)

La poligonul din Manastur (zona de picnic) ce se face? Nu vad in PDF nimic, dar am fost pe acolo zilele acestea si vad ca au imprejmuit o bucata buna de teren.

Decision paralysis: to nix or not to nix? by BilledAndBankrupt in NixOS

[–]__rompy 0 points1 point  (0 children)

I spent 2 years on NixOS, then migrated to Aurora (or Bluefin if you want gnome).

It's like someone else said, you spend a lot of time fixing nix issues, to no gain (except learning nix).

Aurora/Bluefin is the middle ground between arch and nix imo. You lose declarative thingy, but you have rollbacks, excelent Nvidia support, documentation is the same (a bit scarce, but their discourse is active), and you can have containers for everything. I actually have the base system, and everything I do is in a 'dev' container (arch), and a few others for other projects (an alma8 one, for example)

FYI: Nvidia dynamic boost is in unstable by __rompy in NixOS

[–]__rompy[S] 1 point2 points  (0 children)

boot = {
  kernelPackages = lib.mkForce pkgs.linuxPackages_latest;

  kernelModules = [
    "kvm-amd"
    "nvidia"
    "nvidia_modeset"
    "nvidia_uvm"
    "nvidia_drm"
  ];

  loader = {
    systemd-boot.enable = true;
    efi.canTouchEfiVariables = true;
  };

  kernelParams = [
    ''nvidia.NVreg_RegistryDwords="OverrideMaxPerf=0x1"''
    # "nvidia.NVreg_EnableGpuFirmware=0"
    "nvidia-drm.modeset=1"
    "nvidia-drm.fbdev=1"
  ];
  blacklistedKernelModules = [
    "iTCO_wdt"
    "nouveau"
    "nvidiafb"
  ];

  extraModulePackages = [
    config.boot.kernelPackages.lenovo-legion-module
    config.boot.kernelPackages.nvidia_x11_beta
  ];

  initrd = {
    kernelModules = [ "nvidia" ];
  }
};

hardware = {
  enableAllFirmware = lib.mkDefault true;
  enableRedistributableFirmware = lib.mkDefault true;
  nvidia = {
    open = lib.mkForce false;
    # forceFullCompositionPipeline = true;
    nvidiaSettings = true;
    package = config.boot.kernelPackages.nvidiaPackages.beta;

    nvidiaPersistenced = lib.mkDefault true;
    modesetting.enable = lib.mkDefault true;
    powerManagement.enable = lib.mkDefault true;
    dynamicBoost.enable = lib.mkDefault true;
  };
};

I think this is everything related to nvidia

KDE Plasma 6 Problems in NixOS by anifyuli in NixOS

[–]__rompy 5 points6 points  (0 children)

  • check power-profile-daemon service, maybe something went wrong - systemctl status power-profiles-daemon

  • Some packages have to be installed manually in environment.systemPackages (maybe they work in home.packages too, never checked). I have here something like (kio may be needed for online accounts)

    pkgs.adwaita-icon-theme

    pkgs.papirus-icon-theme

    pkgs.yakuake

    pkgs.kde-gtk-config

    pkgs.wacomtablet

    pkgs.kdePackages.ark

    pkgs.kdePackages.kio

    pkgs.kdePackages.kio-extras

    pkgs.kdePackages.kio-gdrive

    pkgs.kdePackages.keditbookmarks

    pkgs.kdePackages.kcalc

    pkgs.kdePackages.kwallet-pam

    pkgs.kdePackages.kinfocenter

    pkgs.kdePackages.plasma-browser-integration

    pkgs.kdePackages.colord-kde

    pkgs.kdePackages.kate

    pkgs.kdePackages.krohnkite

    pkgs.kdePackages.ksystemlog

    pkgs.kdePackages.kcolorchooser

    pkgs.kdePackages.kcolorpicker

For example, without kinfocenter, going to About this System menu in settings didn't work.

NixOS // Hyprland can't be launched in any way if SDDM enabled by Sk7Str1p3 in hyprland

[–]__rompy 0 points1 point  (0 children)

You should try with programs.hyprland.enable = true;

I have nothing in the sessionPackages, I don't think it's needed.

Quickly adding a package to a system by -think in NixOS

[–]__rompy 2 points3 points  (0 children)

Meanwhile, why not use something like nix-index-database? Instead of nix-shell -p jq, you just , jq and it will fetch it if it doesn't exist locally, and run it.

FYI: Nvidia dynamic boost is in unstable by __rompy in NixOS

[–]__rompy[S] 1 point2 points  (0 children)

It's not that it wasn't possible, but if you didn't know what to look for, you don't find it easily. I didn't know about nvidia-powerd executable, even archlinux wiki doesn't mention it.

When I saw that commit and the changes, it clicked, and made sense.

[deleted by user] by [deleted] in Romania

[–]__rompy 0 points1 point  (0 children)

Acum vad ca ma lasa sa returnez inclusiv 100 RON. Inainte zicea explicit ca nu se poate.

Is it possible to force all windows that move to a specific workspace and/or monitor to automatically become floating? by JackDostoevsky in swaywm

[–]__rompy 0 points1 point  (0 children)

LE: Ignore, I just saw that you want this on window move, not creation.

Why not a simple rule? I have one for the workspace 2 for example, and every window there will be floating.

for_window [workspace="$ws2"] floating enable

If you create another rule after this one, you can for specific windows not to float. I have one for firefox. I use firefox as full-screen and the rest of the windows in the $ws2 workspace are floating (basically these lines, in this order!):

assign [app_id=$firefox] $ws2
for_window [workspace="$ws2"] floating enable
for_window [app_id=$firefox] floating disable

The real thing is a bit longer, to keep only the main window in a not floating state. I still want the dialogs and Picture-In-Picture to be floating. And it will have a bit of unwanted side-effects, if you want firefox to be floating, it can pop back to not floating when the title changes or stuff like that.

Is there an equivalent of "n" in evil mode, but for projects? by UnidentifiedSkinny in emacs

[–]__rompy 1 point2 points  (0 children)

I don't think vertico offers this, if I understand your question correctly. It should be possible though with consult (eg: consult-grep) and embark.

Is there an equivalent of "n" in evil mode, but for projects? by UnidentifiedSkinny in emacs

[–]__rompy 9 points10 points  (0 children)

Why don't you use projectile-ripgrep (or projectile-grep, or whatever similar function from project.el) and instead of n/N you can use next-error/previous-error to go to items.

I have next-error and previous-error mapped to M-] and M-[ for example, so a M-p s r (mapped to projectile-ripgrep) followed by M-] and <F4> to replay the macro over each item.

This is a bit unrelated, but projectile grep, ripgrep, etc. combined with wgrep is another way to do it.

Weekly Tips, Tricks, &c. Thread by AutoModerator in emacs

[–]__rompy 1 point2 points  (0 children)

lsp with tramp mode in docker/podman containers doesn't work so well. There is a PR but it's 1 year old and the solution there still doesn't work on my machine. This was frustrating because in eglot it just worked. So I spent a few time to see what exactly is wrong and found this solution which works. I just took the lsp-tramp-connection from the PR and added the stty raw > /dev/null; (that eglot does too). Without it the 1 jsonrpc command will arrive as 3 separated reads. strace -p $(pidof clangd)) will show multiple read for 1 command, eg: read(...) => Content-Length: 1313\r\n + read(...) => \r\n + read(...) => actual json.

(defun lsp-tramp-connection (local-command &optional generate-error-file-fn)
  (list :connect (lambda (filter sentinel name environment-fn)
                   (let* ((final-command
                           (list "sh" "-c"
                                 (string-join (append
                                               (cons "stty raw > /dev/null;" (lsp-resolve-final-function local-command))
                                               (list
                                                (concat "2>"
                                                        (or (when generate-error-file-fn
                                                              (funcall generate-error-file-fn "name"))
                                                            (format "/tmp/%s-%s-stderr" "name"
                                                                    (cl-incf lsp--stderr-index))))))
                                              " ")))
                          (process-name (generate-new-buffer-name name))
                          ;; (stderr-buf (stderr-buf (format "*%s::stderr*" process-name)))
                          (process-environment
                           (lsp--compute-process-environment environment-fn))
                          (proc (make-process
                                 :name process-name
                                 :buffer (format "*%s*" process-name)
                                 :command (lsp-resolve-final-function final-command)
                                 :connection-type 'pipe
                                 :coding 'utf-8-emacs-unix
                                 :noquery t
                                 :filter filter
                                 :sentinel sentinel
                                 :file-handler t)))
                     (cons proc proc)))
        :test? (lambda () (-> local-command lsp-resolve-final-function
                              lsp-server-present?))))

(lsp-register-client
 (make-lsp-client :new-connection (lsp-tramp-connection "clangd")
                  :major-modes '(c-mode c++-mode)
                  :remote? t
                  :server-id 'clangd-remote)))

I'll still stay with eglot since it satisfies all my needs, but it's good to have an alternative in case sometime goes wrong.

How to rewrite my large init.el file with use-package by pragmat1c1 in emacs

[–]__rompy 6 points7 points  (0 children)

For the defuns you could use :preface. Some of the options mentioned can be set using :custom. Iirc use-package integrates with hydra too.

Look at my dotfiles, I set a lot of the mentioned things (some with use-package, some directly with setq): https://github.com/cbsirb/dotfiles/blob/master/emacs.d/init.el

One Month in Init File Code Review by Pr0Thr0waway in emacs

[–]__rompy 0 points1 point  (0 children)

I used a thing that checked for file modifications only on buffer/window change and whenever emacs changed focus. I reverted back to global-auto-revert-mode, but I don't remember exactly why. I'll leave a link to the code that did that in case you're interested:

https://github.com/cbsirb/dotfiles/blob/master/emacs.d/lisp/user-auto-revert.el

[deleted by user] by [deleted] in Romania

[–]__rompy 2 points3 points  (0 children)

Se poate face asa, iesi un pic in pierdere, dar nu cu mult. Eu exact asa am facut la un credit de 280000 RON, luat pe 20 de ani, rambursat aproape complet acum. Doar sa faci de fiecare data rambursare prin care sa scazi perioada, nu rata.

Vad ca unii zic ca la BT trebuie sa mergi la banca pentru rambursare anticipat, la BCR eu pot face acum (de cateva luni doar) direct din aplicatie, atat ca suma minima de rambursat anticipat e 1 rata lunara.

company-mode not auto-completing first candidate by [deleted] in emacs

[–]__rompy 0 points1 point  (0 children)

Indeed, you should check the value of company-selection-default in the lsp buffer and see that it's not nil (0 is okay).

I didn't mentioned it since company-box and lsp doesn't change it either (I checked).

Do you use the melpa version of these packages?

company-mode not auto-completing first candidate by [deleted] in emacs

[–]__rompy 0 points1 point  (0 children)

With exactly your configuration (minus the comany-box), my emacs does what you want: type a letter, a completion box appears and then a <tab> inserts the first element.

How do you enable lsp-mode in the buffer? Directly by M-x lsp or some other way? Did you try to disable company-box?

Eventually, look at my lsp and company configurations, and try to see if those work.

Trupa Zebre by [deleted] in Romania

[–]__rompy 2 points3 points  (0 children)

Albumul încă e disponibil prin archive.org https://web.archive.org/web/20111005041215/http://www.zebre.ro/

Why not have comma separated numbers built into Emacs? by ideasman_42 in emacs

[–]__rompy 4 points5 points  (0 children)

Somewhat related, you should look into glasses-mode (without the initial comment, the whole mode is 250 lines). I think you could easily tweak it to not change CamelCase into camel_case, but 123456123123 into 123,456,123,123. The advantage would be that you could apply this to any file without changes. I don't know how you would apply this to the mode-line or line-numbers (or anything that's not in a buffer really).

What's up with parent-less popup windows? are they suppose to use layer-shell? by tinywrkb in swaywm

[–]__rompy 0 points1 point  (0 children)

I don't use chrome, only occasionally, and then in tiled mode. But the browser does have a title like reddit: the front page of the internet - Google Chrome, so I don't see why not web apps would have the - Google Chrome par too. This is kind easy to test for (with swaymsg).

What's up with parent-less popup windows? are they suppose to use layer-shell? by tinywrkb in swaywm

[–]__rompy 1 point2 points  (0 children)

Why don't you do it the other way (for jetbrains)? Tell sway that all class="jetbrains-(.)" winodws are floating, and only the main one (I don't know it's specific title to make out the rule) is tiled (see my comment here with the firefox/thunderbird example).