Emanuele Torre

Results 208 comments of Emanuele Torre
trafficstars

I recently had a similar problem with intellij idea; I used [`wmname`](https://tools.suckless.org/x/wmname/) to set the wmname of the root window to `LG3D`. wmname LG3D Running that command, fixed all problems...

You can use external rules. Example1 (apply the rule only if the number of windows in the first desktop is less than 3): ```bash #!/bin/sh class=$2 if [ "$class" =...

Not explicitly since `single_monocle` is a global setting, but you can write a simple script to enable `single_monocle` for all desktops but one (e.g. the first desktop): ```bash #!/bin/bash bspc...

I have noticed that: ```bash $ dateadd -i %m 09 1mo -1d 2021-09-29 $ dateadd -i %m 09 1mo 2021-10-00 ``` Days seem to be off by one in a...

This is not a jq issue. if you write `."@text"` in a file (e.g. `file.jq`) and then run `jq -f file.jq`, it will work. The problem is that your shell...

> `\xE3\x80\x8C1\xE3\x80\x8D\xE8\xA1\xA8\xE6\xA0\xBC"` `jq` cannot read that since it is not valid JSON. ![s](https://user-images.githubusercontent.com/20175435/172342354-dd43b27b-6630-472e-b34e-1828b54697c1.png) https://www.json.org/json-en.html

@pawan-soobhri that probably just means that you are running an older version of `jq` (probably 1.5). the current version of `jq` (1.6; released ~4 years ago) would output: ``` bash-5.1$...

you can also just use: ```bash jq -n 'try input catch null, inputs | . # your code' ``` or, if you want to be better about dealing with parse...

> Can also do: > > ```bash > jq -n 'inputs // null | ...' > ``` RE: @wader Nope, you can't do that. `jq`'s `//` checks non-truthyness not emptiness;...

RE: @wader > ```bash > jq -n '[inputs][0] | ...' > ``` I am guessing you forgot a `.[1:][]`: ```bash jq -n '[ inputs ] | .[0], .[1:][]' ``` If...