Dropbox in sway

  1. Set up Dropbox

    Install and authenticate dropbox as per Chapter 11, Obtain the encrypted cloud .

    Set up whatever is needed for it to show up in the waybar. This produces inconsistent results even reboot to reboot, as well as muttered warnings about deprecated packages. Possibly: the ubuntu packages ayatana-desktop-indicator, libappindicator3-1, and possibly libappindicator3-dev.

  2. Automate Dropbox in Sway

    This is how to set up a user-specific automated systemd process, i.e., a way to replace startup scripts that used to live in /etc/init.d. This process should work for any user service; this example is for Dropbox. Stop any existing Dropbox processes and create a systemd user service. mkdir -p ~/.config/systemd/user/ cp ~/Dropbox/Basic/new_machine/linux/config/dropbox.service ~/.config/systemd/user

    Note

    dropbox.service

    [Unit]
    After=local-fs.target network.target
    Description=Dropbox as a user service
    
    [Service]
    Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
    Environment=DISPLAY=:0
    ExecStart=%h/.dropbox-dist/dropboxd
    Restart=on-failure
    RestartSec=1
    Type=simple
    
    [Install]
    WantedBy=default.target
    
    

    Source: archlinux forum.

    systemctl --user start dropbox.service If it works: systemctl --user enable dropbox.service

  3. TODO for Sway

    1. Get screenshots to save to ~/Screenshots. Tried setting GRIM_DEFAULT_DIR in .bashrc, maybe it needs a reboot to get set in the right place?

    2. Get desktop notifications working