Nushell plugin for interacting with D-Bus
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Format

Ben C 090be12d d942af97

+29 -23
+14 -10
README.md
··· 1 1 # nu_plugin_dbus 2 2 3 - [Nushell](https://nushell.sh/) plugin for interacting with [D-Bus](https://dbus.freedesktop.org/) 3 + [Nushell](https://nushell.sh/) plugin for interacting with 4 + [D-Bus](https://dbus.freedesktop.org/) 4 5 5 - With the commands provided by this plugin, you can interact with many of the desktop-oriented 6 - systems on UNIX-like systems that use D-Bus, including Linux and FreeBSD. You can control media 7 - players, on-screen displays, power policies, and even administer services. 6 + With the commands provided by this plugin, you can interact with many of the 7 + desktop-oriented systems on UNIX-like systems that use D-Bus, including Linux 8 + and FreeBSD. You can control media players, on-screen displays, power policies, 9 + and even administer services. 8 10 9 - Nushell provides a particularly nice environment for interacting with D-Bus, as both support typed 10 - structured data, and interacting with this on a traditional UNIX command line with tools like 11 - `dbus-send` and `busctl` is cumbersome and tricky to automate. 11 + Nushell provides a particularly nice environment for interacting with D-Bus, as 12 + both support typed structured data, and interacting with this on a traditional 13 + UNIX command line with tools like `dbus-send` and `busctl` is cumbersome and 14 + tricky to automate. 12 15 13 - This plugin automatically determines the correct input types through D-Bus introspection when 14 - available, unlike either of the aforementioned tools, making it easier to interact with objects on 15 - the bus without having to implement boilerplate from documentation. 16 + This plugin automatically determines the correct input types through D-Bus 17 + introspection when available, unlike either of the aforementioned tools, making 18 + it easier to interact with objects on the bus without having to implement 19 + boilerplate from documentation. 16 20 17 21 ## Install with Cargo 18 22
+15 -13
flake.nix
··· 7 7 flakelight.inputs.nixpkgs.follows = "nixpkgs"; 8 8 }; 9 9 10 - outputs = inputs @ { 11 - self, 12 - nixpkgs, 13 - flakelight, 14 - }: 10 + outputs = 11 + inputs @ { self 12 + , nixpkgs 13 + , flakelight 14 + , 15 + }: 15 16 flakelight ./. { 16 17 inherit inputs; 17 18 pname = "nu_plugin_dbus"; 18 - package = { 19 - rustPlatform, 20 - dbus, 21 - nushell, 22 - pkg-config, 23 - fetchFromGitHub, 24 - lib, 25 - }: 19 + package = 20 + { rustPlatform 21 + , dbus 22 + , nushell 23 + , pkg-config 24 + , fetchFromGitHub 25 + , lib 26 + , 27 + }: 26 28 rustPlatform.buildRustPackage rec { 27 29 pname = "nu_plugin_dbus"; 28 30 version =