aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Stevens <nilix@nilfm.cc>2021-11-16 15:17:43 -0700
committerDerek Stevens <nilix@nilfm.cc>2021-11-16 15:17:43 -0700
commitec51fdf5c9adf3b75986fe61ef35d221c34d8679 (patch)
tree5ec41f3d9f618cf92c6d0929d997c02129b5577c
parent496da4fe6e8652064de54cfda6282a795427bbe6 (diff)
remove transsetter script
-rwxr-xr-xtranssetter.sh51
1 files changed, 0 insertions, 51 deletions
diff --git a/transsetter.sh b/transsetter.sh
deleted file mode 100755
index eaa9e41..0000000
--- a/transsetter.sh
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-
-# A background script to provide terminal/editor compositing in a Ryudo
-# session.
-# Licensed under the MIT License -- do what you want with it.
-# Copyleft 2021 Derek Stevens <nilix@nilfm.cc>
-
-termprog=Alacritty
-geditor=acme
-opacity=0.85
-
-setter=$(which transset)
-if [ -z "$setter" ]; then
- setter=$(which transset-df)
-fi
-
-if [ -z "$setter" ]; then
- echo "we need transset or transset-df in PATH!"
- exit 1
-fi
-
-#if which xcompmgr > /dev/null; then
-# xcompmgr -n&
-#else
-# ehco "we need xcompmgr in PATH!"
-# exit 1
-#fi
-
-if ! which xshove > /dev/null; then
- echo "we need xshove in PATH!"
- exit 1
-fi
-
-wlist=$(mktemp)
-oldwlist=$(mktemp)
-while true; do
- xshove > $wlist
- while read wprop; do
- wid=$(echo ${wprop} | awk '{print $1}')
- if ! grep $wid $oldwlist > /dev/null; then
- wclass=$(echo ${wprop} | awk '{print $3}')
- if [ "$wclass" = "${geditor}" ]; then
- $setter -i 0x$wid ${opacity} > /dev/null
- elif [ "${wclass}" = "${termprog}" ]; then
- $setter -i 0x$wid ${opacity} > /dev/null
- fi
- fi
- done < $wlist
- cat $wlist > $oldwlist;
- sleep 0.2
-done