From ec34e7dbebce7e81885c2ae9a80f93af240fdaf1 Mon Sep 17 00:00:00 2001 From: lelgenio Date: Fri, 10 Jul 2020 23:33:04 -0300 Subject: [PATCH] add crontab --- config.yaml | 13 +++++++++---- dotfiles/crontab | 9 +++++++++ dotfiles/sway.conf | 4 ++-- 3 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 dotfiles/crontab diff --git a/config.yaml b/config.yaml index 1cc36f5..498c7f4 100644 --- a/config.yaml +++ b/config.yaml @@ -30,6 +30,7 @@ profiles: - mpd - dav - mutt + - crontab variables: key: left: h @@ -70,7 +71,6 @@ dotfiles: dst: ~/.config/sway/config actions: - reload_sway - - notify fish: src: fish.fish dst: ~/.config/fish/config.fish @@ -79,13 +79,11 @@ dotfiles: dst: ~/.config/mako/config actions: - makoreload - - notify waybar: src: waybar dst: ~/.config/waybar actions: - reload_sway - - notify kitty: src: kitty.conf dst: ~/.config/kitty/kitty.conf @@ -97,7 +95,6 @@ dotfiles: dst: ~/.lesskey actions: - lesskey - - notify scripts: src: scripts dst: ~/.local/bin @@ -131,6 +128,11 @@ dotfiles: mutt: src: neomutt/ dst: ~/.config/neomutt/ + crontab: + src: crontab + dst: ~/.local/share/crontab + actions: + - crontab_install actions: notify: notify-send "Updating dotfiles" makoreload: makoctl reload @@ -144,3 +146,6 @@ actions: +qall &> /dev/null & disown + crontab_install: | + crontab -r + crontab ~/.local/share/crontab diff --git a/dotfiles/crontab b/dotfiles/crontab new file mode 100644 index 0000000..a7dc135 --- /dev/null +++ b/dotfiles/crontab @@ -0,0 +1,9 @@ +# {{@@ header() @@}} +PATH={{@@ env["PATH"] @@}} + +#minute hour day month day_week cmd +*/5 * * * * forecast json +*/5 * * * * checkmail update +* */5 * * * vdirsyncer sync + +# vim: commentstring=#\ %s diff --git a/dotfiles/sway.conf b/dotfiles/sway.conf index fc913a6..0d64e88 100644 --- a/dotfiles/sway.conf +++ b/dotfiles/sway.conf @@ -55,7 +55,7 @@ input "type:touchpad" { #disable while typing - # dwt enabled + dwt disabled natural_scroll enabled tap enabled } @@ -97,7 +97,7 @@ bindsym $mod+Shift+c reload; exec pkill kanshi && kanshi # Lock Sway - bindsym $mod+Control+$suspend exec sudo systemctl suspend + bindsym $mod+Control+$suspend exec loginctl suspend # Exit sway (logs you out of your Wayland session) bindsym $mod+Shift+e exec swaynag -t warning -m 'Do you really want to exit sway?' -b 'Yes, exit sway' 'swaymsg exit'