2020-01-11 22:04:45 +01:00
<?xml version="1.0" encoding="utf-8"?>
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en" xml:lang = "en" >
< head >
2021-10-25 14:37:10 +02:00
<!-- 2021 - 06 - 20 dim. 14:22 -->
2020-01-11 22:04:45 +01:00
< meta http-equiv = "Content-Type" content = "text/html;charset=utf-8" / >
2021-10-25 14:37:10 +02:00
< title > =systemd= services and timers< / title >
2020-01-11 22:04:45 +01:00
< meta name = "author" content = "Dehaeze Thomas" / >
2021-10-25 14:37:10 +02:00
< meta name = "generator" content = "Org Mode" / >
2021-01-01 20:12:34 +01:00
< link rel = "stylesheet" type = "text/css" href = "./dist/style.css" / >
< script type = "text/javascript" src = "./dist/script.js" > < / script >
2020-01-11 22:04:45 +01:00
< / head >
< body >
< div id = "org-div-home-and-up" >
< a accesskey = "h" href = "./index.html" > UP < / a >
|
< a accesskey = "H" href = "./index.html" > HOME < / a >
< / div > < div id = "content" >
2021-01-01 20:12:34 +01:00
< h1 class = "title" > < code > systemd< / code > services and timers< / h1 >
2020-01-11 22:04:45 +01:00
< div id = "table-of-contents" >
< h2 > Table of Contents< / h2 >
< div id = "text-table-of-contents" >
< ul >
2021-01-01 20:12:34 +01:00
< li > < a href = "#org9efc12d" > < code > bukugit< / code > - Automatic commit and push new bookmarks< / a >
2020-01-11 22:04:45 +01:00
< ul >
2021-10-25 14:37:10 +02:00
< li > < a href = "#org047c23f" > Service< / a > < / li >
< li > < a href = "#org057bbfb" > Timer< / a > < / li >
< li > < a href = "#orgd21f3b8" > Script< / a > < / li >
2020-01-11 22:04:45 +01:00
< / ul >
< / li >
2021-01-01 20:12:34 +01:00
< li > < a href = "#orga6ac362" > < code > braingit< / code > - Automatic commit and push new brain pages< / a >
2020-01-11 22:04:45 +01:00
< ul >
2021-10-25 14:37:10 +02:00
< li > < a href = "#org5d32354" > Service< / a > < / li >
< li > < a href = "#orgaa0d02e" > Timer< / a > < / li >
< li > < a href = "#org753a3b1" > Script< / a > < / li >
2020-01-11 22:04:45 +01:00
< / ul >
< / li >
2021-01-01 20:12:34 +01:00
< li > < a href = "#orgcd55ae1" > < code > checkmail< / code > - Check new mails< / a >
2020-01-11 22:04:45 +01:00
< ul >
2021-10-25 14:37:10 +02:00
< li > < a href = "#org3117b0f" > Service< / a > < / li >
< li > < a href = "#org31dc560" > Timer< / a > < / li >
< li > < a href = "#org33c5284" > Script< / a > < / li >
2020-01-11 22:04:45 +01:00
< / ul >
< / li >
2021-01-01 20:12:34 +01:00
< li > < a href = "#orgb4148ce" > < code > syncmail< / code > - Synchronize all mails< / a >
2020-01-11 22:04:45 +01:00
< ul >
2021-10-25 14:37:10 +02:00
< li > < a href = "#org71deedc" > Service< / a > < / li >
< li > < a href = "#org70acd93" > Timer< / a > < / li >
2020-01-11 22:04:45 +01:00
< / ul >
< / li >
2021-01-01 20:12:34 +01:00
< li > < a href = "#org64a5ff5" > < code > vdirsyncer< / code > - Synchronize calendar and contacts< / a >
2020-01-11 22:04:45 +01:00
< ul >
2021-10-25 14:37:10 +02:00
< li > < a href = "#org636594d" > Service< / a > < / li >
< li > < a href = "#org263ab05" > Timer< / a > < / li >
2020-01-11 22:04:45 +01:00
< / ul >
< / li >
2021-01-01 20:12:34 +01:00
< li > < a href = "#orgea6990c" > < code > ssh-agent< / code > - SSH Agent< / a >
2020-01-11 22:04:45 +01:00
< ul >
2021-10-25 14:37:10 +02:00
< li > < a href = "#org075df6f" > Service< / a > < / li >
2020-01-28 21:32:38 +01:00
< / ul >
< / li >
2021-01-01 20:12:34 +01:00
< li > < a href = "#org6c316cc" > < code > powertop< / code > - Powertop< / a >
2020-01-28 21:32:38 +01:00
< ul >
2021-10-25 14:37:10 +02:00
< li > < a href = "#orgf3e364a" > Service< / a > < / li >
2021-01-08 01:43:48 +01:00
< / ul >
< / li >
< li > < a href = "#org4072349" > < code > emacs< / code > - Emacs< / a >
< ul >
2021-10-25 14:37:10 +02:00
< li > < a href = "#orgec28af9" > Service< / a > < / li >
< / ul >
< / li >
< li > < a href = "#org9dd1459" > < code > trash-empty< / code > - Empty the trash for files older than 30 days< / a >
< ul >
< li > < a href = "#org3ab76b0" > Service< / a > < / li >
< li > < a href = "#org79b900d" > Timer< / a > < / li >
2020-01-11 22:04:45 +01:00
< / ul >
< / li >
< / ul >
< / div >
< / div >
< p >
< a href = "https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units" > https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units< / a >
< / p >
2021-01-01 20:12:34 +01:00
< div id = "outline-container-org9efc12d" class = "outline-2" >
< h2 id = "org9efc12d" > < code > bukugit< / code > - Automatic commit and push new bookmarks< / h2 >
< div class = "outline-text-2" id = "text-org9efc12d" >
2020-01-11 22:04:45 +01:00
< / div >
2021-10-25 14:37:10 +02:00
< div id = "outline-container-org047c23f" class = "outline-3" >
< h3 id = "org047c23f" > Service< / h3 >
< div class = "outline-text-3" id = "text-org047c23f" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Sync Bookmarks every day
< span class = "org-variable-name" > RefuseManualStart< / span > =no
< span class = "org-variable-name" > RefuseManualStop< / span > =yes
[< span class = "org-type" > Service< / span > ]
< span class = "org-variable-name" > Type< / span > =oneshot
< span class = "org-variable-name" > ExecStart< / span > =%h/.local/bin/buku_git_push
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-10-25 14:37:10 +02:00
< div id = "outline-container-org057bbfb" class = "outline-3" >
< h3 id = "org057bbfb" > Timer< / h3 >
< div class = "outline-text-3" id = "text-org057bbfb" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Sync All Mails every x hours
< span class = "org-variable-name" > RefuseManualStart< / span > =no
< span class = "org-variable-name" > RefuseManualStop< / span > =no
< span class = "org-variable-name" > Wants< / span > =network-online.target
< span class = "org-variable-name" > After< / span > =network-online.target
[< span class = "org-type" > Timer< / span > ]
< span class = "org-variable-name" > OnCalendar< / span > =*-*-* < span class = "org-highlight-numbers-number" > 16< / span > :< span class = "org-highlight-numbers-number" > 00< / span > :< span class = "org-highlight-numbers-number" > 00< / span >
< span class = "org-variable-name" > Persistent< / span > =true
< span class = "org-variable-name" > Unit< / span > =bukugit.service
[< span class = "org-type" > Install< / span > ]
< span class = "org-variable-name" > WantedBy< / span > =default.target
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-10-25 14:37:10 +02:00
< div id = "outline-container-orgd21f3b8" class = "outline-3" >
< h3 id = "orgd21f3b8" > Script< / h3 >
< div class = "outline-text-3" id = "text-orgd21f3b8" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-bash" > < span class = "org-type" > cd< / span > ~/.local/share/buku/
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > < span class = "org-rainbow-delimiters-depth-2" > [< / span > < span class = "org-negation-char" > !< / span > -z $< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-sh-quoted-exec" > git< / span > status -s bookmarks.db< span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > ]< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span >
< span class = "org-keyword" > then< / span >
< span class = "org-type" > rm< / span > bookmarks.org;
buku -e bookmarks.org & & < span class = "org-sh-escaped-newline" > \< / span >
< span class = "org-type" > cat< / span > header.org bookmarks.org > index.org & & < span class = "org-sh-escaped-newline" > \< / span >
emacs index.org --batch -f org-html-export-to-html --kill & & < span class = "org-sh-escaped-newline" > \< / span >
< span class = "org-type" > git< / span > add index.html
< span class = "org-type" > git< / span > add bookmarks.db & & < span class = "org-sh-escaped-newline" > \< / span >
< span class = "org-type" > git< / span > commit -m < span class = "org-string" > "Changed bookmarks - < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > date< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +%F)< / span > < / span > < span class = "org-string" > "< / span > & & < span class = "org-sh-escaped-newline" > \< / span >
< span class = "org-type" > git< / span > push
< span class = "org-keyword" > exit< / span >
< span class = "org-keyword" > fi< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-01-01 20:12:34 +01:00
< div id = "outline-container-orga6ac362" class = "outline-2" >
< h2 id = "orga6ac362" > < code > braingit< / code > - Automatic commit and push new brain pages< / h2 >
< div class = "outline-text-2" id = "text-orga6ac362" >
< / div >
2021-10-25 14:37:10 +02:00
< div id = "outline-container-org5d32354" class = "outline-3" >
< h3 id = "org5d32354" > Service< / h3 >
< div class = "outline-text-3" id = "text-org5d32354" >
2021-01-01 20:12:34 +01:00
< div class = "org-src-container" >
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Sync Brain Website everyday
< span class = "org-variable-name" > RefuseManualStart< / span > =no
< span class = "org-variable-name" > RefuseManualStop< / span > =yes
[< span class = "org-type" > Service< / span > ]
< span class = "org-variable-name" > Type< / span > =oneshot
< span class = "org-variable-name" > ExecStart< / span > =%h/.local/bin/brain_git_push
< / pre >
< / div >
2020-01-11 22:04:45 +01:00
< / div >
2021-01-01 20:12:34 +01:00
< / div >
2021-10-25 14:37:10 +02:00
< div id = "outline-container-orgaa0d02e" class = "outline-3" >
< h3 id = "orgaa0d02e" > Timer< / h3 >
< div class = "outline-text-3" id = "text-orgaa0d02e" >
2021-01-01 20:12:34 +01:00
< div class = "org-src-container" >
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Sync Brain Website everyday
< span class = "org-variable-name" > RefuseManualStart< / span > =no
< span class = "org-variable-name" > RefuseManualStop< / span > =no
< span class = "org-variable-name" > Wants< / span > =network-online.target
< span class = "org-variable-name" > After< / span > =network-online.target
[< span class = "org-type" > Timer< / span > ]
< span class = "org-variable-name" > OnCalendar< / span > =*-*-* < span class = "org-highlight-numbers-number" > 16< / span > :< span class = "org-highlight-numbers-number" > 00< / span > :< span class = "org-highlight-numbers-number" > 00< / span >
< span class = "org-variable-name" > Persistent< / span > =true
< span class = "org-variable-name" > Unit< / span > =braingit.service
[< span class = "org-type" > Install< / span > ]
< span class = "org-variable-name" > WantedBy< / span > =default.target
< / pre >
< / div >
< / div >
< / div >
2021-10-25 14:37:10 +02:00
< div id = "outline-container-org753a3b1" class = "outline-3" >
< h3 id = "org753a3b1" > Script< / h3 >
< div class = "outline-text-3" id = "text-org753a3b1" >
2021-01-01 20:12:34 +01:00
< div class = "org-src-container" >
< pre class = "src src-bash" > < span class = "org-type" > cd< / span > ~/Cloud/brain-website/
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > < span class = "org-rainbow-delimiters-depth-2" > [< / span > < span class = "org-negation-char" > !< / span > -z $< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-sh-quoted-exec" > git< / span > status -s content/< span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > ]< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span >
< span class = "org-keyword" > then< / span >
< span class = "org-type" > git< / span > add content static & & < span class = "org-sh-escaped-newline" > \< / span >
< span class = "org-type" > git< / span > commit -m < span class = "org-string" > "Update Content - < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > date< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +%F)< / span > < / span > < span class = "org-string" > "< / span > & & < span class = "org-sh-escaped-newline" > \< / span >
< span class = "org-type" > git< / span > push
< span class = "org-keyword" > exit< / span >
< span class = "org-keyword" > fi< / span >
< / pre >
< / div >
< / div >
< / div >
< / div >
< div id = "outline-container-orgcd55ae1" class = "outline-2" >
< h2 id = "orgcd55ae1" > < code > checkmail< / code > - Check new mails< / h2 >
< div class = "outline-text-2" id = "text-orgcd55ae1" >
< / div >
2021-10-25 14:37:10 +02:00
< div id = "outline-container-org3117b0f" class = "outline-3" >
< h3 id = "org3117b0f" > Service< / h3 >
< div class = "outline-text-3" id = "text-org3117b0f" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Check new mails
< span class = "org-variable-name" > RefuseManualStart< / span > =no
< span class = "org-variable-name" > RefuseManualStop< / span > =yes
[< span class = "org-type" > Service< / span > ]
< span class = "org-variable-name" > Type< / span > =oneshot
< span class = "org-variable-name" > ExecStart< / span > =%h/.local/bin/checkmail -q
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-10-25 14:37:10 +02:00
< div id = "outline-container-org31dc560" class = "outline-3" >
< h3 id = "org31dc560" > Timer< / h3 >
< div class = "outline-text-3" id = "text-org31dc560" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Check Mail every x minutes
< span class = "org-variable-name" > RefuseManualStart< / span > =no
< span class = "org-variable-name" > RefuseManualStop< / span > =no
< span class = "org-variable-name" > Wants< / span > =network-online.target
< span class = "org-variable-name" > After< / span > =network-online.target
< span class = "org-variable-name" > Requires< / span > =checkmail.service
[< span class = "org-type" > Timer< / span > ]
< span class = "org-variable-name" > Persistent< / span > =false
< span class = "org-variable-name" > OnBootSec< / span > =2min
< span class = "org-variable-name" > OnUnitActiveSec< / span > =5min
< span class = "org-variable-name" > AccuracySec< / span > =2min
< span class = "org-variable-name" > Unit< / span > =checkmail.service
[< span class = "org-type" > Install< / span > ]
< span class = "org-variable-name" > WantedBy< / span > =default.target
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-10-25 14:37:10 +02:00
< div id = "outline-container-org33c5284" class = "outline-3" >
< h3 id = "org33c5284" > Script< / h3 >
< div class = "outline-text-3" id = "text-org33c5284" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-bash" > < span class = "org-keyword" > while< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > -n < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > 1< / span > < / span > < span class = "org-string" > "< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span > ; < span class = "org-keyword" > do< / span > < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > while loop starts< / span >
< span class = "org-keyword" > case< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > 1< / span > < / span > < span class = "org-string" > "< / span > < span class = "org-keyword" > in< / span >
-a) < span class = "org-variable-name" > opt_all< / span > =< span class = "org-string" > '--all'< / span > ;; < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Check All inboxes< / span >
-v) < span class = "org-variable-name" > opt_verbose< / span > =< span class = "org-string" > '--verbose'< / span > ;; < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Verbose< / span >
-q) < span class = "org-variable-name" > opt_quiet< / span > =< span class = "org-string" > '--quiet'< / span > ;; < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Quiet< / span >
*) < span class = "org-type" > echo< / span > < span class = "org-string" > "Option < / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > 1< / span > < / span > < span class = "org-string" > not recognized"< / span > ;; < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > In case you typed a different option< / span >
< span class = "org-keyword" > esac< / span >
< span class = "org-builtin" > shift< / span >
< span class = "org-keyword" > done< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Count number of mails< / span >
< span class = "org-variable-name" > gmail_old< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > ls< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > ~/.mail/gmail/Inbox/new | wc -l)< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-variable-name" > esrf_old< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > ls< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > ~/.mail/esrf/Inbox/new | wc -l)< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-variable-name" > ulg_old< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > ls< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > ~/.mail/ulg/Inbox/new | wc -l)< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-variable-name" > uliege_old< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > ls< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > ~/.mail/uliege/Inbox/new | wc -l)< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Retreive mails< / span >
mbsync $< span class = "org-variable-name" > opt_all< / span > $< span class = "org-variable-name" > opt_verbose< / span > gmail-Home esrf-Home ulg-Home uliege-Home < span class = "org-highlight-numbers-number" > 2< / span > > /tmp/mbsync.log
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Count number of mails< / span >
< span class = "org-variable-name" > gmail_new< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > ls< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > ~/.mail/gmail/Inbox/new | wc -l)< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-variable-name" > esrf_new< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > ls< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > ~/.mail/esrf/Inbox/new | wc -l)< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-variable-name" > ulg_new< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > ls< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > ~/.mail/ulg/Inbox/new | wc -l)< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-variable-name" > uliege_new< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > ls< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > ~/.mail/uliege/Inbox/new | wc -l)< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Total Number of new mails since last checking< / span >
< span class = "org-variable-name" > new< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $((< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > gmail_new< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > esrf_new< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > ulg_new< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > uliege_new< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > )< / span > < / span > < span class = "org-string" > )"< / span >
< span class = "org-variable-name" > old< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $((< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > gmail_old< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > esrf_old< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > ulg_old< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > uliege_old< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > )< / span > < / span > < span class = "org-string" > )"< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Notification< / span >
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > new< / span > < / span > < span class = "org-string" > "< / span > -gt < span class = "org-highlight-numbers-number" > 0< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span > ; < span class = "org-keyword" > then< / span >
dunstify --replace=< span class = "org-highlight-numbers-number" > 98465< / span > < span class = "org-string" > 'Mails  '< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $((< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > gmail_new< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > esrf_new< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > ulg_new< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > uliege_new< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > )< / span > < / span > < span class = "org-string" > ) new mail(s)"< / span >
< span class = "org-keyword" > fi< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Indexation and Tags< / span >
< span class = "org-keyword" > if< / span > < span class = "org-type" > pgrep< / span > -f < span class = "org-string" > 'mu server'< / span > ; < span class = "org-keyword" > then< / span >
emacsclient --eval < span class = "org-string" > '(mu4e-update-index)'< / span >
< span class = "org-keyword" > else< / span >
mu index $< span class = "org-variable-name" > opt_verbose< / span > $< span class = "org-variable-name" > opt_quiet< / span >
< span class = "org-keyword" > fi< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-01-01 20:12:34 +01:00
< div id = "outline-container-orgb4148ce" class = "outline-2" >
< h2 id = "orgb4148ce" > < code > syncmail< / code > - Synchronize all mails< / h2 >
< div class = "outline-text-2" id = "text-orgb4148ce" >
2020-01-11 22:04:45 +01:00
< / div >
2021-10-25 14:37:10 +02:00
< div id = "outline-container-org71deedc" class = "outline-3" >
< h3 id = "org71deedc" > Service< / h3 >
< div class = "outline-text-3" id = "text-org71deedc" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Sync all mails
< span class = "org-variable-name" > RefuseManualStart< / span > =no
< span class = "org-variable-name" > RefuseManualStop< / span > =yes
[< span class = "org-type" > Service< / span > ]
< span class = "org-variable-name" > Type< / span > =oneshot
< span class = "org-variable-name" > ExecStart< / span > =%h/.local/bin/checkmail -a -q
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-10-25 14:37:10 +02:00
< div id = "outline-container-org70acd93" class = "outline-3" >
< h3 id = "org70acd93" > Timer< / h3 >
< div class = "outline-text-3" id = "text-org70acd93" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Sync All Mails every x hours
< span class = "org-variable-name" > RefuseManualStart< / span > =no
< span class = "org-variable-name" > RefuseManualStop< / span > =no
< span class = "org-variable-name" > Wants< / span > =network-online.target
< span class = "org-variable-name" > After< / span > =network-online.target
< span class = "org-variable-name" > Requires< / span > =syncmail.service
[< span class = "org-type" > Timer< / span > ]
< span class = "org-variable-name" > Persistent< / span > =false
< span class = "org-variable-name" > OnBootSec< / span > =30min
< span class = "org-variable-name" > OnUnitActiveSec< / span > =300min
< span class = "org-variable-name" > AccuracySec< / span > =10min
< span class = "org-variable-name" > Unit< / span > =syncmail.service
[< span class = "org-type" > Install< / span > ]
< span class = "org-variable-name" > WantedBy< / span > =default.target
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-01-01 20:12:34 +01:00
< div id = "outline-container-org64a5ff5" class = "outline-2" >
< h2 id = "org64a5ff5" > < code > vdirsyncer< / code > - Synchronize calendar and contacts< / h2 >
< div class = "outline-text-2" id = "text-org64a5ff5" >
2020-01-11 22:04:45 +01:00
< / div >
2021-10-25 14:37:10 +02:00
< div id = "outline-container-org636594d" class = "outline-3" >
< h3 id = "org636594d" > Service< / h3 >
< div class = "outline-text-3" id = "text-org636594d" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Synchronize calendars and contacts
< span class = "org-variable-name" > Documentation< / span > =https://vdirsyncer.readthedocs.org/
< span class = "org-variable-name" > Wants< / span > =network-online.target
< span class = "org-variable-name" > After< / span > =network-online.target
[< span class = "org-type" > Service< / span > ]
2021-10-25 14:37:10 +02:00
< span class = "org-variable-name" > ExecStart< / span > =/home/thomas/.local/bin/vdirsyncer --verbosity < span class = "org-string" > "ERROR"< / span > sync
2020-11-03 16:27:09 +01:00
< span class = "org-variable-name" > Type< / span > =oneshot
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2021-10-25 14:37:10 +02:00
< div id = "outline-container-org263ab05" class = "outline-3" >
< h3 id = "org263ab05" > Timer< / h3 >
< div class = "outline-text-3" id = "text-org263ab05" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Synchronize vdirs
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
[< span class = "org-type" > Timer< / span > ]
< span class = "org-variable-name" > OnBootSec< / span > =5m
< span class = "org-variable-name" > OnUnitActiveSec< / span > =15m
< span class = "org-variable-name" > AccuracySec< / span > =5m
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
[< span class = "org-type" > Install< / span > ]
< span class = "org-variable-name" > WantedBy< / span > =timers.target
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-01-01 20:12:34 +01:00
< div id = "outline-container-orgea6990c" class = "outline-2" >
< h2 id = "orgea6990c" > < code > ssh-agent< / code > - SSH Agent< / h2 >
< div class = "outline-text-2" id = "text-orgea6990c" >
2020-01-11 22:04:45 +01:00
< / div >
2021-10-25 14:37:10 +02:00
< div id = "outline-container-org075df6f" class = "outline-3" >
< h3 id = "org075df6f" > Service< / h3 >
< div class = "outline-text-3" id = "text-org075df6f" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =SSH key agent
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
[< span class = "org-type" > Service< / span > ]
< span class = "org-variable-name" > Type< / span > =simple
< span class = "org-variable-name" > Environment< / span > =SSH_AUTH_SOCK=%t/ssh-agent.socket
< span class = "org-variable-name" > ExecStart< / span > =/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
[< span class = "org-type" > Install< / span > ]
< span class = "org-variable-name" > WantedBy< / span > =default.target
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-01-01 20:12:34 +01:00
< div id = "outline-container-org6c316cc" class = "outline-2" >
< h2 id = "org6c316cc" > < code > powertop< / code > - Powertop< / h2 >
< div class = "outline-text-2" id = "text-org6c316cc" >
2020-01-11 22:04:45 +01:00
< / div >
2021-10-25 14:37:10 +02:00
< div id = "outline-container-orgf3e364a" class = "outline-3" >
< h3 id = "orgf3e364a" > Service< / h3 >
< div class = "outline-text-3" id = "text-orgf3e364a" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Powertop tunings
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
[< span class = "org-type" > Service< / span > ]
< span class = "org-variable-name" > ExecStart< / span > =/usr/bin/powertop --auto-tune
< span class = "org-variable-name" > RemainAfterExit< / span > =true
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
[< span class = "org-type" > Install< / span > ]
< span class = "org-variable-name" > WantedBy< / span > =multi-user.target
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-01-08 01:43:48 +01:00
< div id = "outline-container-org4072349" class = "outline-2" >
< h2 id = "org4072349" > < code > emacs< / code > - Emacs< / h2 >
< div class = "outline-text-2" id = "text-org4072349" >
< / div >
2021-10-25 14:37:10 +02:00
< div id = "outline-container-orgec28af9" class = "outline-3" >
< h3 id = "orgec28af9" > Service< / h3 >
< div class = "outline-text-3" id = "text-orgec28af9" >
2021-01-08 01:43:48 +01:00
< div class = "org-src-container" >
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Emacs text editor
< span class = "org-variable-name" > Documentation< / span > =info:emacs man:emacs(< span class = "org-highlight-numbers-number" > 1< / span > ) https://gnu.org/software/emacs/
[< span class = "org-type" > Service< / span > ]
< span class = "org-variable-name" > Type< / span > =simple
< span class = "org-variable-name" > ExecStart< / span > =/usr/bin/emacs --fg-daemon
< span class = "org-variable-name" > ExecStop< / span > =/usr/bin/emacsclient --eval < span class = "org-string" > "(kill-emacs)"< / span >
< span class = "org-variable-name" > Environment< / span > =SSH_AUTH_SOCK=%t/keyring/ssh
< span class = "org-variable-name" > Restart< / span > =on-failure
[< span class = "org-type" > Install< / span > ]
< span class = "org-variable-name" > WantedBy< / span > =default.target
< / pre >
< / div >
< / div >
< / div >
< / div >
2021-10-25 14:37:10 +02:00
< div id = "outline-container-org9dd1459" class = "outline-2" >
< h2 id = "org9dd1459" > < code > trash-empty< / code > - Empty the trash for files older than 30 days< / h2 >
< div class = "outline-text-2" id = "text-org9dd1459" >
< / div >
< div id = "outline-container-org3ab76b0" class = "outline-3" >
< h3 id = "org3ab76b0" > Service< / h3 >
< div class = "outline-text-3" id = "text-org3ab76b0" >
< div class = "org-src-container" >
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Empty the trash for files older than < span class = "org-highlight-numbers-number" > 30< / span > days
< span class = "org-variable-name" > Documentation< / span > =https://github.com/andreafrancia/trash-cli
[< span class = "org-type" > Service< / span > ]
< span class = "org-variable-name" > ExecStart< / span > =/home/thomas/.local/bin/trash-empty < span class = "org-highlight-numbers-number" > 30< / span >
< span class = "org-variable-name" > Type< / span > =oneshot
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org79b900d" class = "outline-3" >
< h3 id = "org79b900d" > Timer< / h3 >
< div class = "outline-text-3" id = "text-org79b900d" >
< div class = "org-src-container" >
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Empty trash
[< span class = "org-type" > Timer< / span > ]
< span class = "org-variable-name" > OnCalendar< / span > =*-*-* < span class = "org-highlight-numbers-number" > 16< / span > :< span class = "org-highlight-numbers-number" > 00< / span > :< span class = "org-highlight-numbers-number" > 00< / span >
< span class = "org-variable-name" > Persistent< / span > =true
< span class = "org-variable-name" > Unit< / span > =trash-empty
[< span class = "org-type" > Install< / span > ]
< span class = "org-variable-name" > WantedBy< / span > =timers.target
< / pre >
< / div >
< / div >
< / div >
< / div >
2020-01-28 21:32:38 +01:00
< / div >
2020-01-11 22:04:45 +01:00
< div id = "postamble" class = "status" >
< p class = "author" > Author: Dehaeze Thomas< / p >
2021-10-25 14:37:10 +02:00
< p class = "date" > Created: 2021-06-20 dim. 14:22< / p >
2020-01-11 22:04:45 +01:00
< / div >
< / body >
< / html >