1
0
mirror of https://github.com/Andrey0189/nixos-config-reborn.git synced 2025-09-15 10:06:00 +03:00

add uwsm startup

This commit is contained in:
andrey_varnavskiy
2024-12-10 05:07:09 +05:00
parent 3b3ae0ec39
commit 1cb44e3e71
2 changed files with 8 additions and 1 deletions

View File

@@ -31,10 +31,15 @@
history.path = "${config.xdg.dataHome}/zsh/history"; history.path = "${config.xdg.dataHome}/zsh/history";
initExtra = '' initExtra = ''
# Start Tmux automatically if not already running # Start Tmux automatically if not already running. No Tmux in TTY
if [ -z "$TMUX" ] && [ -n "$DISPLAY" ]; then if [ -z "$TMUX" ] && [ -n "$DISPLAY" ]; then
tmux attach-session -t default || tmux new-session -s default tmux attach-session -t default || tmux new-session -s default
fi fi
# Start UWSM
if uwsm check may-start > /dev/null && uwsm select; then
exec systemd-cat -t uwsm_start uwsm start default
fi
''; '';
}; };
} }

View File

@@ -1,6 +1,8 @@
{ {
programs.uwsm.enable = true;
programs.hyprland = { programs.hyprland = {
enable = true; enable = true;
withUWSM = true;
}; };
security.pam.services.hyprlock = {}; security.pam.services.hyprlock = {};