Skip to content

Instantly share code, notes, and snippets.

@ayu-mushi
Created July 12, 2022 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayu-mushi/18602cf120c2937055fee9479359475f to your computer and use it in GitHub Desktop.
Save ayu-mushi/18602cf120c2937055fee9479359475f to your computer and use it in GitHub Desktop.
ノートパソコンを開いたときDropboxを自動で起動するスクリプト: /usr/lib/systemd/system-sleep/dropbox-wakeup
#!/usr/bin/bash
# 参考
# [ノートパソコン - ArchWiki https://wiki.archlinux.jp/index.php/%E3%83%8E%E3%83%BC%E3%83%88%E3%83%91%E3%82%BD%E3%82%B3%E3%83%B3]
# /usr/lib/systemd/system-sleep のフック
# [Custom xrandr settings are reset on wake up (resume) SOLVED - Linux Mint Forums https://forums.linuxmint.com/viewtopic.php?t=288050]
case $1/$2 in
post/*)
su ayu-mushi -c "/usr/bin/dropbox start"
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment