scrpts: remove some useless scripts
This commit is contained in:
parent
71281a272e
commit
5683732e37
|
@ -1,8 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
swaymsg -t get_outputs |
|
||||
jq '.[]|select(.name == "HDMI-A-1")' &&
|
||||
swaymsg output eDP-1 disable
|
||||
|
||||
pkill -9 kanshi
|
||||
exec kanshi
|
|
@ -1,11 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
pkill swayidle
|
||||
pkill -9 swayidle
|
||||
|
||||
exec swayidle -w \
|
||||
before-sleep 'pkill caffeinated; swaylock -f' \
|
||||
after-resume '_sway_displays' \
|
||||
after-resume 'pkill kanshi; kanshi' \
|
||||
timeout 360 'pkill caffeinated; swaylock -f' \
|
||||
resume '_sway_displays' \
|
||||
resume 'pkill kanshi; kanshi' \
|
||||
timeout 1800 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"; _sway_displays' \
|
||||
resume 'swaymsg "output * dpms on"; pkill kanshi; kanshi' \
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# This script will compile or run another finishing operation on a document. I
|
||||
# have this script run via vim.
|
||||
#
|
||||
# Compiles .tex. groff (.mom, .ms), .rmd, .md. Opens .sent files as sent
|
||||
# presentations. Runs scripts based on extention or shebang
|
||||
|
||||
file=$(readlink -f "$1")
|
||||
dir=$(dirname "$file")
|
||||
base="${file%.*}"
|
||||
|
||||
cd "$dir" || exit
|
||||
|
||||
textype() { \
|
||||
command="pdflatex"
|
||||
( sed 5q "$file" | grep -i -q 'xelatex' ) && command="xelatex"
|
||||
$command --output-directory="$dir" "$base" &&
|
||||
grep -i addbibresource "$file" >/dev/null &&
|
||||
biber --input-directory "$dir" "$base" &&
|
||||
$command --output-directory="$dir" "$base" &&
|
||||
$command --output-directory="$dir" "$base"
|
||||
}
|
||||
|
||||
case "$file" in
|
||||
*\.ms) refer -PS -e "$file" | groff -me -ms -kept -T pdf > "$base".pdf ;;
|
||||
*\.mom) refer -PS -e "$file" | groff -mom -kept -T pdf > "$base".pdf ;;
|
||||
*\.[0-9]) refer -PS -e "$file" | groff -mandoc -T pdf > "$base".pdf ;;
|
||||
*\.[rR]md) Rscript -e "require(rmarkdown); rmarkdown::render('$file', quiet=TRUE)" ;;
|
||||
*\.tex) textype "$file" ;;
|
||||
*\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;;
|
||||
*config.h) sudo make install ;;
|
||||
*\.c) cc "$file" -o "$base" && "$base" ;;
|
||||
*\.py) python "$file" ;;
|
||||
*\.go) go run "$file" ;;
|
||||
*\.sent) setsid sent "$file" 2>/dev/null & ;;
|
||||
*) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;;
|
||||
esac
|
|
@ -33,15 +33,14 @@ exec_always pidof mako || mako
|
|||
exec udiskie
|
||||
|
||||
# gesture daemon
|
||||
exec fusuma
|
||||
exec_always pidof -x fusuma || fusuma
|
||||
|
||||
# Blue light filter
|
||||
exec /usr/lib/geoclue-2.0/demos/agent
|
||||
exec_always pidof redshift || redshift
|
||||
|
||||
# Screen manager
|
||||
exec_always _sway_displays
|
||||
|
||||
exec_always pkill -9 kanshi; exec kanshi
|
||||
# Set minimum brightness to 1 instead of 0
|
||||
# not exactly a daemon
|
||||
exec light -N 1
|
||||
|
|
Reference in New Issue