Write set-icon script
This commit is contained in:
parent
9defc818b9
commit
e3a15a5840
1 changed files with 14 additions and 0 deletions
14
home.nix
14
home.nix
|
@ -4,6 +4,18 @@ let
|
||||||
unstable = import nixpkgs-unstable {
|
unstable = import nixpkgs-unstable {
|
||||||
inherit system;
|
inherit system;
|
||||||
};
|
};
|
||||||
|
setIcon = ''
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
dbus-send \
|
||||||
|
--system \
|
||||||
|
--print-reply \
|
||||||
|
--type=method_call \
|
||||||
|
--dest="org.freedesktop.Accounts" \
|
||||||
|
/org/freedesktop/Accounts/User1000 \
|
||||||
|
org.freedesktop.Accounts.User.SetIconFile \
|
||||||
|
"string:$1"
|
||||||
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [ ./zsh.nix ./ssh.nix ];
|
imports = [ ./zsh.nix ./ssh.nix ];
|
||||||
|
@ -41,6 +53,8 @@ in
|
||||||
wireshark
|
wireshark
|
||||||
|
|
||||||
picocom
|
picocom
|
||||||
|
|
||||||
|
(writeShellScriptBin "set-icon" setIcon)
|
||||||
];
|
];
|
||||||
|
|
||||||
home.stateVersion = "22.05";
|
home.stateVersion = "22.05";
|
||||||
|
|
Loading…
Reference in a new issue