feat: Added stuff
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
./linux
|
||||
./programs
|
||||
./scripts.nix
|
||||
# ./services
|
||||
./services
|
||||
];
|
||||
|
||||
xdg.enable = true;
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
./zoxide.nix
|
||||
./mpris-scrobbler.nix
|
||||
./omnix.nix
|
||||
# ./magika.nix
|
||||
# ./ncmpcpp.nix
|
||||
# ./neomutt.nix
|
||||
# ./zellij.nix
|
||||
|
||||
3
home/programs/magika.nix
Normal file
3
home/programs/magika.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{pkgs, ...}: {
|
||||
home.packages = [pkgs.magika];
|
||||
}
|
||||
@@ -11,6 +11,10 @@
|
||||
user = "servius";
|
||||
hostname = "rpi";
|
||||
};
|
||||
tsuba = {
|
||||
user = "servius";
|
||||
hostname = "tsuba";
|
||||
};
|
||||
github = {
|
||||
user = "git";
|
||||
host = "github.com";
|
||||
|
||||
31
home/services/command-runner.nix
Normal file
31
home/services/command-runner.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
inputs.command-runner.homeManagerModules.command-runner
|
||||
];
|
||||
services.command-runner = {
|
||||
enable = true;
|
||||
port = 5599;
|
||||
database.path = "${config.home.homeDirectory}/.local/share/command-runner.db";
|
||||
commands = let
|
||||
hyprctl = "${pkgs.hyprland}/bin/hyprctl";
|
||||
in
|
||||
{
|
||||
"display_on" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "on"];
|
||||
"display_off" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "off"];
|
||||
"display_toggle" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "toggle"];
|
||||
"display_status" = [hyprctl "-i" "{instance}" "-j" "monitors"];
|
||||
"hyprland_instance" = [hyprctl "-j" "instances"];
|
||||
}
|
||||
// (builtins.foldl' (acc: elem: acc // elem) {} (lib.map (name: {
|
||||
"display_on_${name}" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "on" name];
|
||||
"display_off_${name}" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "off" name];
|
||||
"display_toggle_${name}" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "toggle" name];
|
||||
}) ["HDMI-A-1" "DP-3" "DP-1"]));
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
{...}: {
|
||||
imports = [
|
||||
# ./syncthing.nix
|
||||
./command-runner.nix
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user