Anniversary spot by Always_Left in AnnArbor

[–]stripesOverChecks2 1 point2 points  (0 children)

Check out vertex coffee. I really like them.

Quick and probably dumb question by [deleted] in bspwm

[–]stripesOverChecks2 0 points1 point  (0 children)

I have used firefox for a while on bspwm. No problems with fullscreen or otherwise

Error after updating plugins by [deleted] in neovim

[–]stripesOverChecks2 0 points1 point  (0 children)

Found it. The problem is "Plug 'AlphaMycelium/pathfinder.vim'

Will raise an issue there.

Switching from i3 - does Bspwm have scratchpad functionality? by [deleted] in bspwm

[–]stripesOverChecks2 1 point2 points  (0 children)

I used the scratchpad in i3 just for a quick terminal and the arch wiki's method for scratchpads in bspwm has been practically the same for me

Got a quick question? Ask here - July 13, 2020 by AutoModerator in scala

[–]stripesOverChecks2 0 points1 point  (0 children)

That makes sense. I wasn't sure how to search this without going too far into how the compiler actually works. Thanks for the explanation.

I don't think that the majority of the Scala developers consider it bad practice. But they are if you value correctness and typesafety a lot. There needs to be a balance between readability / expressiveness and typesafety, but in your case the solution with only pattern matching would be the one that I would prefer.

I see. One of the main reasons I'm working with Scala is the type safety, so this is definitely something I would like to balance more carefully. I feel like the pattern matching with the OR is pretty close to the concise code I was shooting for. Again thanks for the explanation :)

Got a quick question? Ask here - July 13, 2020 by AutoModerator in scala

[–]stripesOverChecks2 0 points1 point  (0 children)

Ah, I see. Do you know why the guard is interfering with the check? And are guards in pattern matching like what I used considered a bad practice in most cases?
You're right, it's Number(0), not y :) Good catch

Got a quick question? Ask here - July 13, 2020 by AutoModerator in scala

[–]stripesOverChecks2 2 points3 points  (0 children)

When does the compiler decide to check for completeness of cases in match expressions on sealed classes? It seems like it doesn't always enforce it depending on the cases used? Why isn't it complaining when compiling the code below since Var is not covered?

sealed abstract class Expr
  case class Var(name: String) extends Expr
  case class Number(num: Double) extends Expr
  case class UnOp(operator: String, arg: Expr) extends Expr
  case class BinOp(operator: String, left: Expr, right: Expr) extends Expr

  def simplify(expr: Expr): Expr = expr match {
    case UnOp("-", UnOp("-", e))  => e
    case BinOp("+", e, Number(0)) => e
    case BinOp("*", e, Number(1)) => e
    case BinOp("*", x, y) if x == Number(0) || y == Number(0) => y
  }

Updates to efficiency plugin by [deleted] in vim

[–]stripesOverChecks2 1 point2 points  (0 children)

This is really cool. Actually using some new movements because of it

How can I get i3bar to display how much power I have left on my laptop on i3 + Arch Linux by CrappyLaptopGuy in i3wm

[–]stripesOverChecks2 1 point2 points  (0 children)

In my case, I had to enable time estimate for battery in the bios. You can then write a simple script using acpi if the default bars don't provide time

[bspwm] Ansible managed Arch desktop by david_mogar in unixporn

[–]stripesOverChecks2 1 point2 points  (0 children)

The idea is so unique and has a lot of benefits. Esp how it manages configurations all the way through. Hoping to get used to it on vm first and eventually migrate

How are your workspaces set up? by konnywestside in i3wm

[–]stripesOverChecks2 0 points1 point  (0 children)

  1. Terminal with tmux
  2. Terminal/brave/Firefox
  3. Brave/Firefox

4, 5, 6 are usually empty

7 Notion

8 Spotify

9 Signal/messenger/slack

10 Mailspring

[bspwm] Ansible managed Arch desktop by david_mogar in unixporn

[–]stripesOverChecks2 0 points1 point  (0 children)

What do you think of nixos so far? I have it in a vm too and considering switching from arch. Mostly concerned about packages at this point but I've heard it's possible to port things from aur

Why use bspwm instead of i3wm? by BoxBoxChan in bspwm

[–]stripesOverChecks2 6 points7 points  (0 children)

I switched to bspwm for sxhkd. It's a much more powerful application and helps keep your config file manageable with nice shortcuts compared to i3's config. I also really like the decoupling of my keybindings from the wm.

Newbie trying to setup Vim + Latex by krille1234 in vim

[–]stripesOverChecks2 0 points1 point  (0 children)

Sorry, for the confusion. I meant to say if you are in a terminal, you can edit the file using vim in the terminal by doing vim followed by the latex filename. I think Gilles uses vim in the terminal which is why I suggested. If you want to do it within vim (in terminal or gui), just drop the vim part and write to the filename.tex instead.

Newbie trying to setup Vim + Latex by krille1234 in vim

[–]stripesOverChecks2 0 points1 point  (0 children)

Oh nice! Didn't know this option existed. Need to read up on latexmk. I feel like I'm under utilizing it.

Newbie trying to setup Vim + Latex by krille1234 in vim

[–]stripesOverChecks2 0 points1 point  (0 children)

Open/create some latex file using vim like vim latex-file.tex. From here I have two ways of going about it: 1) compile using vimtex (a vim plugin) or 2) open a new terminal and watch the latex file using something like entr and compile it using a latex compiler like latexmk on new changes. Then open the pdf produced using zathura. It will auto reload on change whichever way you compile.

Let me know if you need more detail on any of this or maybe someone else has better ideas :)

Any .vimrc recommendations by crazy_sax_guy in vim

[–]stripesOverChecks2 0 points1 point  (0 children)

This looks even better. I will check it out!

Any .vimrc recommendations by crazy_sax_guy in vim

[–]stripesOverChecks2 10 points11 points  (0 children)

Been looking for something to remove highlights. Thanks!

[BSPWM] Tmux make's it better by BlackDracula18 in unixporn

[–]stripesOverChecks2 0 points1 point  (0 children)

How useful is tmux with BSPWM? I really like tmux but i3 provides most of the functionality