wayfire compositor

This commit is contained in:
UGA Innovation Factory
2025-12-05 21:05:44 +00:00
parent eb5370d2aa
commit 8d7a07ca27

View File

@@ -1,52 +1,27 @@
{ pkgs, inputs, ... }: { pkgs, inputs, ... }:
{ {
programs.sway = { programs.wayfire.enable = true;
enable = true;
wrapperFeatures.gtk = true; environment.etc."wayfire.ini".text = ''
}; [autostart]
chromium = chromium --ozone-platform=wayland --kiosk https://ha.factory.uga.edu
# Login manager that starts sway on a real TTY keyboard = squeekboard
[winrules]
chromium-app-id = maximize, fullscreen
'';
services.greetd = { services.greetd = {
enable = true; enable = true;
settings = { settings = {
default_session = { default_session = {
user = "engr-ugaif"; user = "engr-ugaif";
command = '' command = "wayfire";
/run/current-system/sw/bin/sway --config /etc/sway-kiosk.conf
'';
}; };
}; };
}; };
# Sway config for kiosk
environment.etc."sway-kiosk.conf".text = ''
# No fancy tiling, just a fullscreen kiosk
exec_always {
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
exec ${pkgs.chromium}/bin/chromium \
--kiosk "https://ha.factory.uga.edu" \
--enable-features=UseOzonePlatform \
--ozone-platform=wayland
}
# Required for squeekboard + fcitx5
set $env IM_MODULE fcitx
set $env GTK_IM_MODULE fcitx
set $env QT_IM_MODULE fcitx
set $env XMODIFIERS "@im=fcitx"
exec_always fcitx5
exec_always squeekboard-im
exec_always squeekboard
# Basic output config if needed
output * scale 1
'';
services.dbus.enable = true;
services.dbus.implementation = "dbus";
i18n.inputMethod = { i18n.inputMethod = {
enable = true; enable = true;
type = "fcitx5"; type = "fcitx5";