Initial commit of the Quickshell desktop suite: bar, dock, launcher, settings, Control Center, dashboard, OSD, lock screen, desktop widgets, plugin host with the vendored Noctalia/Omarchy compatibility layer, helpers, packaging, tests and phase documentation. Includes the optimization work so far: usage widgets and dashboard gauges no longer animate continuously, desktop widgets pause while covered, system controls stop flickering on background polls, dock app matching uses an indexed catalog, and workspace ghosts are created only for occupied slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
36 lines
1.2 KiB
QML
36 lines
1.2 KiB
QML
import QtQuick
|
|
import Quickshell
|
|
import qs.compat.noctalia.Commons
|
|
|
|
QtObject {
|
|
id: root
|
|
|
|
function migrate(adapter, logger, rawJson) {
|
|
logger.i("Migration44", "Updating PAM pam/password.conf");
|
|
|
|
const configDir = Settings.configDir;
|
|
const pamConfigDir = configDir + "pam";
|
|
const pamConfigFile = pamConfigDir + "/password.conf";
|
|
const pamConfigDirEsc = pamConfigDir.replace(/'/g, "'\\''");
|
|
const pamConfigFileEsc = pamConfigFile.replace(/'/g, "'\\''");
|
|
|
|
// Ensure directory exists
|
|
Quickshell.execDetached(["mkdir", "-p", pamConfigDir]);
|
|
|
|
// Generate the PAM config file content (updated version)
|
|
var configContent = "auth sufficient pam_fprintd.so timeout=-1\n";
|
|
configContent += "auth sufficient /run/current-system/sw/lib/security/pam_fprintd.so timeout=-1 # for NixOS\n";
|
|
configContent += "auth required pam_unix.so\n";
|
|
|
|
// Write the config file using heredoc
|
|
var script = `cat > '${pamConfigFileEsc}' << 'EOF'\n`;
|
|
script += configContent;
|
|
script += "EOF\n";
|
|
Quickshell.execDetached(["sh", "-c", script]);
|
|
|
|
logger.d("Migration44", "PAM config file updated at:", pamConfigFile);
|
|
|
|
return true;
|
|
}
|
|
}
|