<NikhilSingh[m]1>
i will suggest use a if in your init script that will load according to your need
<NikhilSingh[m]1>
which image viewer you guys are using??
<NikhilSingh[m]1>
earlier i used to use uberzug to display images in terminal ig it only work with x11 so currently m unable to decide which one to use.
snakedye has quit [Ping timeout: 244 seconds]
snakedye has joined #river
talismanick has joined #river
talismanick has quit [Remote host closed the connection]
talismanick has joined #river
<Pound_Hash>
imv and swayimg both work
<Pound_Hash>
imv works better
<Pound_Hash>
Their docs may need to be amended a bit. The keybindings for running `mogrify rotate` would cause the app to stall. I fixed the binding by appending a `&`, running it in the background
<NikhilSingh[m]1>
thanks will look imv
<plumeus>
I use `imv` too.
<plumeus>
My main issues is that it runs in the background and causes high CPU usage when I close River without closing instances of imv. I believe this is an open issue.
<plumeus>
And holding on the next page button (arrow keys) and releasing it will sometimes display the wrong page until hitting the key again.
<plumeus>
I also miss `sxiv`'s "40 + G" keybind to skip to page 40, for example.
<NikhilSingh[m]1>
the issue remains but i was not aware of shellcheck tool thanks mate it is a great tool
<plumeus>
"file not found."
<plumeus>
So, maybe it's trying to look for a program named `/usr/bin/telegram-desktop -workdir` instead of `/usr/bin/telegram-desktop`, for example? idk.
<plumeus>
Maybe `exec` fixes that. I'm not too bright on shell scripting, just a guess with how easy it is to screw up with quotes and globbing.
<NikhilSingh[m]1>
ig you are right but i had tried exec it gave me same result
<Pound_Hash>
Telegram worked better for me when I dl it from official website rather than installing from Arch
<plumeus>
I never used Telegram
<plumeus>
Never had any issues so far /s
<Pound_Hash>
All the cool kids are using it
<Pound_Hash>
Everyone's doing it, man
<plumeus>
I'm never with the cool kids, sadly.
<Pound_Hash>
I doubt many of us were part of the cool clique in high school
<plumeus>
Yeah, they were all using Windows ARM while I'm stuck on NixOS x86_64, or something like that.
<Pound_Hash>
NixOS...yeah that probably didn't help with getting the girls attention
<plumeus>
Talking about the store and derivation is a great first date tactic.
<Pound_Hash>
Neither would my ability to echo 'hello world'
<plumeus>
Just kidding, I never had NixOS during high school. Was using QubesOS. And I also never had dates, so...
<Pound_Hash>
Ah, high school, the bane of smart kids around the world
<plumeus>
QubesOS was both amazing and cursed at the same time. But it certainly wasn't a blessing to use by any means.
<Pound_Hash>
Well, I'm an American, and if I have kids here, they're certainly not going to school in this country
<Pound_Hash>
I'd rather my kids live through a day at school than have bullets flying through them
<plumeus>
It certainly wasn't the friendliest "first distro"...
<Pound_Hash>
No idea what Qubeos is
<Pound_Hash>
Must be why you didn't get dates...
<plumeus>
You shouldn't need to know what it is. It's basically a "secure" OS that focuses heavily on using a VM for every task to provide isolation in all accounts.
<plumeus>
As an American raised in Japan, I only got diagnosed for ASD (Autism Spectrum Disorder) once I moved over here. That said, that speaks more for Japan than it does for the US.
<Pound_Hash>
I see. Having a password is secure enough for me. I don't have anything anyone would really care about.
<Pound_Hash>
Just books
<Pound_Hash>
And Americans don't read books. So nobody here is going to steal them.
<plumeus>
Well, Unix-like OSes should be better than Windows but you can still open a random PDF that attempts to exploit some RCE/ACE on bad PDF readers (if you use them) and possibly get access to some stuff like your passwords. Or just some script you ran that you forgot to audit. The rationale of Qubes is that, ideally, you can brainlessly run stuff you haven't audited.
<plumeus>
It's not like I had anything to secure either.
<Pound_Hash>
I don't audit anything
<Pound_Hash>
I don't understand any of it
<Pound_Hash>
I just made my first script yesterday
<Pound_Hash>
I just trust the Arch package maintainers
<plumeus>
That's why QubesOS exists. Because it's for brain-dead people, or people who have better things to do with their time (pretty much everyone) that also happen to not care about all the performance penalties that VMs provide (this isn't for everyone).
<plumeus>
First time scripting advice: get `shellcheck` and try using `#!/bin/sh` over `#!/bin/bash` to see if POSIX shells are good enough for your needs, I guess.
<NikhilSingh[m]1>
can someone tell difference in eval and exec?
<NikhilSingh[m]1>
as what i asked above worked with eval
<plumeus>
Looks like `eval` concatenates the args into a single string. `eval 1 2 3` == `exec "1 2 3"`?
<NikhilSingh[m]1>
ohhkk
<NikhilSingh[m]1>
do you know any article on bash globbing?
<plumeus>
I learned all my shell scripting from shellcheck + trial and error + looking at other people's scripts. Welp.
<NikhilSingh[m]1>
m doing the same added shellcheck just now
<NikhilSingh[m]1>
if i copy something from firefox and close it. copied content no longer remains in clipboard is this expected behaviour?
<plumeus>
I think so. Clipboards seem to be lost when the program the text is copied from is terminated.
<plumeus>
Well, some clipboards
<plumeus>
idk which programs behave differently, but it can't be all.
<leon-p>
yes, that is expected. river never actually saves what you "copy" anywhere.
<leon-p>
it just helps the applications you copy and paste from to know about each other so they can use a pipe
<leon-p>
if you need a persistent clipboard, you'll have to use a clipboard manager
waleee has quit [Ping timeout: 240 seconds]
snakedye has quit [Remote host closed the connection]
snakedye has joined #river
Pound_Hash has quit [Quit: Pound_Hash]
eShaev9z has joined #river
eShaev9z_ has quit [Ping timeout: 268 seconds]
<NikhilSingh[m]1>
yeah installed cliphist and now working as wanted
<NikhilSingh[m]1>
i am trying to set editor.desktop as default application for all text file
<NikhilSingh[m]1>
is there any way so that i can set it for every type of text file
<NikhilSingh[m]1>
using xdg-mime only setting it for specific type e.g text/x-shellscript
<NikhilSingh[m]1>
?
<tleydxdy[m]>
I quite like mimeo, it's still not painless but it's a lot better than xdg-open and co
<tleydxdy[m]>
I have xdg-open symlinked to mimeo too
<NikhilSingh[m]1>
will try mimeo
<NikhilSingh[m]1>
neofetch detecting sway as window manager
snakedye has quit [Ping timeout: 245 seconds]
fitrh has joined #river
vaivis has joined #river
vaivis has quit [Read error: Connection reset by peer]
gbrlsnchs has quit [Read error: Connection reset by peer]
fitrh has quit [Remote host closed the connection]
Pound_Hash has joined #river
Pound_Hash has quit [Quit: Pound_Hash]
vaivis has joined #river
snakedye has joined #river
<ane>
trying to figure out how the zig-wayland scanner naming works, suppose I have an interface called potato_peeling_machine_v9, that would generate something like wayland.client.potato.PeelingMachineV9 right?
<ane>
er, protocol naming vs emitted zig file*
<ifreund>
ane: yep, that's right
groknull has joined #river
<ane>
oof that was complicated
<ifreund>
note that you can also examine the generated zig source code in `zig-cache/zig-wayland`
<ifreund>
you shouldn't need to guess...
<ane>
well yes I could but not on the machine I'm on :P
groknull has quit [Remote host closed the connection]
<ane>
trying to kill time at a boring work meeting (on macOS)
<ane>
this was much more interesting
<ifreund>
:D
<n0r>
Another trial of forcing myself to use a layout generator has started yesterday and I finally didn't give up within 24 hours xD
<novakane>
congrats :D
<novakane>
welcome to the tiling world :P
waleee has joined #river
<n0r>
I'm not exactly new to that, I've used sway tiling since early 2021. But dynamic tiling is really foreign to me.
gldk has joined #river
waleee has quit [Quit: WeeChat 3.6]
gldk has quit [Quit: Client closed]
waleee has joined #river
vaivis has quit [Ping timeout: 240 seconds]
<leon-p>
NickH: pretty sure the xdg-mime command to set up an editor for all text files goes like this: xdg-mime default editor.desktop text/*
<leon-p>
oops, wrong pring again
<leon-p>
sorry
<leon-p>
NikhilSingh[m]1: ^
<leon-p>
n0r: the "trick" to dynamic tiling is to simply accept that your time is better spent letting the computer care about layouts instead of adjusting everything by hand. Sure, the layout won't be perfect 100% of the time, but given good default it will be alright in the common case, meaning you save time and have to do less context switching.
waleee has quit [Ping timeout: 240 seconds]
<n0r>
It doesn't feel like I'm saving time, because in Sway I don't have to ajust anything by hand either (my default layout there is tabbed so no 5 windows next to each other), but windows just are where I opened/put them, whil in river I spend time searching for them. But that is probably just a matter of getting used to it.
vaivis has joined #river
waleee has joined #river
vaivis has quit [Read error: Connection reset by peer]
<leon-p>
oh, seems like I need to hack on waylock once again, now that single-pixel-buffer is a thing
makaba has joined #river
<makaba>
Hi, is it possible to see how many tags have a focused window? I remember it wasn't really possible months ago
<leon-p>
makaba: it is possible, you'll just have to write the code to do it.
<leon-p>
river exposes that information, just no client I know represents in it the form you are describing
<makaba>
I mean the empty squares that you can see on dwl, for example
<leon-p>
or do you mean "which tags does the current window have"? because that is a different thing and not possible
<leon-p>
sorry, your comment was a bit ambigous to me
<makaba>
yes, I mean "which tags does the current window have"
<leon-p>
ah, I misunderstood you there. No that is not possible right now.
<makaba>
ooh, understood
<leon-p>
there is a WIP draft-PR for a protocol extension that makes this possible, however I am unsure if it makes sense to work on that since river will eventually move in a different direction
<makaba>
what do you mean different direction? Of coding?
<leon-p>
the idea is to move all window management logic to an external client, including tags. Eventually river won't even know what tags are.
<makaba>
Nice
<NikhilSingh[m]1>
how can i exclude any .git dir from listing in find command??
vaivis has joined #river
<tleydxdy[m]>
-path .git -prune I think
<tleydxdy[m]>
find . -path` "*/.git" -prune -o [your normal search]
vaivis has quit [Read error: Connection reset by peer]