Skip to content

Where slynx writes

overcatbe edited this page Dec 4, 2026 · 1 revision

Where slynx writes

slynx is a desktop, not a theme: like XFCE or KDE, it writes its settings where GTK, Qt and fontconfig look for them. Here is every place outside its own folders, so nothing is a mystery.

In your home, by itself (at login and when you change the theme)

  • ~/.config/gtk-3.0/gtk.css and ~/.config/gtk-4.0/gtk.css: a block between slynx theme: start and slynx theme: end. Everything else in those files stays as it was.
  • ~/.config/fontconfig/conf.d/50-slynx.conf: how text is drawn (antialiasing, hinting).
  • ~/.config/kdeglobals: the colours and fonts for Qt and KDE programs.
  • missing home folders (Desktop, Documents …) and ~/.config/user-dirs.dirs, through xdg-user-dirs-update, as other desktops do.

In your home, only when you choose something

  • ~/.config/mimeapps.list: default programs
  • ~/.config/gtk-3.0/bookmarks: bookmarks in millerSX
  • ~/.config/xkb: your own keyboard layout

slynx's own

~/.config/slynx, ~/.cache/slynx, ~/.local/share/slynx (the keyring, your own languages), ~/.local/state/slynx (the session's log).

The system, at install

  • /etc/rc.d/rc.slynx-guard (off by default) and one block each in /etc/rc.d/rc.local and /etc/rc.d/rc.local_shutdown:

    # the slynx traffic guard (on while rc.slynx-guard is executable)
    if [ -x /etc/rc.d/rc.slynx-guard ]; then
      /etc/rc.d/rc.slynx-guard start
    fi

    It only does something while rc.slynx-guard is executable. A missing file is made with a #!/bin/sh line first; nothing else in them is touched.

  • on systemd: slynx-guard.service and slynx-firewall.service, not enabled.

The system, only when you apply it in slynxsys (with the root password)

  • Firewall: /etc/slynx/firewall.conf, /etc/rc.d/rc.firewall
  • Traffic guard: /etc/slynx-guard/never, /var/log/slynx-guard.log (only while it runs)
  • SSH: /etc/ssh/sshd_slynx.conf, one Include line at the top of sshd_config, and for phone codes one line in /etc/pam.d/sshd
  • Passwords & keyring → Move: three optional lines in /etc/pam.d/system-auth
  • Browsers: slynx.json in the browser's managed policies
  • WireGuard: /etc/wireguard/NAME.conf

Going back: slynx-clean

extras/slynx-clean takes it all back out:

sh slynx-clean              # shows what it would take away, changes nothing
sh slynx-clean --do         # as you: your home (the gtk.css blocks, 50-slynx.conf, slynx's colours in kdeglobals)
sh slynx-clean --do         # as root: the system (rc.slynx-guard and its rc.local blocks, the log,
                            #   slynx's rc.firewall, its SSH and PAM lines, the browsers' slynx.json)
sh slynx-clean --do --own   # also slynx's own folders, after asking (the keyring is in them)

Your own lines in those files stay, and /etc/wireguard is never touched.

Clone this wiki locally