!HHwUGhuacLZjXGCBsu:matrix.org

Sway

234 Members
i3-compatible Wayland compositor https://swaywm.org/48 Servers

Load older messages


SenderMessageTime
24 Jul 2021
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone * Config looks like this if you're wondering :D10:51:12
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneso that just writes out the dotfile for i3status-rust10:51:34
@chda:matrix.orgp00foh wow (3)10:51:48
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneand also ensures rsstail is available for it to use, so it installs a package and configures i3status-rust10:51:59
@chda:matrix.orgp00fi wanna try guix at some point10:52:35
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone

the resultant config file looks like this:

cons = "none"
theme = "space-villain"
[[block]]
block = "custom"
command = "/nix/store/lnc74wk5d63zxhy2fbg5vcbjc4iwb8yn-rsstail-2.1/bin/rsstail rsstail -n 1 -1 -N -u https://github.com/nixos/nixpkgs/commits/master.atom"
interval = 60

[[block]]
block = "memory"
display_type = "memory"
format_mem = "{mem_used_percents}"
format_swap = "{swap_used_percents}"

[block.theme_overrides]
idle_bg = "#00223f"

[[block]]
block = "cpu"
format = "{barchart} {utilization} {frequency}"
interval = 1

[[block]]
block = "sound"

[block.theme_overrides]
idle_bg = "#00223f"

[[block]]
block = "battery"
format = "{percentage} {time}"

[[block]]
block = "net"
format = "{ssid} {signal_strength} {ip} {speed_down;K*b} {speed_up;K*b}"
interval = 5

[block.theme_overrides]
idle_bg = "#00223f"

[[block]]
block = "time"
format = "%F %T"
icons_format = " "
interval = 1
10:52:35
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneGuix is cool, but I don't know of any way to build Android or Windows with it.10:53:43
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneIt's definitely in a different category :D10:53:52
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone * It's definitely in a different category :D10:53:54
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone(but with Nix I can indeed do both of those things)10:54:13
@chda:matrix.orgp00f
In reply to @matthewcroughan:defenestrate.it
Guix is cool, but I don't know of any way to build Android or Windows with it.
i don't want to 🙃
10:54:20
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneThere's also this thing in Nix called flakes which are just an incredible concept which I haven't seen Guix match yet, and I don't think I can play with Guix until they have.10:55:18
@chda:matrix.orgp00f@ devs instead of a block to check the status of mako, a block for clipman would be better 😛. mako has never died on me10:56:15
@chda:matrix.orgp00fclipman keeps dying for some reason10:56:29
@chda:matrix.orgp00f
In reply to @matthewcroughan:defenestrate.it
There's also this thing in Nix called flakes which are just an incredible concept which I haven't seen Guix match yet, and I don't think I can play with Guix until they have.
sounds neat
10:58:40
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone the tldr is that without flakes you couldn't nix build github:matthewcroughan/nixcfg#robotnixConfigurations.pyxis.ota and get an Android ZIP which you could flash to my phone 10:59:16
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneOr the same, for my whole system configuration, it'd have to sorta come from locally on a disk, where your "channels" are managed impurely.10:59:47
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone * Or the same, for my whole system configuration, it'd have to sorta come from locally on a disk, where your "channels" are managed impurely.10:59:53
@chda:matrix.orgp00fRedacted or Malformed Event11:00:34
@chda:matrix.orgp00fRedacted or Malformed Event11:01:11
@chda:matrix.orgp00fRedacted or Malformed Event11:02:14
@jan:graffl.orgJan joined the room.16:50:57
@jan:graffl.orgJan

hey there, I'm gettin confused right now a bit. Maybe you guys can help me. I'm trying to use the autoname-workspaces.py script. I wanted to add it to my sway config and did so like this:

exec_always --no-startup-id "~/.config/sway/autoname-workspaces.py"

This works like a charm, however that would spawn unlimited copies of the script in case I'd reload the config, so I did:

exec_always --no-startup-id "pkill -f \"autoname-workspaces.py\""
exec_always --no-startup-id "~/.config/sway/autoname-workspaces.py"

But whenever I reload the config, the script is not there. If I execute both via swaymsg exec_alway [...], it works.
What am I doing wrong?

16:55:40
@jan:graffl.orgJan

I also tried to do

exec_always --no-startup-id "pkill -f \"autoname-workspaces.py\"; ~/.config/sway/autoname-workspaces.py"

If I try that with swaymsg however, I get an error: Error: Unknown/invalid command '~/.config/sway/autoname-workspaces.py'

17:00:07
25 Jul 2021
@jan:graffl.orgJanNot yet sure why, but today I had the idea of moving the start of the script after launching waybar, and that somehow worked.10:16:11
@CromFr:matrix.orgCromFr (Thibaut CHARLES) Jan you can replace exec_always with exec, so the command is only run once when sway starts, and not every time sway config is reloaded 12:25:55
@jan:graffl.orgJanI know but sometimes I have to edit the script and will want to see its effects without restarting the whole session12:26:43
@CromFr:matrix.orgCromFr (Thibaut CHARLES)What I do in this case is that I manually launch the command in a terminal and put it in an unused workspace12:27:55
@jan:graffl.orgJanyeah well I was able to make it work with exec_always by putting the pkill at the beginning and launching the script farther to the end. I don't understand why that works, but I'll accept my fate. :D12:29:14
26 Jul 2021
@etrnal70:matrix.orgetrnal70 set a profile picture.07:27:44

There are no newer messages yet.


Back to Room List