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:
@@ -31,10 +31,15 @@
|
||||
history.path = "${config.xdg.dataHome}/zsh/history";
|
||||
|
||||
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
|
||||
tmux attach-session -t default || tmux new-session -s default
|
||||
fi
|
||||
|
||||
# Start UWSM
|
||||
if uwsm check may-start > /dev/null && uwsm select; then
|
||||
exec systemd-cat -t uwsm_start uwsm start default
|
||||
fi
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
@@ -1,6 +1,8 @@
|
||||
{
|
||||
programs.uwsm.enable = true;
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
withUWSM = true;
|
||||
};
|
||||
|
||||
security.pam.services.hyprlock = {};
|
||||
|
Reference in New Issue
Block a user