new post: moving to wayland river #10
@@ -18,7 +18,7 @@ Qtile looked good, but I didn't like configuring it in Python.
|
|||||||
|
|
||||||
Then my friend [Emil](https://em.0x45.cz/) told me about his `river` setup. He was happy with it, so I gave it a shot.
|
Then my friend [Emil](https://em.0x45.cz/) told me about his `river` setup. He was happy with it, so I gave it a shot.
|
||||||
|
|
||||||
What I really like about river is that i can configure it on the fly. The whole configuration is a single Bash script that sends commands to river live - no recompiling or restarting required.
|
What I really like about river is that I can configure it on the fly. The whole configuration is a single Bash script that sends commands to river live - no recompiling or restarting required.
|
||||||
|
|
||||||
As a layout manager I chose [Filtile](https://github.com/pkulak/filtile) as it's very similar to dwm behavior.
|
As a layout manager I chose [Filtile](https://github.com/pkulak/filtile) as it's very similar to dwm behavior.
|
||||||
|
|
||||||
@@ -53,15 +53,15 @@ Besides using built-in modules, it's also possible to create custom ones using s
|
|||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
Where `waybar_audio.sh` and `toggle_audio` are my custom Bash scripts both available in my [dotfiles repository](https://git.filiprojek.cz/fr/dotfiles/src/branch/master/.local/bin)
|
Where `waybar_audio.sh` and `toggle_audio` are my custom Bash scripts both available in my [dotfiles repository](https://git.filiprojek.cz/fr/dotfiles/src/branch/master/.local/bin).
|
||||||
|
|
||||||
## Application starter dmenu => Wmenu
|
## Application starter dmenu => Wmenu
|
||||||
I found Wmenu to be the most similar app laucher to dmenu and I don't like changes, so i picked it.
|
I found Wmenu to be the most similar app launcher to dmenu and I don't like changes, so I picked it.
|
||||||
I was able to customize it to my liking - vertical list of apps.
|
I was able to customize it to my liking - vertical list of apps.
|
||||||
The only thing that didn't work and I missed that feature so much was fuzzy search. Wmenu doesn't support it and there was no patch available. So I've decided to create my own version of wmenu with fuzzy search support with help of chatgpt codex :D. As much as I hate AI, Codex was actually able to modify that C code in just single prompt. My modified version of wmenu is available in [this github repository](https://github.com/filiprojek/wmenu).
|
The only thing that didn't work and I missed that feature so much was fuzzy search. Wmenu doesn't support it and there was no patch available. So I've decided to create my own version of wmenu with fuzzy search support with help of chatgpt codex :D. As much as I hate AI, Codex was actually able to modify that C code in just single prompt. My modified version of Wmenu is available in [this github repository](https://github.com/filiprojek/wmenu).
|
||||||
|
|
||||||
## passmenu integration to wmenu
|
## passmenu integration to wmenu
|
||||||
For my password manager GUI I like to use passmenu - an dmenu script that helps me pick my password anywhere I am. But there was a problem. Passmenu was written only for dmenu. That's where chatgpt helped me again and together we created [this rewrite of passmenu](https://github.com/filiprojek/passmenu-wmenu) for wmenu.
|
For my password manager GUI I like to use passmenu - an dmenu script that helps me pick my password anywhere I am. But there was a problem. Passmenu was written only for dmenu. That's where chatgpt helped me again and together we created [this rewrite of passmenu](https://github.com/filiprojek/passmenu-wmenu) for Wmenu.
|
||||||
Passmenu is an excellent example of where I use the fuzzy search feature the most.
|
Passmenu is an excellent example of where I use the fuzzy search feature the most.
|
||||||
|
|
||||||
## Terminal alacritty => foot
|
## Terminal alacritty => foot
|
||||||
@@ -109,8 +109,8 @@ xdg-desktop-portal &
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
On my X.org setup I was using screenshots with `shotgun` and `slop` based on my friend's tutorial: [Taking screenshots with shotgun and slop](https://em.0x45.cz/posts/taking-screenshots-with-shotgun-and-slop/)
|
On my X.org setup I was using screenshots with `shotgun` and `slop` based on my friend's tutorial: [Taking screenshots with shotgun and slop](https://em.0x45.cz/posts/taking-screenshots-with-shotgun-and-slop/). Fortunately he already wrote a guide for wayland alternative: [Taking screenshots on Wayland with Grim and Slurp](https://em.0x45.cz/posts/taking-screenshots-on-wayland-with-grim-and-slurp/).
|
||||||
Fortunately he already wrote a guide for wayland alternative: [Taking screenshots on Wayland with Grim and Slurp](https://em.0x45.cz/posts/taking-screenshots-on-wayland-with-grim-and-slurp/)
|
|
||||||
But I had issues with the combination of `grim` and `slurp`. While pasting an image from clipboard to telegram, it pasted raw PNG data instead of a file. This was the fix:
|
But I had issues with the combination of `grim` and `slurp`. While pasting an image from clipboard to telegram, it pasted raw PNG data instead of a file. This was the fix:
|
||||||
```bash
|
```bash
|
||||||
riverctl map normal None Print spawn 'file="/home/$USER/Pictures/Screenshots/$(date +%F_%T).png"; grim -g "$(slurp -d)" "$file" && wl-copy --type text/uri-list "file://$file"'
|
riverctl map normal None Print spawn 'file="/home/$USER/Pictures/Screenshots/$(date +%F_%T).png"; grim -g "$(slurp -d)" "$file" && wl-copy --type text/uri-list "file://$file"'
|
||||||
@@ -124,7 +124,9 @@ This is a list of other software that I used on X.org and their alternatives on
|
|||||||
|
|
||||||
## Final thoughts
|
## Final thoughts
|
||||||
After a few weeks with River, I don’t miss Xorg much. The setup feels lighter, screenshots and screen sharing work fine now, and I can still keep my DWM-like workflow.
|
After a few weeks with River, I don’t miss Xorg much. The setup feels lighter, screenshots and screen sharing work fine now, and I can still keep my DWM-like workflow.
|
||||||
|
|
||||||
There's just one thing I didn't get working and that is the indication of how many windows are open in monocle layout. Dwm used `[X]` where `X` was the number of open windows on that tag.
|
There's just one thing I didn't get working and that is the indication of how many windows are open in monocle layout. Dwm used `[X]` where `X` was the number of open windows on that tag.
|
||||||
|
|
||||||
River feels more responsive overall, and I haven’t run into any crashes so far.
|
River feels more responsive overall, and I haven’t run into any crashes so far.
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
Reference in New Issue
Block a user