feat: hyprlock configuration
This commit is contained in:
parent
3993f606a7
commit
3ab4a9b663
3 changed files with 58 additions and 2 deletions
|
|
@ -9,8 +9,63 @@ in
|
||||||
imports = [ inputs.hyprlock.homeManagerModules.hyprlock ];
|
imports = [ inputs.hyprlock.homeManagerModules.hyprlock ];
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.sessionVariables.LOCKER = "hyprlock";
|
||||||
programs.hyprlock = {
|
programs.hyprlock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
general = {
|
||||||
|
hide_cursor = true;
|
||||||
|
no_fade_in = true;
|
||||||
|
};
|
||||||
|
backgrounds = [
|
||||||
|
{
|
||||||
|
monitor = "";
|
||||||
|
path = "";
|
||||||
|
color = "0xff${colors.base01}";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
input-fields = [
|
||||||
|
{
|
||||||
|
size = {
|
||||||
|
width = 300;
|
||||||
|
height = 40;
|
||||||
|
};
|
||||||
|
position = {
|
||||||
|
x = 0;
|
||||||
|
y = 0;
|
||||||
|
};
|
||||||
|
outline_thickness = 2;
|
||||||
|
dots_spacing = 0.2;
|
||||||
|
fade_on_empty = false;
|
||||||
|
placeholder_text = "";
|
||||||
|
outer_color = "0xff${colors.base02}";
|
||||||
|
inner_color = "0xff${colors.base00}";
|
||||||
|
font_color = "0xff${colors.base05}";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
labels = [
|
||||||
|
{
|
||||||
|
monitor = "";
|
||||||
|
text = "";
|
||||||
|
position = {
|
||||||
|
x = 0;
|
||||||
|
y = 80;
|
||||||
|
};
|
||||||
|
color = "0xff${colors.base08}";
|
||||||
|
font_size = 30;
|
||||||
|
font_family = "${config.fontProfiles.monospace.family}";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
monitor = "";
|
||||||
|
text = "$TIME";
|
||||||
|
position = {
|
||||||
|
x = 0;
|
||||||
|
y = -80;
|
||||||
|
};
|
||||||
|
color = "0xff${colors.base0B}";
|
||||||
|
font_size = 20;
|
||||||
|
font_family = "${config.fontProfiles.monospace.family}";
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.sessionVariables.LOCKER = "swaylock";
|
||||||
programs.swaylock = {
|
programs.swaylock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
||||||
|
|
@ -59,11 +59,11 @@ in
|
||||||
terminal = config.home.sessionVariables.TERMINAL;
|
terminal = config.home.sessionVariables.TERMINAL;
|
||||||
browser = config.home.sessionVariables.BROWSER;
|
browser = config.home.sessionVariables.BROWSER;
|
||||||
editor = config.home.sessionVariables.EDITOR;
|
editor = config.home.sessionVariables.EDITOR;
|
||||||
|
locker = config.home.sessionVariables.LOCKER;
|
||||||
|
|
||||||
bright = "${brightnessScript}/bin/brightness";
|
bright = "${brightnessScript}/bin/brightness";
|
||||||
volume = "${volumeScript}/bin/volume";
|
volume = "${volumeScript}/bin/volume";
|
||||||
|
|
||||||
swaylock = "${config.programs.swaylock.package}/bin/swaylock";
|
|
||||||
spotifyctl = "${pkgs.spotify-player}/bin/spotify_player";
|
spotifyctl = "${pkgs.spotify-player}/bin/spotify_player";
|
||||||
discord = "${pkgs.vesktop}/bin/vesktop";
|
discord = "${pkgs.vesktop}/bin/vesktop";
|
||||||
|
|
||||||
|
|
@ -168,7 +168,7 @@ in
|
||||||
"SUPERSHIFT, 0, movetoworkspace,10"
|
"SUPERSHIFT, 0, movetoworkspace,10"
|
||||||
|
|
||||||
# Lock Screen
|
# Lock Screen
|
||||||
"SUPER, Backspace, exec, ${swaylock}"
|
"SUPER, Backspace, exec, ${locker}"
|
||||||
];
|
];
|
||||||
# Mouse
|
# Mouse
|
||||||
bindm = [
|
bindm = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue