Code Monkey home page Code Monkey logo

xfce4-terminal-slideshow's Introduction

Xfce4 Terminal Slideshows

This is a simple script to change the background of xfce4-terminal to a random image from a directory in a given interval. It can be used to create slideshows in the terminal.

Demo

Installation

  1. Clone this repository
  2. Set the image_files variable in the xfce4-term-ss script to the directory containing the images you want to use
  3. Copy the xfce4-term-ss script to a directory in your $PATH (e.g. /usr/local/bin or ~/.local/bin)
  4. Make the script executable (chmod +x xfce4-term-ss)
  5. Add the following code to your .bashrc or .zshrc:
# Run the script to change the Xfce4 Terminal background image
if [ "$(ps -o comm= $PPID)" = "xfce4-terminal" ]; then
  pid_file=/tmp/xfce4-term-ss.pid
  if ! [ -e $pid_file ] || ! ps -p $(cat $pid_file) > /dev/null 2>&1; then
    nohup xfce4-term-ss > /dev/null 2>&1 &
    echo $! > $pid_file
  fi
fi

Usage

The execution is automatically started when you open a new terminal window. The script will change the background image every 60 seconds. You can change the interval in the xfce4-term-ss script.

The script will also automatically stop when you close the last terminal window.

Note: If you are having issues with the script, try to run it manually in a terminal window to see if there are any errors.ร 

Note: To force the script to stop, you can run the following command:

kill $(cat /tmp/xfce4-term-ss.pid)

License

This project is licensed under the MIT License

Acknowledgments

xfce4-terminal-slideshow's People

Contributors

kayibea avatar

Stargazers

 avatar

Watchers

 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.