Skip to content

u/WhyIsThisFishInMyEar

In this archive from Feb 2022 to Jan 2024

7
posts
27
comments
0
media
332
score

A mirror is just a server that can serve you packages, they are where the files get downloaded from when you run pacman. You can't install arch "without mirrors" because then it would be impossible to download any packages.

Generally you want to choose mirrors that are in your region of the world so that you get better connection speed (take a look at https://wiki.archlinux.org/title/Reflector if you want to do this) but if you don't care then I think the iso comes with a default mirrorlist which should work fine.

2 points

Did you create a /dev/sda1 partition earlier in the install process? It won't magically be there otherwise. You can run fdisk -l to get a list of disks and their partitions, can you post the output?

You've given almost no information that we can go off, please post what commands you ran and their output when asking questions otherwise people cannot possibly give you a good answer.

1 points

I don't have a separate partition but I store all my personal files on a NAS, and my config files are in a git repo so if I did need to nuke the system I wouldn't be losing anything that I couldn't just re-download.

Personally if I was nuking I'd want the home directory to go with it as there tends to be a lot of junk in there that's not my personal files. If that solution works for you though then go for it.

Multiple partitions should have no effect on read/write performance, but I believe it could make a difference for copying or moving files. Moving files can be "free" on a single partition as it can just update the file system entry and the actual data can stay where it is, but when moving across multiple file systems it can't do that. I'm not really knowledgeable about how file systems work though so that might not be 100% correct, and I don't think on an ssd it would have a big effect anyway unless you're constantly copying large amount of data around.

1 points

I have an update script that runs pacman -Syu and a couple of other things, and pipes the output to tee.

When I run this, the output of pacman looks strange. The Proceed with installation? [Y/n] prompt is printed before the list of packages instead of after and it just sits there with no output for a while instead of showing the loading bars.

I can live with no loading bars, I imagine the way they are rendered maybe doesn't play well with pipes but is there a way I can fix the prompts printing in the wrong order?

2 points

what is happening in this script

i3-msg -t subscribe -m ["workspace"] listens for the event from i3 and prints it out.

It kinda looks like the output is piped into the while but it's actually piped into the read command. read -r line reads the message outputted by i3 and saves it into a variable called line which is then presumably used inside the loop body.

The while loop is checking the returned error code from the read process which in this case effectively makes it an infinite loop unless the read command somehow runs into an error and fails.

How to approach creating a listener script for a different purpose

I assume you mean like for a different kind of i3 event instead of switching workspaces? I'm not personally familiar with i3-msg usage but it looks like you could change ["workspace"] to some other value to make it listen to a different kind of event, you'd have to look at i3 documentation to find out what kinds of events are available to be subscribed to.

1 points

I've used sway with 2 monitors and have since added a third.

With 2 I had workspaces 1-5 locked to left monitor and 6-10 locked to the right. With 3 monitors I have 1-10 on middle monitor, 11-15 on left, and 16-20 on right.

For workspaces 11+ I press ctrl+super+number instead of just super+number. Admittedly it's kind of awkward to press ctrl+super but I don't find myself often actually needing to switch between workspaces on the non main monitors so it's not too bad.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.