add crontab

This commit is contained in:
lelgenio 2020-07-10 23:33:04 -03:00
parent a17bd2e0f3
commit ec34e7dbeb
3 changed files with 20 additions and 6 deletions

View File

@ -30,6 +30,7 @@ profiles:
- mpd - mpd
- dav - dav
- mutt - mutt
- crontab
variables: variables:
key: key:
left: h left: h
@ -70,7 +71,6 @@ dotfiles:
dst: ~/.config/sway/config dst: ~/.config/sway/config
actions: actions:
- reload_sway - reload_sway
- notify
fish: fish:
src: fish.fish src: fish.fish
dst: ~/.config/fish/config.fish dst: ~/.config/fish/config.fish
@ -79,13 +79,11 @@ dotfiles:
dst: ~/.config/mako/config dst: ~/.config/mako/config
actions: actions:
- makoreload - makoreload
- notify
waybar: waybar:
src: waybar src: waybar
dst: ~/.config/waybar dst: ~/.config/waybar
actions: actions:
- reload_sway - reload_sway
- notify
kitty: kitty:
src: kitty.conf src: kitty.conf
dst: ~/.config/kitty/kitty.conf dst: ~/.config/kitty/kitty.conf
@ -97,7 +95,6 @@ dotfiles:
dst: ~/.lesskey dst: ~/.lesskey
actions: actions:
- lesskey - lesskey
- notify
scripts: scripts:
src: scripts src: scripts
dst: ~/.local/bin dst: ~/.local/bin
@ -131,6 +128,11 @@ dotfiles:
mutt: mutt:
src: neomutt/ src: neomutt/
dst: ~/.config/neomutt/ dst: ~/.config/neomutt/
crontab:
src: crontab
dst: ~/.local/share/crontab
actions:
- crontab_install
actions: actions:
notify: notify-send "Updating dotfiles" notify: notify-send "Updating dotfiles"
makoreload: makoctl reload makoreload: makoctl reload
@ -144,3 +146,6 @@ actions:
+qall +qall
&> /dev/null &> /dev/null
& disown & disown
crontab_install: |
crontab -r
crontab ~/.local/share/crontab

9
dotfiles/crontab Normal file
View File

@ -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

View File

@ -55,7 +55,7 @@
input "type:touchpad" { input "type:touchpad" {
#disable while typing #disable while typing
# dwt enabled dwt disabled
natural_scroll enabled natural_scroll enabled
tap enabled tap enabled
} }
@ -97,7 +97,7 @@
bindsym $mod+Shift+c reload; exec pkill kanshi && kanshi bindsym $mod+Shift+c reload; exec pkill kanshi && kanshi
# Lock Sway # 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) # 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' bindsym $mod+Shift+e exec swaynag -t warning -m 'Do you really want to exit sway?' -b 'Yes, exit sway' 'swaymsg exit'