From 6e9e734cd176aa26121ab904e27e5c2d605c5ced Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Wed, 28 Jul 2021 23:54:53 -0700 Subject: [PATCH] add scripts for i3 --- ranger/rifle.conf | 284 ++++++++++++++++++++++++++++++++++++ scripts/calendar.sh | 7 + scripts/launch.sh | 3 +- scripts/new-wallpaper.sh | 13 ++ scripts/picom.sh | 68 +++++++++ scripts/spotify-controls.sh | 21 +++ scripts/todo.sh | 5 + scripts/wallpaper.sh | 23 +++ 8 files changed, 423 insertions(+), 1 deletion(-) create mode 100644 ranger/rifle.conf create mode 100755 scripts/calendar.sh create mode 100755 scripts/new-wallpaper.sh create mode 100755 scripts/picom.sh create mode 100755 scripts/spotify-controls.sh create mode 100755 scripts/todo.sh create mode 100755 scripts/wallpaper.sh diff --git a/ranger/rifle.conf b/ranger/rifle.conf new file mode 100644 index 0000000..0bf1260 --- /dev/null +++ b/ranger/rifle.conf @@ -0,0 +1,284 @@ +# vim: ft=cfg +# +# This is the configuration file of "rifle", ranger's file executor/opener. +# Each line consists of conditions and a command. For each line the conditions +# are checked and if they are met, the respective command is run. +# +# Syntax: +# , , ... = command +# +# The command can contain these environment variables: +# $1-$9 | The n-th selected file +# $@ | All selected files +# +# If you use the special command "ask", rifle will ask you what program to run. +# +# Prefixing a condition with "!" will negate its result. +# These conditions are currently supported: +# match | The regexp matches $1 +# ext | The regexp matches the extension of $1 +# mime | The regexp matches the mime type of $1 +# name | The regexp matches the basename of $1 +# path | The regexp matches the absolute path of $1 +# has | The program is installed (i.e. located in $PATH) +# env | The environment variable "variable" is non-empty +# file | $1 is a file +# directory | $1 is a directory +# number | change the number of this command to n +# terminal | stdin, stderr and stdout are connected to a terminal +# X | A graphical environment is available (darwin, Xorg, or Wayland) +# +# There are also pseudo-conditions which have a "side effect": +# flag | Change how the program is run. See below. +# label