aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-01-29 18:44:08 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2019-01-29 18:44:08 +0100
commit3c6c62ad079454c8ca1c91e153ac48f8216c3694 (patch)
tree1da550aec302d6c8ca73e9f81fe263f86fe1e503
parentda8c4b7b65235909b7c03da480689d9d871f8d59 (diff)
downloadscripts-3c6c62ad079454c8ca1c91e153ac48f8216c3694.tar.gz
scripts-3c6c62ad079454c8ca1c91e153ac48f8216c3694.zip
Created scripts for ueberzug and opening files as pdf.
-rwxr-xr-xasPDF.sh4
-rwxr-xr-xbrightness.sh3
-rwxr-xr-xdmenuTerm.sh9
-rwxr-xr-ximg8
4 files changed, 20 insertions, 4 deletions
diff --git a/asPDF.sh b/asPDF.sh
new file mode 100755
index 0000000..e10e664
--- /dev/null
+++ b/asPDF.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+lowriter --convert-to pdf --outdir /tmp/pdf "$1" 1>/dev/null 2>&1
+zathura /tmp/pdf/"${1%.*}.pdf" &
diff --git a/brightness.sh b/brightness.sh
index e94249c..399f55a 100755
--- a/brightness.sh
+++ b/brightness.sh
@@ -5,7 +5,8 @@ maxbrightness_file=/sys/class/backlight/intel_backlight/max_brightness
permissions=$(ls -l $brightness_file | awk '{print $1}')
if [ $permissions != "-rw-rw-rw-" ]; then
- urxvt -title floating -geometry 32x1 -e sudo ~/scripts/brightFirst.sh
+ #urxvt -title floating -geometry 32x1 -e sudo ~/scripts/brightFirst.sh
+ sudo ~/scripts/brightFirst.sh
fi
brightness=$(< $brightness_file)
diff --git a/dmenuTerm.sh b/dmenuTerm.sh
index 5a90f90..b7667be 100755
--- a/dmenuTerm.sh
+++ b/dmenuTerm.sh
@@ -20,9 +20,12 @@ case "$chosen" in
neomutt) urxvt -e neomutt ;;
syncthing) urxvt -e ~/scripts/syncthing.sh ;;
# sudo stuff
- brightFirst) urxvt -title floating -geometry 32x1 -e sudo ~/scripts/brightFirst.sh ;;
- resetConnection) urxvt -title floating -geometry 32x1 -e sudo ~/scripts/resetConnection.sh ;;
- wifiDown) urxvt -title floating -geometry 32x1 -e sudo ~/scripts/wifiDown.sh ;;
+ #brightFirst) urxvt -title floating -geometry 32x1 -e sudo ~/scripts/brightFirst.sh ;;
+ brightFirst) sudo ~/scripts/brightFirst.sh ;;
+ #resetConnection) urxvt -title floating -geometry 32x1 -e sudo ~/scripts/resetConnection.sh ;;
+ resetConnection) sudo ~/scripts/resetConnection.sh ;;
+ #wifiDown) urxvt -title floating -geometry 32x1 -e sudo ~/scripts/wifiDown.sh ;;
+ wifiDown) sudo ~/scripts/wifiDown.sh ;;
# other
musicMode) ~/scripts/musicMode.sh ;;
"Close music mode") ~/scripts/closeMusicMode.sh ;;
diff --git a/img b/img
new file mode 100755
index 0000000..6fe6b38
--- /dev/null
+++ b/img
@@ -0,0 +1,8 @@
+#!/bin/bash
+[ -z "$5" ] && echo "Usage: $0 <image> <x> <y> <max height> <max width>" && exit
+source "`ueberzug library`"
+
+ImageLayer 0< <(
+ ImageLayer::add [identifier]="example0" [x]="$2" [y]="$3" [max_width]="$5" [max_height]="$4" [path]="$1"
+ read
+)