Shortify net in waybar, add alias for building rpi nixos images

Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
Ivan Bushchik 2023-08-31 17:06:06 +03:00
parent 5954827fe3
commit 12f412a165
No known key found for this signature in database
GPG key ID: 2F16FBF3262E090C
2 changed files with 8 additions and 5 deletions

View file

@ -79,3 +79,6 @@ alias reload_net="sudo systemctl restart NetworkManager wpa_supplicant" # iwd"
# Diskutil aliases
alias dadc="diskutil apfs deleteContainer"
alias devff="diskutil eraseVolume free free"
# TODO: convert to pretty function
alias build_rpi_nix="nix build path:/etc/nixos#nixosConfigurations.rubusidaeus.config.system.build.sdImage"

View file

@ -3,7 +3,7 @@
"position": "top",
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": [],
"modules-right": ["tray", "idle_inhibitor", "cpu", "memory", "wireplumber", "network", "battery", "sway/language", "clock"],
"modules-right": ["tray", "idle_inhibitor", "cpu", "memory", "wireplumber", "battery", "sway/language", "clock"],
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
@ -64,10 +64,10 @@
"interval": 10
},
"network": {
"format": "Network via {ifname}",
"format": "Net via {ifname}",
"tooltip-format": "{ipaddr}/{cidr}",
"format-linked": "Network (No IP) via {ifname}",
"format-disconnected": "No network",
"on-click": "nm-connection-editor"
"format-linked": "Net (No IP) via {ifname}",
"format-disconnected": "No net",
"on-click": ""
},
}