fixes and improvements
This commit is contained in:
Executable
+70
@@ -0,0 +1,70 @@
|
||||
{ config, lib, pkgs, home-manager, ... }:
|
||||
{
|
||||
home-manager.users.alex= {
|
||||
imports = [
|
||||
(import ../../user/common.nix )
|
||||
../../user/modules/sway.nix
|
||||
../../user/modules/mako.nix
|
||||
../../user/modules/rofi.nix
|
||||
../../user/modules/waybar.nix
|
||||
../../user/modules/terminal.nix
|
||||
../../user/modules/ranger.nix
|
||||
../../user/modules/fish.nix
|
||||
../../user/modules/alacritty.nix
|
||||
../../user/modules/zellij.nix
|
||||
../../user/modules/dev.nix
|
||||
../../user/modules/dev_helpers.nix
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
neovim
|
||||
];
|
||||
# set custom scree resolution and refresh rate
|
||||
wayland.windowManager.sway = {
|
||||
config= {
|
||||
output = {
|
||||
"HDMI-A-1"= {
|
||||
resolution = "3840x2160@120HZ";
|
||||
};
|
||||
};
|
||||
bars = [
|
||||
{
|
||||
command = "waybar";
|
||||
mode = "hide";
|
||||
hiddenState = "hide";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# place waybar on the bottom
|
||||
programs.waybar = {
|
||||
settings.main = lib.mkMerge [{
|
||||
position = lib.mkForce "bottom";
|
||||
ipc = true;
|
||||
}];
|
||||
};
|
||||
|
||||
# turn off swaylock background image
|
||||
programs.swaylock.settings = lib.mkForce {
|
||||
color = "000000";
|
||||
};
|
||||
services.swayidle.timeouts = [
|
||||
{
|
||||
timeout = 300;
|
||||
command = "${pkgs.bash}/bin/bash -c '${pkgs.mpv}/bin/mpv --fs --no-audio --image-display-duration=inf --loop --no-osc /home/alex/nixos/resources/blank.png & echo $! > /home/alex/black_screen.pid;'";
|
||||
#resumeCommand = "${pkgs.bash}/bin/bash -c '${pkgs.procps}/bin/pkill -U $(id -u) -x mpv; ${pkgs.coreutils}/bin/rm -f /tmp/black_screen.pid'";
|
||||
resumeCommand = "${pkgs.bash}/bin/bash -c 'pid=$(${pkgs.coreutils}/bin/cat /home/alex/black_screen.pid); ${pkgs.coreutils}/bin/kill $pid && ${pkgs.coreutils}/bin/rm /home/alex/black_screen.pid'";
|
||||
|
||||
|
||||
}
|
||||
];
|
||||
|
||||
# put notifications to bottom right
|
||||
services.mako = {
|
||||
settings = {
|
||||
anchor = "bottom-righ";
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user