Hammerheart

joined 2 years ago
[–] Hammerheart@programming.dev 18 points 1 year ago

Is this just referring to the firefox sync feature? I love being able to access tabs from my laptop on my phone and vice versa.

[–] Hammerheart@programming.dev 4 points 1 year ago

"alright, we need to make our service worse to satisfy our real customers"

[–] Hammerheart@programming.dev 3 points 1 year ago (1 children)

So not a whole lot has changed. I cringe thinking of all the youtube video that explain OOP like this

class Animal:


class Dog(Animal):
[–] Hammerheart@programming.dev 1 points 1 year ago

In case this thread turns up a google search, or anyone is keeping score, I think I more or less managed to achieve what I wanted by putting this is in my config:

assign [class="Firefox-esr"]  "2"
exec wezterm -e cmus
 exec swaymsg [app_id="org.wezfurlong.wezterm"] focus
 exec swaymsg move container to workspace "10"
 exec firefox

the only thing i don't love is that if quit cmus, it closes the window instead of bringing me back to the shell. maybe i have so chain commands or something, i don't know. i'm happy to have made it this far. Another thing is I don't know if it's possible to distinguish between the specific instance of wezterm that's running cmus, and the other one i want running on workspace 1.

[–] Hammerheart@programming.dev 1 points 1 year ago

I want my terminal to start on workspace one. Since this is default behavior of adding 'exec ' to my sway config, this requirement is satisfied. I also want Firefox to start up on workspace 2. And I would like another terminal to open on workspace 10, but to automatically run cmus, a terminal music player.

[–] Hammerheart@programming.dev 7 points 1 year ago (1 children)

That was it! I moved the two lines above the .configure() call into the outermost scope, and it works now.

Should probably just bite the bullet and OOP it out. I was putting that off until I figured out how I wanted the whole thing to work, but it will probably be easier to just do it and change it as I go instead of trying to raw dog it for too long.

[–] Hammerheart@programming.dev 2 points 1 year ago

okay, added the rest of the code.

[–] Hammerheart@programming.dev 2 points 1 year ago (1 children)

Is it a low code tool?

[–] Hammerheart@programming.dev 2 points 1 year ago (1 children)

Whats the difference between using backticks for the definition of theDisk and $() ?

[–] Hammerheart@programming.dev 3 points 1 year ago* (last edited 1 year ago) (1 children)
  1. Identify the drives with the lsblk command.
  2. Run sudo mount <path/to/drive> <mount-point> Where path/to/drive is most likely /dev/something and mount-point is any directory you want but id recommend creating it in your home folder. Don't include the angle brackets. You have to create the directory before you can mount the drive there.

If you don't want to do this every time you reboot, youll have to edit fstab like someone else said. Doing this a couple times will help you understand what fstab is actually doing.

[–] Hammerheart@programming.dev 2 points 1 year ago

I learned something very valuable relatively early in learning how to program: sometimes, if you do things you don't understand enough, the understanding will come as a byproduct of just doing the thing.

I had been stuck in a "i must understand the fundamental nature of everything i do before i do it" mindset, so this was quite revelatory to me.

[–] Hammerheart@programming.dev 1 points 1 year ago

I tend to agree with you. I work in a retail pharmacy and literally have had nightmares about work. Some folks dont know how good they have it. But in their defense satisfaction is an unfortunately ephemeral beast. When i first switched from the floor to pharmacy i was happier than id been in years. I still wouldn't go backwards, but god damn some days i would love a job where i can sit down and the only customer i have to worry about is my boss.

view more: ‹ prev next ›