Guest User

Untitled

a guest
Nov 7th, 2022
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.82 KB | None | 0 0
  1. DATE=$(date +%d-%m-%Y)
  2. HOME=/home/alex
  3. FILE=/home/alex/todo-$DATE
  4. DIR=/home/alex/Documents/todo-archive
  5. if [ ! -f "$FILE" ]; then
  6.     cp /home/alex/Templates/todo-template $FILE
  7. fi
  8. if [ ! -d "$DIR" ];
  9. then
  10.     mkdir $DIR
  11. else
  12.     for OLD in $HOME/todo*;
  13.     do
  14.     if [ "$((($(date +%s) - $(date +%s -r $OLD)) / 86400))" \> "0" ]; then
  15.         mv $OLD $DIR
  16.     fi
  17.     done
  18. fi
  19.  
  20. sleep 2;
  21. #xrandr --output eDP-1 --auto --output DP-1-1 --auto --left-of eDP-1 --output DP-1-3 --auto --left-of DP-1-1;
  22. i3-msg "workspace 10; exec --no-startup-id i3-sensible-terminal; exec --no-startup-id i3-sensible-terminal;
  23. sleep 3;
  24. i3-msg "workspace 1; exec --no-startup-id gedit /home/alex/todo-$DATE";
  25. sleep 3;
  26. sleep 15;
  27. i3-msg "workspace 3; exec --no-startup-id firefox -P";
  28. sleep 15;
  29. i3-msg "workspace 2; exec --no-startup-id firefox -P";
  30.  
Advertisement
Add Comment
Please, Sign In to add comment