waybar,systemd,hm: configure himalaya
This commit is contained in:
parent
8d306aaaf9
commit
d6ba8d3d09
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||||
"modules-center": ["sway/window"],
|
"modules-center": ["sway/window"],
|
||||||
"modules-right": ["tray", "pulseaudio", "network", "network#wireguard", "temperature", "custom/storage", "memory", "cpu", "backlight", "sway/language", "battery", "clock#date", "clock#time"],
|
"modules-right": ["tray", "custom/himalaya", "pulseaudio", "network", "network#wireguard", "temperature", "custom/storage", "memory", "cpu", "backlight", "sway/language", "battery", "clock#date", "clock#time"],
|
||||||
"sway/workspaces": {
|
"sway/workspaces": {
|
||||||
"all-outputs": false,
|
"all-outputs": false,
|
||||||
"format": "{name}",
|
"format": "{name}",
|
||||||
@ -133,6 +133,12 @@
|
|||||||
"interval": 40,
|
"interval": 40,
|
||||||
"exec": "~/.config/waybar/modules/storage.sh"
|
"exec": "~/.config/waybar/modules/storage.sh"
|
||||||
},
|
},
|
||||||
|
"custom/himalaya": {
|
||||||
|
"exec": "tail -fn 1 /tmp/himalaya-counter-am | xargs -I {} sh -c 'if [ {} -gt 0 ]; then echo 📫; else echo; fi'",
|
||||||
|
"format": "{}",
|
||||||
|
"on-click": "kitty -1 --hold himalaya -a a_mirre",
|
||||||
|
"tooltip": false
|
||||||
|
},
|
||||||
"tray": {
|
"tray": {
|
||||||
"icon-size": 18
|
"icon-size": 18
|
||||||
},
|
},
|
||||||
|
@ -65,7 +65,7 @@ window#waybar.solo {
|
|||||||
color: #c9545d;
|
color: #c9545d;
|
||||||
}
|
}
|
||||||
|
|
||||||
#mode, #battery, #cpu, #memory, #pulseaudio, #backlight, #custom-storage, #custom-spotify, #custom-weather, #custom-mail {
|
#mode, #battery, #cpu, #memory, #pulseaudio, #backlight, #custom-storage, #custom-spotify, #custom-weather, #custom-mail, #custom-himalaya {
|
||||||
margin: 0px 5px 0px 5px;
|
margin: 0px 5px 0px 5px;
|
||||||
min-width: 30px;
|
min-width: 30px;
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,7 @@ in {
|
|||||||
duf
|
duf
|
||||||
dua
|
dua
|
||||||
du-dust
|
du-dust
|
||||||
|
himalaya
|
||||||
b3sum
|
b3sum
|
||||||
cargo-watch
|
cargo-watch
|
||||||
zellij
|
zellij
|
||||||
@ -331,6 +332,61 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
himalaya-watch = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Himalaya watcher";
|
||||||
|
After = "network.target";
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${pkgs.himalaya}/bin/himalaya watch -a a_mirre";
|
||||||
|
Restart = "always";
|
||||||
|
RestartSec = 10;
|
||||||
|
Environment = "RUST_LOG=debug";
|
||||||
|
ReadWritePaths = "/tmp/himalaya-counter-am";
|
||||||
|
ProtectHome = "true";
|
||||||
|
ProtectSystem = "true";
|
||||||
|
DevicePolicy = "closed";
|
||||||
|
NoNewPrivileges = true;
|
||||||
|
LockPersonality = true;
|
||||||
|
InaccessiblePaths = [
|
||||||
|
"-/lost+found"
|
||||||
|
"/dev/shm"
|
||||||
|
"-%h/.ssh"
|
||||||
|
];
|
||||||
|
# KeyringMode = "private";
|
||||||
|
};
|
||||||
|
Install = {
|
||||||
|
WantedBy = ["default.target"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
himalaya-notify = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Himalaya new message notifier";
|
||||||
|
After = "network.target";
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${pkgs.himalaya}/bin/himalaya notify";
|
||||||
|
Restart = "always";
|
||||||
|
RestartSec = 10;
|
||||||
|
Environment = "RUST_LOG=debug";
|
||||||
|
ProtectHome = "true";
|
||||||
|
ProtectSystem = "true";
|
||||||
|
DevicePolicy = "closed";
|
||||||
|
NoNewPrivileges = true;
|
||||||
|
LockPersonality = true;
|
||||||
|
InaccessiblePaths = [
|
||||||
|
"-/lost+found"
|
||||||
|
"/dev/shm"
|
||||||
|
"-%h/.ssh"
|
||||||
|
];
|
||||||
|
# KeyringMode = "private";
|
||||||
|
};
|
||||||
|
Install = {
|
||||||
|
WantedBy = ["default.target"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
trackerMask = {
|
trackerMask = {
|
||||||
Unit = {Description = "";};
|
Unit = {Description = "";};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user