From 8e20389ce238d979e6cb9253643bc181d698f5a9 Mon Sep 17 00:00:00 2001 From: azahi Date: Sat, 13 Oct 2018 14:12:30 +0300 Subject: Huge update, yet again Move to ~/.xmonad Completely redo directory structure Remove Test.hs with xmonad-ng-test because it breaks cabal Add headers for new files Add proper "copyright" entries and mention upstream xmonad developers Other minor fixes --- misc/bin/mpc-play-pause.sh | 8 -------- misc/bin/nsp-console.sh | 8 -------- misc/bin/screenlock.sh | 7 ------- misc/bin/toggle-compton.sh | 8 -------- misc/bin/toggle-redshift.sh | 9 --------- misc/bin/toggle-touchpad.sh | 11 ----------- misc/bin/toggle-trackpoint.sh | 11 ----------- misc/bin/xmobar/fcitx.sh | 16 ---------------- misc/bin/xshot-select-upload.sh | 7 ------- misc/bin/xshot-select.sh | 5 ----- misc/bin/xshot-upload.sh | 7 ------- misc/bin/xshot.sh | 5 ----- 12 files changed, 102 deletions(-) delete mode 100755 misc/bin/mpc-play-pause.sh delete mode 100755 misc/bin/nsp-console.sh delete mode 100755 misc/bin/screenlock.sh delete mode 100755 misc/bin/toggle-compton.sh delete mode 100755 misc/bin/toggle-redshift.sh delete mode 100755 misc/bin/toggle-touchpad.sh delete mode 100755 misc/bin/toggle-trackpoint.sh delete mode 100755 misc/bin/xmobar/fcitx.sh delete mode 100755 misc/bin/xshot-select-upload.sh delete mode 100755 misc/bin/xshot-select.sh delete mode 100755 misc/bin/xshot-upload.sh delete mode 100755 misc/bin/xshot.sh (limited to 'misc/bin') diff --git a/misc/bin/mpc-play-pause.sh b/misc/bin/mpc-play-pause.sh deleted file mode 100755 index 3fb4f3b..0000000 --- a/misc/bin/mpc-play-pause.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -if mpc | grep -q "playing" -then - mpc --no-status pause -else - mpc --no-status play -fi diff --git a/misc/bin/nsp-console.sh b/misc/bin/nsp-console.sh deleted file mode 100755 index 5d19f46..0000000 --- a/misc/bin/nsp-console.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -if tmux list-sessions | grep -q "scratchpad" -then - tmux attach-session -t "scratchpad" -else - tmux new-session -s "scratchpad" -n "scratchpad" -c "${HOME}" -fi diff --git a/misc/bin/screenlock.sh b/misc/bin/screenlock.sh deleted file mode 100755 index 28dbe0c..0000000 --- a/misc/bin/screenlock.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash - -i3lock \ - --no-unlock-indicator \ - --image "${HOME}/pictures/wallpapers/mill-lock.png" \ - --pointer default \ - --ignore-empty-password diff --git a/misc/bin/toggle-compton.sh b/misc/bin/toggle-compton.sh deleted file mode 100755 index 91ebc4d..0000000 --- a/misc/bin/toggle-compton.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -if [[ $(pgrep 'compton') ]] -then - pkill "compton" -else - compton -b --config "${XDG_CONFIG_HOME}/compton.conf" -fi diff --git a/misc/bin/toggle-redshift.sh b/misc/bin/toggle-redshift.sh deleted file mode 100755 index 8ba6b60..0000000 --- a/misc/bin/toggle-redshift.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -if [[ $(pgrep 'redshift') ]] -then - pkill "redshift" -else - redshift -c "${XDG_CONFIG_HOME}/redshift.conf" & - disown redshift -fi diff --git a/misc/bin/toggle-touchpad.sh b/misc/bin/toggle-touchpad.sh deleted file mode 100755 index 5a30528..0000000 --- a/misc/bin/toggle-touchpad.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -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" -eq 1 ] -then - xinput disable "$ID" -else - xinput enable "$ID" -fi diff --git a/misc/bin/toggle-trackpoint.sh b/misc/bin/toggle-trackpoint.sh deleted file mode 100755 index b0b3501..0000000 --- a/misc/bin/toggle-trackpoint.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -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" -eq 1 ] -then - xinput disable "$ID" -else - xinput enable "$ID" -fi diff --git a/misc/bin/xmobar/fcitx.sh b/misc/bin/xmobar/fcitx.sh deleted file mode 100755 index ddf1826..0000000 --- a/misc/bin/xmobar/fcitx.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -status="$(fcitx-remote)" -set out - -if [[ "$status" = 0 ]] -then - out="Off" -elif [[ "$status" = 1 ]] -then - out="Disabled" -else - out="Enabled" -fi - -echo -e "$out" diff --git a/misc/bin/xshot-select-upload.sh b/misc/bin/xshot-select-upload.sh deleted file mode 100755 index e846800..0000000 --- a/misc/bin/xshot-select-upload.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash - -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/misc/bin/xshot-select.sh b/misc/bin/xshot-select.sh deleted file mode 100755 index 53ad782..0000000 --- a/misc/bin/xshot-select.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -PIC="${HOME}/pictures/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png" - -maim --format=png --hidecursor --quality 8 --select "${PIC}" diff --git a/misc/bin/xshot-upload.sh b/misc/bin/xshot-upload.sh deleted file mode 100755 index 91c23f4..0000000 --- a/misc/bin/xshot-upload.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash - -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/misc/bin/xshot.sh b/misc/bin/xshot.sh deleted file mode 100755 index d7984e3..0000000 --- a/misc/bin/xshot.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -PIC="${HOME}/pictures/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png" - -maim --format=png --hidecursor --quality 8 "${PIC}" -- cgit 1.4.1