Created
July 12, 2022 07:45
-
-
Save ayu-mushi/18602cf120c2937055fee9479359475f to your computer and use it in GitHub Desktop.
ノートパソコンを開いたときDropboxを自動で起動するスクリプト: /usr/lib/systemd/system-sleep/dropbox-wakeup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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