Compare commits
2 Commits
35afccadb1
...
fcb903bb75
| Author | SHA1 | Date | |
|---|---|---|---|
|
fcb903bb75
|
|||
|
bdb776376b
|
@@ -26,6 +26,7 @@
|
||||
../../programs/kitty
|
||||
../../programs/obs-studio
|
||||
../../programs/rofi
|
||||
../../programs/streamcontroller
|
||||
../../programs/tmux
|
||||
../../programs/vscode
|
||||
../../scripts
|
||||
@@ -54,8 +55,8 @@
|
||||
"WLR_NO_HARDWARE_CURSORS,1"
|
||||
];
|
||||
|
||||
hyprland.enableStreamController = true;
|
||||
hyprland.enableGrimblast = true;
|
||||
streamcontroller.enable = true;
|
||||
hyprland.enableWacom = true;
|
||||
hyprland.cursorNoHardware = true;
|
||||
|
||||
@@ -79,13 +80,6 @@
|
||||
"$mon_right" = "desc:Samsung Electric Company LS27A600U HNMT502390";
|
||||
};
|
||||
|
||||
hyprland.lockMonitorNames = [
|
||||
"BNQ G2420HDBL T2B04424SL000"
|
||||
"Samsung Electric Company LS27A600U HNMT502389"
|
||||
"Acer Technologies XB271HU #ASPVEKfgZ8Dd"
|
||||
"Samsung Electric Company LS27A600U HNMT502390"
|
||||
];
|
||||
|
||||
hyprland.extraKeybinds = [
|
||||
"$mainMod,Print,exec,grimblast save active ~/tmp/$(date -Iseconds).png"
|
||||
"$shiftMainMod,Print,exec,grimblast copy area"
|
||||
|
||||
@@ -29,8 +29,6 @@ in
|
||||
description = "Extra environment variables for Hyprland";
|
||||
};
|
||||
|
||||
enableStreamController = mkEnableOption "streamcontroller service";
|
||||
|
||||
enableGrimblast = mkEnableOption "grimblast screenshot keybinds";
|
||||
|
||||
enableWacom = mkEnableOption "Wacom tablet device configuration";
|
||||
@@ -44,16 +42,6 @@ in
|
||||
description = "Extra keybinds for Hyprland";
|
||||
};
|
||||
|
||||
lockMonitorNames = mkOption {
|
||||
type = types.listOf (types.nullOr types.str);
|
||||
default = [ null ];
|
||||
example = [
|
||||
"desc:BNQ G2420HDBL T2B04424SL000"
|
||||
"desc:Samsung Electric Company LS27A600U HNMT502389"
|
||||
];
|
||||
description = "Monitor names for hyprlock backgrounds (null for all monitors)";
|
||||
};
|
||||
|
||||
extraWorkspaces = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
@@ -120,8 +108,9 @@ in
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
background = map (mon: {
|
||||
monitor = if mon == null then "" else "desc:${mon}";
|
||||
background = [
|
||||
{
|
||||
monitor = "";
|
||||
path = "screenshot";
|
||||
color = "rgba(17, 17, 17, 1.0)";
|
||||
blur_passes = 3;
|
||||
@@ -129,7 +118,8 @@ in
|
||||
brightness = 0.8172;
|
||||
vibrancy = 0.1696;
|
||||
vibrancy_darkness = 0.0;
|
||||
}) cfg.lockMonitorNames;
|
||||
}
|
||||
];
|
||||
|
||||
general = {
|
||||
grace = 0;
|
||||
@@ -169,26 +159,6 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.services = mkIf cfg.enableStreamController {
|
||||
streamcontroller = {
|
||||
Unit = {
|
||||
Description = "Streamcontroller service";
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
After = [ "graphical-session.target" ];
|
||||
Requisite = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
ExecStart = "${pkgs.streamcontroller}/bin/streamcontroller -b";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = pkgs.hyprland;
|
||||
|
||||
35
home/programs/streamcontroller/default.nix
Normal file
35
home/programs/streamcontroller/default.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.streamcontroller;
|
||||
in
|
||||
{
|
||||
options.streamcontroller = {
|
||||
enable = mkEnableOption "streamcontroller service";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
systemd.user.services.streamcontroller = {
|
||||
Unit = {
|
||||
Description = "Streamcontroller service";
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
After = [ "graphical-session.target" ];
|
||||
Requisite = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
ExecStart = "${pkgs.streamcontroller}/bin/streamcontroller -b";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user