diff options
author | Adam <56338480+adastx@users.noreply.github.com> | 2022-04-24 14:56:19 +0200 |
---|---|---|
committer | Adam <56338480+adastx@users.noreply.github.com> | 2022-04-24 14:56:19 +0200 |
commit | ad067e8e61f305f21135b0bf1c491a2cda595ad7 (patch) | |
tree | 32af0c4029f0f0481dde06e95400d879a169fe35 /.local | |
parent | b460eaa65839490da6dc5da3549f1fd639843ac0 (diff) |
Moved scripts to .local/bin and small i3 change
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/no-rgb | 8 | ||||
-rwxr-xr-x | .local/bin/screenshot | 4 |
2 files changed, 12 insertions, 0 deletions
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/' |