Giter Club home page Giter Club logo

linux-utils's Introduction

add-favorite.sh

This is a script for Gnome users that can 'favorite', or pin, an application if you don't see the option to do so when right-clicking the application's taskbar button, or if you just need to create a custom shortcut for something. This script helps automate the process.

You'll need to create a .desktop launcher and then provide it as a command-line argument to the script; the script will take care of the rest. If you don't already have a .desktop launcher, you can use create-launcher.sh instead of this script. Create-launcher.sh will help you create a launcher and, if invoked with --install, will then call add-favorite.sh for you.

Add-favorite.sh has two modes of adding a favorite: either "installing" or not installing the launcher. Installing a launcher (by using the optional --install flag) will move the specified launcher to ~/.local/share/applications. This option is intended to be used with launchers you create yourself and would therefore want to restore from a backup if the need should arise (presumably your /home is backed up). It will then offer to create a symlink to it in /usr/share/applications if you want to share it with other accounts.

create-launcher.sh

This script makes it easy to create a Gnome .desktop launcher by simply answering prompts.

If invoked with the --install flag, it invokes add-favorite.sh --install.

If invoked without --install, add-favorite.sh is not called. In other words, this has the effect of just adding a shortcut to the Gnome menu.

require

A helper script to check for script dependencies

rotate-wallpaper.sh

This is a script for Gnome users that changes the desktop background on an interval. The directory, file types and rotation interval are provided as command-line arguments. I wouldn't be surprised if some distros have this functionality out of the box, but if yours doesn't, this does the job -- just call it from your .profile.

Since the script doesn't terminate, you have to be sure to run it in the background when calling it from your .profile, otherwise you won't be able to get to your desktop.

To run a command in the background, you include an ampersand as the last part of the command. A complete example would look something like:

rotate-wallpaper.sh --directory ~/Pictures --file-types "*.png *.jpg" --interval 15 &

See the help screen (--help) for information about configurable image scaling options.

turn-off-screen.sh

Turns off the monitor without putting the machine into suspend mode

update-app.sh

This is a general-purpose application updater script. Easily update software by creating a simple wrapper script. This is useful if you have applications that you don't manage via a package manager.

This script is only useful for the software you're managing if:

  1. A static URL exists that always gives you the latest release
  2. The download artifact is in an archive that can be extracted by tar

Once the archive is extracted, the script is done. If something needs to be done afterward, like running an installer, etc., add it to your wrapper script.

This script accepts (requires) two arguments without flags:

  1. The URL of the application's latest release
  2. The destination directory (the full extract path - for example, /opt/my-app)

update-thunderbird.sh

A wrapper of update-app.sh. Upgrades Thunderbird to the latest 64-bit Linux release.

update-vscode.sh

A wrapper of update-app.sh. Upgrades VS Code to the latest 64-bit Linux release.

yesno

A helper script to display a configurable yes/no prompt

linux-utils's People

Contributors

kloverde avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.