use hyprlock, because it looks okay at least
This commit is contained in:
parent
e0c6a80533
commit
1c7f744aaf
9 changed files with 17 additions and 10 deletions
8
common/graphix.nix
Normal file
8
common/graphix.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
security.pam.services.hyprlock = { };
|
||||||
|
}
|
||||||
|
|
@ -458,6 +458,9 @@ in
|
||||||
};
|
};
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
home-manager.enable = true;
|
home-manager.enable = true;
|
||||||
|
hyprlock = {
|
||||||
|
enable = enableGraphical;
|
||||||
|
};
|
||||||
# add `play funny video` as alias because why not
|
# add `play funny video` as alias because why not
|
||||||
zsh.shellAliases.bzzt = lib.mkIf enableGraphical ''nix-shell -p mpv --command "mpv ~/Videos/BZZZM.mp4"'';
|
zsh.shellAliases.bzzt = lib.mkIf enableGraphical ''nix-shell -p mpv --command "mpv ~/Videos/BZZZM.mp4"'';
|
||||||
# lsd makes files look better
|
# lsd makes files look better
|
||||||
|
|
@ -504,10 +507,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
zoxide = {
|
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
@ -561,7 +560,6 @@ in
|
||||||
targets = {
|
targets = {
|
||||||
neovim.enable = false;
|
neovim.enable = false;
|
||||||
waybar.enable = false;
|
waybar.enable = false;
|
||||||
swaylock.enable = true;
|
|
||||||
fuzzel.enable = false;
|
fuzzel.enable = false;
|
||||||
firefox.profileNames = [ "profile_0" ];
|
firefox.profileNames = [ "profile_0" ];
|
||||||
qt = {
|
qt = {
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,6 @@
|
||||||
targets = {
|
targets = {
|
||||||
neovim.enable = false;
|
neovim.enable = false;
|
||||||
waybar.enable = false;
|
waybar.enable = false;
|
||||||
swaylock.enable = true;
|
|
||||||
firefox.profileNames = [ "profile_0" ];
|
firefox.profileNames = [ "profile_0" ];
|
||||||
qt = {
|
qt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,8 @@
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
|
../../common/graphix.nix
|
||||||
|
|
||||||
../../common
|
../../common
|
||||||
../../common/configuration.nix
|
../../common/configuration.nix
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,6 @@
|
||||||
targets = {
|
targets = {
|
||||||
neovim.enable = false;
|
neovim.enable = false;
|
||||||
waybar.enable = false;
|
waybar.enable = false;
|
||||||
swaylock.enable = true;
|
|
||||||
firefox.profileNames = [ "profile_0" ];
|
firefox.profileNames = [ "profile_0" ];
|
||||||
qt = {
|
qt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ in
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
search = {
|
search = {
|
||||||
default = "ddg";
|
default = "ddg";
|
||||||
|
force = true;
|
||||||
order = [
|
order = [
|
||||||
"ddg"
|
"ddg"
|
||||||
"google"
|
"google"
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ in
|
||||||
settings.mainBar."${name}" = {
|
settings.mainBar."${name}" = {
|
||||||
format = "";
|
format = "";
|
||||||
on-click = "${inputs.self.packages.${pkgs.system}.fuzzel-power}/bin/fuzzel-power";
|
on-click = "${inputs.self.packages.${pkgs.system}.fuzzel-power}/bin/fuzzel-power";
|
||||||
on-click-right = "${pkgs.swaylock}/bin/swaylock"; # TODO: change to whatever lock screen i want
|
on-click-right = "${pkgs.hyprlock}/bin/hyprlock";
|
||||||
};
|
};
|
||||||
style = ''
|
style = ''
|
||||||
#custom-poweroff {
|
#custom-poweroff {
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ pkgs.writeShellScriptBin "fuzzel-power" ''
|
||||||
if [ "$selected_option" == "$lock" ]
|
if [ "$selected_option" == "$lock" ]
|
||||||
then
|
then
|
||||||
echo "lock"
|
echo "lock"
|
||||||
${pkgs.swaylock}/bin/swaylock
|
${pkgs.hyprlock}/bin/hyprlock
|
||||||
elif [ "$selected_option" == "$poweroff" ]
|
elif [ "$selected_option" == "$poweroff" ]
|
||||||
then
|
then
|
||||||
echo "poweroff"
|
echo "poweroff"
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ let
|
||||||
terminal = "${pkgs.kitty}/bin/kitty";
|
terminal = "${pkgs.kitty}/bin/kitty";
|
||||||
launcher = "${self-pkgs.fuzzel-launch}/bin/fuzzel-launch";
|
launcher = "${self-pkgs.fuzzel-launch}/bin/fuzzel-launch";
|
||||||
power-menu = "${self-pkgs.fuzzel-power}/bin/fuzzel-power";
|
power-menu = "${self-pkgs.fuzzel-power}/bin/fuzzel-power";
|
||||||
lockscreen = "${pkgs.swaylock}/bin/swaylock";
|
lockscreen = "${pkgs.hyprlock}/bin/hyprlock";
|
||||||
autostart-string =
|
autostart-string =
|
||||||
"spawn-at-startup \""
|
"spawn-at-startup \""
|
||||||
+ pkgs.lib.strings.concatStringsSep "\nspawn-at-startup \"" [
|
+ pkgs.lib.strings.concatStringsSep "\nspawn-at-startup \"" [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue