diff options
Diffstat (limited to '')
-rwxr-xr-x | scripts/nsp-console.sh | 7 | ||||
-rwxr-xr-x | scripts/toggle-compton.sh | 7 | ||||
-rwxr-xr-x | scripts/toggle-redshift.sh | 8 | ||||
-rwxr-xr-x | scripts/toggle-touchpad.sh | 10 | ||||
-rwxr-xr-x | scripts/toggle-trackpoint.sh | 10 | ||||
-rwxr-xr-x | scripts/xmobar/fcitx.sh | 13 | ||||
-rwxr-xr-x | scripts/xshot-select-upload.sh | 7 | ||||
-rwxr-xr-x | scripts/xshot-select.sh | 5 | ||||
-rwxr-xr-x | scripts/xshot-upload.sh | 7 | ||||
-rwxr-xr-x | scripts/xshot.sh | 5 |
10 files changed, 0 insertions, 79 deletions
diff --git a/scripts/nsp-console.sh b/scripts/nsp-console.sh deleted file mode 100755 index 4ac9e32..0000000 --- a/scripts/nsp-console.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -if tmux list-sessions | grep "scratchpad"; then - tmux attach-session -t "scratchpad" -else - tmux new-session -s "scratchpad" -n "scratchpad" -c "$HOME" -fi diff --git a/scripts/toggle-compton.sh b/scripts/toggle-compton.sh deleted file mode 100755 index 0fcb1bf..0000000 --- a/scripts/toggle-compton.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -if ! pgrep compton >/dev/null 2>&1; then - compton -b -else - pkill compton -fi diff --git a/scripts/toggle-redshift.sh b/scripts/toggle-redshift.sh deleted file mode 100755 index 2af8258..0000000 --- a/scripts/toggle-redshift.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -if ! pgrep redshift >/dev/null 2>&1; then - redshift & - disown redshift -else - pkill redshift -fi diff --git a/scripts/toggle-touchpad.sh b/scripts/toggle-touchpad.sh deleted file mode 100755 index 2a1c061..0000000 --- a/scripts/toggle-touchpad.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -ID=$(xinput list | grep -Eo 'TouchPad\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}') -STATE=$(xinput list-props "$ID" | awk '/Device Enabled/ {print $4}') - -if [ "$STATE" = 1 ]; then - xinput disable "$ID" -else - xinput enable "$ID" -fi diff --git a/scripts/toggle-trackpoint.sh b/scripts/toggle-trackpoint.sh deleted file mode 100755 index d385553..0000000 --- a/scripts/toggle-trackpoint.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -ID=$(xinput list | grep -Eo 'TrackPoint\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}') -STATE=$(xinput list-props "$ID" | awk '/Device Enabled/ {print $4}') - -if [ "$STATE" = 1 ]; then - xinput disable "$ID" -else - xinput enable "$ID" -fi diff --git a/scripts/xmobar/fcitx.sh b/scripts/xmobar/fcitx.sh deleted file mode 100755 index f159c41..0000000 --- a/scripts/xmobar/fcitx.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -STATUS="$(fcitx-remote)" - -if [ "$STATUS" = 0 ]; then - OUT="Off" -elif [ "$STATUS" = 1 ]; then - OUT="Disabled" -else - OUT="Enabled" -fi - -echo "$OUT" diff --git a/scripts/xshot-select-upload.sh b/scripts/xshot-select-upload.sh deleted file mode 100755 index 70c08c4..0000000 --- a/scripts/xshot-select-upload.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -PIC="$HOME/pictures/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png" - -maim --format=png --hidecursor --quality 8 --select "$PIC" && - curl --form "file=@$PIC" "https://0x0.st" | - xclip -quiet diff --git a/scripts/xshot-select.sh b/scripts/xshot-select.sh deleted file mode 100755 index a0913a5..0000000 --- a/scripts/xshot-select.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -PIC="$HOME/pictures/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png" - -maim --format=png --hidecursor --quality 8 --select "$PIC" diff --git a/scripts/xshot-upload.sh b/scripts/xshot-upload.sh deleted file mode 100755 index 17b614a..0000000 --- a/scripts/xshot-upload.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -PIC="$HOME/pictures/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png" - -maim --format=png --hidecursor --quality 8 "$PIC" && - curl --form "file=@$PIC" "https://0x0.st" | - xclip -quiet diff --git a/scripts/xshot.sh b/scripts/xshot.sh deleted file mode 100755 index 046315d..0000000 --- a/scripts/xshot.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -PIC="$HOME/pictures/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png" - -maim --format=png --hidecursor --quality 8 "$PIC" |