From ad067e8e61f305f21135b0bf1c491a2cda595ad7 Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Sun, 24 Apr 2022 14:56:19 +0200 Subject: Moved scripts to .local/bin and small i3 change --- .local/bin/no-rgb | 8 ++++++++ .local/bin/screenshot | 4 ++++ 2 files changed, 12 insertions(+) create mode 100755 .local/bin/no-rgb create mode 100755 .local/bin/screenshot (limited to '.local/bin') diff --git a/.local/bin/no-rgb b/.local/bin/no-rgb new file mode 100755 index 0000000..a843b12 --- /dev/null +++ b/.local/bin/no-rgb @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ "$USER" == "adam" ]; then + openrgb -p no-rgb +else + USER=adam + su $USER -c "openrgb -p no-rgb" +fi diff --git a/.local/bin/screenshot b/.local/bin/screenshot new file mode 100755 index 0000000..3eb9ec1 --- /dev/null +++ b/.local/bin/screenshot @@ -0,0 +1,4 @@ +#!/bin/sh + +sleep 0.2 +scrot --line mode=edge -s -e 'xclip -selection c -t image/png < $f; mv $f ~/Pictures/screenshots/' -- cgit v1.2.3-70-g09d2