GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Nukesor/scripts: A bunch of shell scripts and small rust programs for my personal use

BranchesTags
Open more actions menu

Latest commit

 

History

321 Commits
321 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
hooks
hooks
 
 
shell
shell
 
 
src
src
 
 
.gitignore
.gitignore
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
Justfile
Justfile
 
 
README.md
README.md
 
 
install
install
 
 
install_global
install_global
 
 
rustfmt.toml
rustfmt.toml
 
 

Repository files navigation

Custom scripts

A collection of custom Rust scripts for personal usage.

Run ./install.sh to install all. This deploys:

  • Rust scripts to $CARGO_HOME/bin/
  • Shell scripts to ~/.bin/

Dependencies

  • rust to compile the rust scripts
  • scrot for bin/screenlock
  • iwconfig for netinfo (pkg: wireless_tools)
  • iw for netinfo
  • pw-dump for bin/fix_xonar_output and bin/change_sink

Installation

Via Script

There's the ./install.sh script, which does all of the work for you.

  1. It copies all shell scripts into your ~/.bin folder.
  2. It compiles the rust scripts and copies them over to your ~/.bin folder.
  3. Make sure to add your ~/.bin to your path.

If you want to adjust the target directory (~/.bin), update the BIN_FOLDER variable in the install.sh script.

Manual installation

For the shell scripts:

  • Just copy any script from the ./shell folder you like to your target directory.

For the rust code:

Option 1:

  • Run cargo install --path ./
  • Add the $CARGO_HOME/bin to your $PATH, which by default is ~/.cargo/bin.

Option 2:

  • Run cargo build --locked --release
  • Copy the binaries you want from the ./target/release/ folder to your target directory.

Git Hooks

There're two hooks, which automatically deploy the project when pulling new commits.

Great for syncing changes between multiple machines.

Screenlock

Screenlock trigger on sleep via a systemd service looks like this:

[Unit]
Description=Lock the screen
Before=sleep.target

[Service]
User=%i
Group=%i
Type=forking
Environment=DISPLAY=:0
ExecStart=/home/%i/.cache/cargo/bin/blur 5 -vvv

[Install]
WantedBy=sleep.target

About

A bunch of shell scripts and small rust programs for my personal use

Resources

Readme
Activity

Stars

13 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.