Lots of config changes to things

This commit is contained in:
Jonathan Hodgson 2019-01-08 16:26:44 +00:00
parent b05f18aeea
commit 930159d492
15 changed files with 619 additions and 57 deletions

19
bin/ddspawn Executable file
View file

@ -0,0 +1,19 @@
#!/bin/sh
#Stolen / Borrowed from Luke Smith https://github.com/LukeSmithxyz/voidrice/blob/master/.scripts/i3cmds/ddspawn
# Toggle floating dropdown terminal in i3, or start if non-existing.
# $1 is the script run in the terminal.
# All other args are terminal settings.
# Terminal names are in dropdown_* to allow easily setting i3 settings.
[ -z "$1" ] && exit
if xwininfo -tree -root | grep "(\"dropdown_$1\" ";
then
echo "Window detected."
i3 "[instance=\"dropdown_$1\"] scratchpad show; [instance=\"dropdown_$1\"] move position center"
else
echo "Window not detected... spawning."
i3 "exec --no-startup-id $TERMINAL -n dropdown_$1 $(echo "$@" | cut -d ' ' -f2-) -e $1"
fi

5
bin/dropdowncalc Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
# This script ensures that i3 will spawn a calculator.
# If R is installed, it will run R, otherwise it will run
# Python.
([ -e /usr/bin/R ] && R -q --no-save) || python -q

3
bin/dropdownnotepad Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env sh
vim --servername jab2870 -c 'startinsert'

View file

@ -1,2 +1,2 @@
#!/usr/bin/bash
echo "$@" | curl -F-=\<- qrenco.de
echo "$@" | qrencode -s 50 -o /tmp/qrcode && sxiv -f /tmp/qrcode && rm /tmp/qrcode

View file

@ -7,13 +7,13 @@ function format0to9 {
sed -E '/\$mod(\+Shift)?\+0/ { s/0/[1-9,0]/; s/10/[1-10]/g}'
}
function formatExec {
function formatLine {
while read line; do
if echo "$line" | grep -q "exec"; then
echo "Do Stuff $line"
echo "$line" |\
awk '{print "# "$1 "\n"; $1=$2=""; print " Runs the shell command: \n\n```bash\n" $0 "\n```\n" }'
else
echo "$line"
echo "$line" | awk '{print "# "$1 "\n"; $1=""; print $0 "\n" }'
fi
done;
}
@ -27,13 +27,14 @@ cat $HOME/.dotfiles/i3/configWork |\
sort |\
#Makes Formats [0-9]
format0to9 |\
formatExec |\
#Formats simple markdown
awk '{print "# "$1 "\n"; $1=""; print $0 "\n" }' |\
#Goes through each line and turns it into simple markdown
formatLine |\
#Converts markdown to groff ms
pandoc -f markdown -t ms |\
#pandoc -f markdown -t ms |\
pandoc -f markdown -t latex -o ~/test.pdf
#Converts groff to pdf
groff -ms - -T pdf |\
#groff -ms - -T pdf > ~/test.pdf
#groff -ms - -T pdf |\
#Opens PDF
zathura -
#zathura -