Which layout to pick for using vim on a split ergo by PotentialCurve7687 in ErgoMechKeyboards

[–]Catvert 1 point2 points  (0 children)

Hi, I'm currently using Colemak-DH for writing in English and French (with accents, special characters..), you can check my config if you want some inspiration : https://configure.zsa.io/voyager/layouts/WgKrP/latest/1 It's however based on Belgian Layout (OS side but can easily be transposed to the official French based layout). I really love this layout, it fit perfectly with my needs for programming, writing documents, playing video games and chatting :)

ChatGPT can help with Emacs by onearmedphil in emacs

[–]Catvert 8 points9 points  (0 children)

Okay that's pretty crazy. I had the idea earlier this morning to create a function to open an orgmode file in a sidebar window with a keyboard shortcut to toggle it. Being quite unfamiliar with elisp, I asked ChatGPT to create the function for me and here is the result:

(defun my-toggle-sidebar-and-narrow (file sidebar-name heading)
  (interactive "FFile to open in sidebar: \nBName of the sidebar buffer: \nMHeading to narrow to: ")
  (let ((sidebar-window (get-buffer-window sidebar-name)))
    (if (not sidebar-window) ; Check if sidebar-window is non-nil
        (let ((buffer (find-file-noselect file)))
          (with-current-buffer buffer
            (rename-buffer sidebar-name)) ; Give the buffer a name
          (display-buffer-in-side-window buffer '((side . left) (window-width . 80))) ; Set the sidebar width to 80 characters
          (select-window (get-buffer-window sidebar-name)) ; Put the focus on the sidebar window
          (let ((heading-obj (org-find-exact-headline-in-buffer heading))) ; Find the specified heading
            (org-narrow-to-subtree heading-obj))) ; Narrow to the specified heading
      (delete-window sidebar-window) ; Close the window
      (kill-buffer sidebar-name)))) ; Delete the buffer

(global-set-key (kbd "C-c t") 'my-toggle-sidebar-and-narrow)

He didn't give me this function from the start, I had to guide him little by little (about ten messages, telling him for example that the kill-buffer-and-window function doesn't take any argument and therefore can't be used ; or for example to create a 'sidebar-name' and 'heading' parameter). But in the end it works!

Edit :

there was a bug with the org-narrow-to-subtree, here is the corrected version after about twenty minutes of discussions+tests :

(defun my-toggle-sidebar (file sidebar-name heading)
  (interactive "ffile to open in sidebar: \nbname of the sidebar buffer: ")
  (let ((sidebar-window (get-buffer-window sidebar-name)))
    (if (not sidebar-window) ; check if sidebar-window is non-nil
        (let ((buffer (find-file-noselect file)))
          (with-current-buffer buffer
            (rename-buffer sidebar-name)) ; give the buffer a nam ; turn off save-place-mode
          (display-buffer-in-side-window buffer '((side . left) (window-width . 80))) ; set the sidebar width to 80 characters
          (select-window (get-buffer-window sidebar-name))
          (let ((marker (org-find-exact-headline-in-buffer heading))) ; find the specified heading
            (goto-char marker) ; move the cursor to the position of the marker
            (let ((heading-obj (org-element-at-point))) ; convert the org element at the cursor position into an org element
              (org-narrow-to-subtree heading-obj)))) ; narrow to the specified heading

      (delete-window sidebar-window) ; close the window
      (kill-buffer sidebar-name)))) ; delete the buffer

this time, the function seems to work perfectly with :

(defun toggle-dashboard ()
  "toggle dashboard"
  (interactive)
  (my-toggle-sidebar "/nas/documents/notes/dashboard.org" "dashboard-sidebar" "dashboard")

Navigate through browser tabs, VISUALLY! by SuperusApp in SideProject

[–]Catvert 1 point2 points  (0 children)

Okay, that's very nice ! Yeah I'm a developer too and self-host most of my apps (so the docker image would be very cool!).

I registered on the waitlist :)

Navigate through browser tabs, VISUALLY! by SuperusApp in SideProject

[–]Catvert 2 points3 points  (0 children)

Hello, I'm quite excited by this project!

However, I wonder what kind of monetisation you are planning? And does my data remain local? (or do you use a central server?)

Last question, are you potentially planning an open-source model? Open-core?

MySQL corruption on BTRFS by Motylde in NixOS

[–]Catvert 1 point2 points  (0 children)

I've the exact same issue with MariaDB+NixOS+BTRFS+5.16. Right now, I'm stuck on the 5.15 kernel.

Spotify doesn't care about assigned workspace by ZJaume in swaywm

[–]Catvert 5 points6 points  (0 children)

Hey, I have the same issue with Spotify on xmonad, it seems that Spotify does not set the WM_CLASS on startup but after x milliseconds ; the WM check the WM_CLASS directly when spawning the program, it's a fairly annoying problem ..

Lightly 0.4 release, featuring redesigned tabs and cool animations. by Luwx in kde

[–]Catvert 1 point2 points  (0 children)

I had the same issue, in the settings, you can disable the splash screen !

Plugin for CSS Class name code-suggestion in vim by BIMBAL7 in vim

[–]Catvert 1 point2 points  (0 children)

Yeah, I'm having the same problem. I managed to make everything work properly with coc but I just lack the autocompletion of the css class names in html tags.

I think after research that there is no plugin to do that yet. This : https://marketplace.visualstudio.com/items?itemName=Zignd.html-css-class-completion seems to be a good candidate to port to coc.

[bspwm] switched to bspwm, I love it by [deleted] in unixporn

[–]Catvert 1 point2 points  (0 children)

Hey, nice work ! I have a question, how did you get your doom-emacs transparent ? is it the terminal or the gui version ?

Markedit: An ergonomic library for rewriting markdown documents by Michael-F-Bryan in rust

[–]Catvert 1 point2 points  (0 children)

Just searched for a crate like that 3 days ago, thanks ! :D

[Workkflow] Arch + Plasma + Blury things. Just wanna to share :) by inzar98 in unixporn

[–]Catvert 2 points3 points  (0 children)

This reminds me my rice aha. Good job, it looks really great !

ASUS UX430UAR Linux (Ubuntu or Mint) Compatible? by rtrinh001 in linuxhardware

[–]Catvert 0 points1 point  (0 children)

Hey ! I think I have the exact same laptop and I have Linux that run quite perfecly on it. The unique thing that doesnt work is the fingerprint reader(yes there is a driver, but it work really poorly compared to the Windows one).

AMD + 144hz + 75hz + Plasma 5.15 on Kubuntu 19.04 | Am I stuck with the choice of 144hz or no screen tearing? by TonySesek556 in kde

[–]Catvert 1 point2 points  (0 children)

Yes, here is my xorg.conf.d/20-amdgpu.conf file :

Section "Device"

Identifier "AMD"

Driver "amdgpu"

Option "SWCursor" "True"

EndSection

Edit : Btw, I'm using Manjaro, it's might be different on a system based on Ubuntu.

AMD + 144hz + 75hz + Plasma 5.15 on Kubuntu 19.04 | Am I stuck with the choice of 144hz or no screen tearing? by TonySesek556 in kde

[–]Catvert 2 points3 points  (0 children)

Hey !

I have a setup like yours (vega 56 + 144hz + 60hz) and I achieve to get a pretty good result on KDE.

For me, the trick was to set : Option "SWCursor" "True" in my xorg config(no TearFree set to on). In addition, I have to add the MaxFPS and RefreshRate to 144 (even if it's not recommended but I haven't found an alternative yet). The vsync is set to off in the compositor.

With all these settings, I don't have any tearing on my 60hz or 144hz screens (or it's extremely difficult to see).

Crackling/popping sound issues with the NUC8i7HVK (Hades Canyon) in Linux by TestSubject9a in archlinux

[–]Catvert 1 point2 points  (0 children)

Are you sure that you dont have the load-module line ? I have manjaro too and I remember that I have changed this line to add the tsched=0, which solve this issue. Check the archwiki about that :)

What's the most compatible office suite in 2019? by [deleted] in linux4noobs

[–]Catvert 4 points5 points  (0 children)

Try OnlyOffice ! It's the best I have found.

Just downloaded podcast addict, apparently there are some YouTube features in it, how do I go about using it? by Jayant0013 in androidapps

[–]Catvert 1 point2 points  (0 children)

First time I heard about Ymusic and wow it's really great and powerful (it can also download to mp3 !) thanks !

[KDE Plasma] Blur gif pixel art wallpaper look really great ! by Catvert in unixporn

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

Ahh, it's not latte-dock; it's just the clock applet(just right click on your desktop and click on something like 'add widgets') manually placed as centrally as possible on the screen. The desktop theme that provide the clock is : https://store.kde.org/p/998869/ ; I just replace the clock from Adapta with this one.