From 3cd06b22069c009b8c5fea2d5fad5f996667d2e3 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Tue, 16 Aug 2022 01:46:04 +0300 Subject: huge update-o --- scripts/nsp-console.sh | 7 ------- scripts/toggle-compton.sh | 7 ------- scripts/toggle-redshift.sh | 8 -------- scripts/toggle-touchpad.sh | 10 ---------- scripts/toggle-trackpoint.sh | 10 ---------- scripts/xmobar/fcitx.sh | 13 ------------- scripts/xshot-select-upload.sh | 7 ------- scripts/xshot-select.sh | 5 ----- scripts/xshot-upload.sh | 7 ------- scripts/xshot.sh | 5 ----- 10 files changed, 79 deletions(-) delete mode 100755 scripts/nsp-console.sh delete mode 100755 scripts/toggle-compton.sh delete mode 100755 scripts/toggle-redshift.sh delete mode 100755 scripts/toggle-touchpad.sh delete mode 100755 scripts/toggle-trackpoint.sh delete mode 100755 scripts/xmobar/fcitx.sh delete mode 100755 scripts/xshot-select-upload.sh delete mode 100755 scripts/xshot-select.sh delete mode 100755 scripts/xshot-upload.sh delete mode 100755 scripts/xshot.sh (limited to 'scripts') 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" -- cgit 1.4.1