Bash: Start sway only when enabled.
This commit is contained in:
parent
ad77bffae7
commit
739d3e0fee
|
@ -1,8 +1,9 @@
|
||||||
{
|
{
|
||||||
util,
|
config,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
secret,
|
secret,
|
||||||
config,
|
util,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
@ -42,7 +43,8 @@ in
|
||||||
# Export all functions.
|
# Export all functions.
|
||||||
export -f $(find_function | tr '\n' ' ')
|
export -f $(find_function | tr '\n' ' ')
|
||||||
export -f find_function
|
export -f find_function
|
||||||
|
''
|
||||||
|
+ lib.optionalString config.module.sway.enable ''
|
||||||
# Autostart Sway.
|
# Autostart Sway.
|
||||||
if [[ -z $DISPLAY ]] && [[ "$(tty)" = "/dev/tty1" ]]; then
|
if [[ -z $DISPLAY ]] && [[ "$(tty)" = "/dev/tty1" ]]; then
|
||||||
exec sway
|
exec sway
|
||||||
|
|
Loading…
Reference in a new issue