https://github.com/shricodev/bin-scripts
Shell scripts I use in my daily workflow
https://github.com/shricodev/bin-scripts
shell shell-scripting showcase
Last synced: about 1 year ago
JSON representation
Shell scripts I use in my daily workflow
- Host: GitHub
- URL: https://github.com/shricodev/bin-scripts
- Owner: shricodev
- Created: 2024-07-30T07:15:19.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-07T09:26:52.000Z (over 1 year ago)
- Last Synced: 2025-02-07T10:27:35.462Z (over 1 year ago)
- Topics: shell, shell-scripting, showcase
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Custom Scripts
This repo holds some of my custom build scripts. My custom functions and aliases are all in my [dotfiles](https://github.com/shricodev/dotfiles.git) repository.
### Root Cron jobs
Cron job for the `root` user.
```bash
# m h dom mon dow
@reboot (sleep 3; echo 18 > /sys/class/backlight/nvidia_0/brightness) &
# First day of every month at 4:30 pm
30 16 1 * * /usr/bin/trash-empty --all-users -f
# Every Sunday at 4pm
0 16 * * 0 /usr/bin/reflector --latest 20 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
```
### User Cron jobs
Cron job for regular user with `sudo` privilege.
```bash
# m h dom mon dow
# Run every 3 hour
0 */3 * * * /bin/bash /home/shricodev/bin/gnome-change-wallpaper
# Run every sunday at 4pm
0 16 * * 0 XDG_RUNTIME_DIR=/run/user/$(id -u) notify-send -t 10000 "Time for System Update?" "It's time to update the Arch system."
```