diff --git a/README.md b/README.md
index 1218128..ab72418 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,19 @@
# FXWinWrap
-FXXWinWrap is a GUI to select videos for XWinWrap and images for Nitrogen Wallpaper Manager. This is built using JavaFX, Shell scripts, and some C++.
+FXXWinWrap is a JavaFX GUI to select videos for XWinWrap, images for Nitrogen Wallpaper Manager, and gifs for Gifsicle.
+It includes the XWinWrap binary and source code for Shantanu Goel's version of XWinWrap.
-# TODO
-Need to convert for Jar creation
+
+# Notes
+v5 introduced the proper Jar structure and reduced some script requirements.
# Images
![1 version three View](images/pic1.jpg)
![2 version four View](images/pic2.jpg)
+
+# TODO
+Nothing At This Time
+
+#Credit
+FXXWinWrap Java Jar by: Maxim Stewart -- https://www.itdominator.com/
+XWinWrap binary by: Shantanu Goel -- http://tech.shantanugoel.com
+
diff --git a/bin/v0.1-1/README.md b/bin/v0.1-1/README.md
deleted file mode 100644
index bf274af..0000000
--- a/bin/v0.1-1/README.md
+++ /dev/null
@@ -1 +0,0 @@
-###Please use version 2 for improvements and stability. This package version is considered depricated!!
diff --git a/bin/v0.1-1/fxwinwrap-0-1-1-x64.deb b/bin/v0.1-1/fxwinwrap-0-1-1-x64.deb
deleted file mode 100644
index 6caa705..0000000
Binary files a/bin/v0.1-1/fxwinwrap-0-1-1-x64.deb and /dev/null differ
diff --git a/bin/v0.1-1/fxwinwrap-0-1-1-x86.deb b/bin/v0.1-1/fxwinwrap-0-1-1-x86.deb
deleted file mode 100644
index 2f3a54a..0000000
Binary files a/bin/v0.1-1/fxwinwrap-0-1-1-x86.deb and /dev/null differ
diff --git a/bin/v0.1-2/README.md b/bin/v0.1-2/README.md
deleted file mode 100644
index 69c515a..0000000
--- a/bin/v0.1-2/README.md
+++ /dev/null
@@ -1 +0,0 @@
-###Please use version 3 for improvements and stability. This package version is considered depricated!!
diff --git a/bin/v0.1-2/fxwinwrap-0-1-2-x64.deb b/bin/v0.1-2/fxwinwrap-0-1-2-x64.deb
deleted file mode 100644
index df71fe5..0000000
Binary files a/bin/v0.1-2/fxwinwrap-0-1-2-x64.deb and /dev/null differ
diff --git a/bin/v0.1-2/fxwinwrap-0-1-2-x86.deb b/bin/v0.1-2/fxwinwrap-0-1-2-x86.deb
deleted file mode 100644
index 5ab99b4..0000000
Binary files a/bin/v0.1-2/fxwinwrap-0-1-2-x86.deb and /dev/null differ
diff --git a/bin/v0.1-4/README.md b/bin/v0.1-4/README.md
new file mode 100644
index 0000000..23864ff
--- /dev/null
+++ b/bin/v0.1-4/README.md
@@ -0,0 +1 @@
+###Please use version 5 for improvements and stability. This package version is considered depricated!!
diff --git a/bin/v0.1-5/fxwinwrap-0-1-5-x64.deb b/bin/v0.1-5/fxwinwrap-0-1-5-x64.deb
index 0e26d6f..dadfbf3 100644
Binary files a/bin/v0.1-5/fxwinwrap-0-1-5-x64.deb and b/bin/v0.1-5/fxwinwrap-0-1-5-x64.deb differ
diff --git a/bin/v0.1-5/fxwinwrap-0-1-5-x86.deb b/bin/v0.1-5/fxwinwrap-0-1-5-x86.deb
index 252bfb9..2cfbffc 100644
Binary files a/bin/v0.1-5/fxwinwrap-0-1-5-x86.deb and b/bin/v0.1-5/fxwinwrap-0-1-5-x86.deb differ
diff --git a/src/debs/build.sh b/src/debs/build.sh
index e4c2030..229f961 100644
--- a/src/debs/build.sh
+++ b/src/debs/build.sh
@@ -20,10 +20,6 @@ function main() {
sudo chmod 755 "${i}"
done
- for in in `find . -name *.FXWinWrap.desktop.swp`; do
- sudo rm -rf "${i}"
- done;
-
sudo chmod 755 fxwinwrap*/opt/FXWinWrap/resources/bin/*
sudo chown -R root:root ./*/
diff --git a/src/debs/fxwinwrap-0-1-1-x64/DEBIAN/control b/src/debs/fxwinwrap-0-1-1-x64/DEBIAN/control
deleted file mode 100644
index afdaba0..0000000
--- a/src/debs/fxwinwrap-0-1-1-x64/DEBIAN/control
+++ /dev/null
@@ -1,8 +0,0 @@
-Package: fxwinwrap64
-Version: 0.1-1
-Section: base
-Priority: optional
-Architecture: amd64
-Depends: openjdk-8-jre (>= 8u45-b14-1)
-Maintainer: Maxim Stewart maximstewart1@gmail.com
-Description: A GUI to handle setting XWinWrap options.
diff --git a/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/Controller.class b/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/Controller.class
deleted file mode 100644
index d24599c..0000000
Binary files a/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/Controller.class and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/XWWMenu.class b/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/XWWMenu.class
deleted file mode 100644
index 6e313e6..0000000
Binary files a/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/XWWMenu.class and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/launch.sh b/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/launch.sh
deleted file mode 100644
index c9fead3..0000000
--- a/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/launch.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-java XWWMenu
diff --git a/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/resources/Window.fxml b/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/resources/Window.fxml
deleted file mode 100644
index 1853296..0000000
--- a/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/resources/Window.fxml
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/resources/bin/StartXWW.sh b/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/resources/bin/StartXWW.sh
deleted file mode 100755
index e276bde..0000000
--- a/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/resources/bin/StartXWW.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-
-### nohup is needed to keep child process alive from java's
-xterm -e nohup ~/.animatedBGstarter.sh >/dev/null 2>&1
-xterm -e nohup ~/.animatedBGstarter2.sh >/dev/null 2>&1
diff --git a/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/resources/bin/ffmpegthumbnailer b/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/resources/bin/ffmpegthumbnailer
deleted file mode 100755
index c35faf9..0000000
Binary files a/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/resources/bin/ffmpegthumbnailer and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/resources/fxwinwrap.png b/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/resources/fxwinwrap.png
deleted file mode 100644
index cdd708d..0000000
Binary files a/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/resources/fxwinwrap.png and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/resources/startImg.jpg b/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/resources/startImg.jpg
deleted file mode 100644
index 082df26..0000000
Binary files a/src/debs/fxwinwrap-0-1-1-x64/opt/FXWinWrap/resources/startImg.jpg and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-1-x64/usr/share/applications/FXWinWrap.desktop b/src/debs/fxwinwrap-0-1-1-x64/usr/share/applications/FXWinWrap.desktop
deleted file mode 100644
index 50fcf7b..0000000
--- a/src/debs/fxwinwrap-0-1-1-x64/usr/share/applications/FXWinWrap.desktop
+++ /dev/null
@@ -1,10 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-Name=FXWinWrap
-Comment=JavaFX gui for XWinWrap
-Exec=/bin/fxwinwrap
-Icon=/opt/FXWinWrap/resources/fxwinwrap.png
-Terminal=false
-Type=Application
-Categories=System;
-MimeType=application/fxml;
diff --git a/src/debs/fxwinwrap-0-1-1-x86/DEBIAN/control b/src/debs/fxwinwrap-0-1-1-x86/DEBIAN/control
deleted file mode 100644
index d0d65fa..0000000
--- a/src/debs/fxwinwrap-0-1-1-x86/DEBIAN/control
+++ /dev/null
@@ -1,8 +0,0 @@
-Package: fxwinwrap
-Version: 0.1-1
-Section: base
-Priority: optional
-Architecture: i386
-Depends: openjdk-8-jre (>= 8u45-b14-1)
-Maintainer: Maxim Stewart maximstewart1@gmail.com
-Description: A GUI to handle setting XWinWrap options.
diff --git a/src/debs/fxwinwrap-0-1-1-x86/bin/fxwinwrap b/src/debs/fxwinwrap-0-1-1-x86/bin/fxwinwrap
deleted file mode 100755
index 99efd97..0000000
Binary files a/src/debs/fxwinwrap-0-1-1-x86/bin/fxwinwrap and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/Controller.class b/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/Controller.class
deleted file mode 100644
index d24599c..0000000
Binary files a/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/Controller.class and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/XWWMenu.class b/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/XWWMenu.class
deleted file mode 100644
index 6e313e6..0000000
Binary files a/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/XWWMenu.class and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/launch.sh b/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/launch.sh
deleted file mode 100644
index c9fead3..0000000
--- a/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/launch.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-java XWWMenu
diff --git a/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/resources/Window.fxml b/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/resources/Window.fxml
deleted file mode 100644
index 1853296..0000000
--- a/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/resources/Window.fxml
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/resources/bin/StartXWW.sh b/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/resources/bin/StartXWW.sh
deleted file mode 100755
index e276bde..0000000
--- a/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/resources/bin/StartXWW.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-
-### nohup is needed to keep child process alive from java's
-xterm -e nohup ~/.animatedBGstarter.sh >/dev/null 2>&1
-xterm -e nohup ~/.animatedBGstarter2.sh >/dev/null 2>&1
diff --git a/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/resources/bin/ffmpegthumbnailer b/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/resources/bin/ffmpegthumbnailer
deleted file mode 100755
index c35faf9..0000000
Binary files a/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/resources/bin/ffmpegthumbnailer and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/resources/fxwinwrap.png b/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/resources/fxwinwrap.png
deleted file mode 100644
index cdd708d..0000000
Binary files a/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/resources/fxwinwrap.png and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/resources/startImg.jpg b/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/resources/startImg.jpg
deleted file mode 100644
index 082df26..0000000
Binary files a/src/debs/fxwinwrap-0-1-1-x86/opt/FXWinWrap/resources/startImg.jpg and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-1-x86/usr/share/applications/FXWinWrap.desktop b/src/debs/fxwinwrap-0-1-1-x86/usr/share/applications/FXWinWrap.desktop
deleted file mode 100644
index 50fcf7b..0000000
--- a/src/debs/fxwinwrap-0-1-1-x86/usr/share/applications/FXWinWrap.desktop
+++ /dev/null
@@ -1,10 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-Name=FXWinWrap
-Comment=JavaFX gui for XWinWrap
-Exec=/bin/fxwinwrap
-Icon=/opt/FXWinWrap/resources/fxwinwrap.png
-Terminal=false
-Type=Application
-Categories=System;
-MimeType=application/fxml;
diff --git a/src/debs/fxwinwrap-0-1-2-x64/DEBIAN/control b/src/debs/fxwinwrap-0-1-2-x64/DEBIAN/control
deleted file mode 100644
index a6c8aa4..0000000
--- a/src/debs/fxwinwrap-0-1-2-x64/DEBIAN/control
+++ /dev/null
@@ -1,8 +0,0 @@
-Package: fxwinwrap64
-Version: 0.1-2
-Section: base
-Priority: optional
-Architecture: amd64
-Depends: openjdk-8-jre (>= 8u45-b14-1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2)
-Maintainer: Maxim Stewart maximstewart1@gmail.com
-Description: A GUI to handle setting XWinWrap options.
diff --git a/src/debs/fxwinwrap-0-1-2-x64/DEBIAN/postrm b/src/debs/fxwinwrap-0-1-2-x64/DEBIAN/postrm
deleted file mode 100755
index e0609c1..0000000
--- a/src/debs/fxwinwrap-0-1-2-x64/DEBIAN/postrm
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/bash
-#postrm (script executed after uninstalling the package)
-#set -e
-
-if [ -f /bin/fxwinwrap ]; then
- rm /bin/fxwinwrap
-fi
-
-if [ -d /opt/FXWinWrap ]; then
- rm -rf /bin/fxwinwrap
-fi
-
-if [ -x "`which xdg-desktop-menu 2>/dev/null`" ]; then
- xdg-desktop-menu uninstall /usr/share/applications/FXWinWrap.desktop
- xdg-desktop-menu forceupdate --mode user
-fi
diff --git a/src/debs/fxwinwrap-0-1-2-x64/bin/fxwinwrap b/src/debs/fxwinwrap-0-1-2-x64/bin/fxwinwrap
deleted file mode 100755
index 99efd97..0000000
Binary files a/src/debs/fxwinwrap-0-1-2-x64/bin/fxwinwrap and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/Controller.class b/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/Controller.class
deleted file mode 100644
index 0c561e1..0000000
Binary files a/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/Controller.class and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/XWWMenu.class b/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/XWWMenu.class
deleted file mode 100644
index 863ed9f..0000000
Binary files a/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/XWWMenu.class and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/launch.sh b/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/launch.sh
deleted file mode 100644
index c9fead3..0000000
--- a/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/launch.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-java XWWMenu
diff --git a/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/resources/Window.fxml b/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/resources/Window.fxml
deleted file mode 100644
index 2656efd..0000000
--- a/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/resources/Window.fxml
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/resources/bin/StartXWW.sh b/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/resources/bin/StartXWW.sh
deleted file mode 100755
index e276bde..0000000
--- a/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/resources/bin/StartXWW.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-
-### nohup is needed to keep child process alive from java's
-xterm -e nohup ~/.animatedBGstarter.sh >/dev/null 2>&1
-xterm -e nohup ~/.animatedBGstarter2.sh >/dev/null 2>&1
diff --git a/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/resources/bin/ffmpegthumbnailer b/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/resources/bin/ffmpegthumbnailer
deleted file mode 100755
index c35faf9..0000000
Binary files a/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/resources/bin/ffmpegthumbnailer and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/resources/fxwinwrap.png b/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/resources/fxwinwrap.png
deleted file mode 100644
index cdd708d..0000000
Binary files a/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/resources/fxwinwrap.png and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/resources/stylesheet.css b/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/resources/stylesheet.css
deleted file mode 100644
index e91c2fe..0000000
--- a/src/debs/fxwinwrap-0-1-2-x64/opt/FXWinWrap/resources/stylesheet.css
+++ /dev/null
@@ -1,3 +0,0 @@
-.root {
- -fx-background: rgba(68, 68, 68, 0.8); // == #444444;
-}
diff --git a/src/debs/fxwinwrap-0-1-2-x64/usr/share/applications/FXWinWrap.desktop b/src/debs/fxwinwrap-0-1-2-x64/usr/share/applications/FXWinWrap.desktop
deleted file mode 100644
index 50fcf7b..0000000
--- a/src/debs/fxwinwrap-0-1-2-x64/usr/share/applications/FXWinWrap.desktop
+++ /dev/null
@@ -1,10 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-Name=FXWinWrap
-Comment=JavaFX gui for XWinWrap
-Exec=/bin/fxwinwrap
-Icon=/opt/FXWinWrap/resources/fxwinwrap.png
-Terminal=false
-Type=Application
-Categories=System;
-MimeType=application/fxml;
diff --git a/src/debs/fxwinwrap-0-1-2-x86/DEBIAN/control b/src/debs/fxwinwrap-0-1-2-x86/DEBIAN/control
deleted file mode 100644
index 24c5763..0000000
--- a/src/debs/fxwinwrap-0-1-2-x86/DEBIAN/control
+++ /dev/null
@@ -1,8 +0,0 @@
-Package: fxwinwrap
-Version: 0.1-2
-Section: base
-Priority: optional
-Architecture: i386
-Depends: openjdk-8-jre (>= 8u45-b14-1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2)
-Maintainer: Maxim Stewart maximstewart1@gmail.com
-Description: A GUI to handle setting XWinWrap options.
diff --git a/src/debs/fxwinwrap-0-1-2-x86/DEBIAN/postrm b/src/debs/fxwinwrap-0-1-2-x86/DEBIAN/postrm
deleted file mode 100755
index e0609c1..0000000
--- a/src/debs/fxwinwrap-0-1-2-x86/DEBIAN/postrm
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/bash
-#postrm (script executed after uninstalling the package)
-#set -e
-
-if [ -f /bin/fxwinwrap ]; then
- rm /bin/fxwinwrap
-fi
-
-if [ -d /opt/FXWinWrap ]; then
- rm -rf /bin/fxwinwrap
-fi
-
-if [ -x "`which xdg-desktop-menu 2>/dev/null`" ]; then
- xdg-desktop-menu uninstall /usr/share/applications/FXWinWrap.desktop
- xdg-desktop-menu forceupdate --mode user
-fi
diff --git a/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/Controller.class b/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/Controller.class
deleted file mode 100644
index 0c561e1..0000000
Binary files a/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/Controller.class and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/XWWMenu.class b/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/XWWMenu.class
deleted file mode 100644
index 863ed9f..0000000
Binary files a/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/XWWMenu.class and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/launch.sh b/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/launch.sh
deleted file mode 100644
index c9fead3..0000000
--- a/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/launch.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-java XWWMenu
diff --git a/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/resources/Window.fxml b/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/resources/Window.fxml
deleted file mode 100644
index 2656efd..0000000
--- a/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/resources/Window.fxml
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/resources/bin/StartXWW.sh b/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/resources/bin/StartXWW.sh
deleted file mode 100755
index e276bde..0000000
--- a/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/resources/bin/StartXWW.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-
-### nohup is needed to keep child process alive from java's
-xterm -e nohup ~/.animatedBGstarter.sh >/dev/null 2>&1
-xterm -e nohup ~/.animatedBGstarter2.sh >/dev/null 2>&1
diff --git a/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/resources/bin/ffmpegthumbnailer b/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/resources/bin/ffmpegthumbnailer
deleted file mode 100755
index c35faf9..0000000
Binary files a/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/resources/bin/ffmpegthumbnailer and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/resources/fxwinwrap.png b/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/resources/fxwinwrap.png
deleted file mode 100644
index cdd708d..0000000
Binary files a/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/resources/fxwinwrap.png and /dev/null differ
diff --git a/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/resources/stylesheet.css b/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/resources/stylesheet.css
deleted file mode 100644
index e91c2fe..0000000
--- a/src/debs/fxwinwrap-0-1-2-x86/opt/FXWinWrap/resources/stylesheet.css
+++ /dev/null
@@ -1,3 +0,0 @@
-.root {
- -fx-background: rgba(68, 68, 68, 0.8); // == #444444;
-}
diff --git a/src/debs/fxwinwrap-0-1-2-x86/usr/share/applications/FXWinWrap.desktop b/src/debs/fxwinwrap-0-1-2-x86/usr/share/applications/FXWinWrap.desktop
deleted file mode 100644
index 50fcf7b..0000000
--- a/src/debs/fxwinwrap-0-1-2-x86/usr/share/applications/FXWinWrap.desktop
+++ /dev/null
@@ -1,10 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-Name=FXWinWrap
-Comment=JavaFX gui for XWinWrap
-Exec=/bin/fxwinwrap
-Icon=/opt/FXWinWrap/resources/fxwinwrap.png
-Terminal=false
-Type=Application
-Categories=System;
-MimeType=application/fxml;
diff --git a/src/debs/fxwinwrap-0-1-5-x86/bin/xwinwrap b/src/debs/fxwinwrap-0-1-5-x86/bin/xwinwrap
new file mode 100755
index 0000000..8c86fd3
Binary files /dev/null and b/src/debs/fxwinwrap-0-1-5-x86/bin/xwinwrap differ
diff --git a/src/versions/v0.0.1/Controller.java b/src/versions/v0.0.1/Controller.java
deleted file mode 100644
index 45592b1..0000000
--- a/src/versions/v0.0.1/Controller.java
+++ /dev/null
@@ -1,194 +0,0 @@
-import javafx.stage.Stage;
-import javafx.fxml.FXML;
-import javafx.stage.FileChooser;
-import javafx.scene.Scene;
-import javafx.scene.layout.Pane;
-import javafx.scene.layout.AnchorPane;
-import javafx.scene.image.ImageView;
-import javafx.scene.image.Image;
-import javafx.scene.media.Media;
-import javafx.scene.media.MediaView;
-import javafx.scene.media.MediaPlayer;
-import javafx.scene.control.*;
-import javafx.event.ActionEvent;
-import java.io.*;
-
-
-public class Controller {
- private FileChooser fileChooser = new FileChooser();
- private String tmpPath, resolution, xScreenVal, output,
- startScrpt = System.getProperty("user.dir") + "/resources/bin/StartXWW.sh",
- ffmpg = System.getProperty("user.dir") + "/resources/bin/ffmpegthumbnailer";
- private int applyType = 1;
- private Stage fileChooserStage;
- private Image imgPath;
- private Process pb;
- private File file;
- private FileWriter fileWriter;
- @FXML private AnchorPane imgVideoField;
- @FXML private ImageView imgView;
- @FXML private ListView> selXScreenSvr;
- @FXML private TextField txtField;
- @FXML private Label errorField;
- @FXML private CheckBox lftScrn, rghtScrn, useXSvrn;
- @FXML private ChoiceBox> listLftRes, listRgthRes, listSaveLoc;
- @FXML private Button applyBttn, closeBttn, dirBttn,
- killBttn, restartBttn, saveBttn;
- @FXML
- void closeProg(ActionEvent event) {
- System.exit(0);
- }
- @FXML
- void getImg(ActionEvent event) throws Exception {
- fileChooser.setTitle("Open Image File");
- tmpPath = "" + fileChooser.showOpenDialog(fileChooserStage);
- txtField.setText(tmpPath);
- if (txtField.getText().toLowerCase().contains(".mp4") ||
- txtField.getText().toLowerCase().contains(".mkv") ||
- txtField.getText().toLowerCase().contains(".mpg") ||
- txtField.getText().toLowerCase().contains(".mpeg") ||
- txtField.getText().toLowerCase().contains(".wmv") ||
- txtField.getText().toLowerCase().contains(".flv") ||
- txtField.getText().toLowerCase().contains(".webm") ||
- txtField.getText().toLowerCase().contains(".avi")) {
- /* ########## FOR FUTURE PLAYING VIDEO ##########
- pb = new ProcessBuilder("mplayer", "-slave", "-quiet", "-idle", tmpPath).start();
- Media media = new Media(getClass().getResource("test.mp4").toString());
- // Create the player and set to play automatically.
- final MediaPlayer mediaPlayer = new MediaPlayer(media);
- mediaPlayer.setAutoPlay(true);
- final MediaView mediaView = new MediaView(mediaPlayer);
- imgVideoField.getChildren().clear();
- imgVideoField.getChildren().addAll(mediaView);
- */
- String movieImg = ffmpg + " -w -t='00:10:00' -c jpg -i " + tmpPath +
- " -s 800 -o /tmp/image.jpg";
- pb = Runtime.getRuntime().exec(movieImg);
- pb.waitFor();
- imgPath = new Image("file://" + "/tmp/image.jpg");
- tmpPath = "/tmp/image.jpg";
- }
- else {
- imgPath = new Image("file://" + tmpPath);
- }
-
- imgView.setFitWidth(500);
- imgView.setFitHeight(375);
- imgView.setImage(imgPath);
- String title = "" + tmpPath;
- final ImageView imgViewPoped = new ImageView("file://" + tmpPath);
- setClick(imgViewPoped, title);
-
- if(txtField.getText().toLowerCase().contains(".jpg") ||
- txtField.getText().toLowerCase().contains(".png"))
- applyType = 2;
- }
- void setClick(ImageView imgViewPoped, String title) {
- imgView.setOnMouseClicked(e -> {
- imgViewPoped.setLayoutX(0);
- imgViewPoped.setLayoutY(0);
- Stage popOut = new Stage();
- Pane pane = new Pane();
- imgViewPoped.fitWidthProperty().bind(pane.widthProperty());
- imgViewPoped.fitHeightProperty().bind(pane.heightProperty());
- pane.getChildren().addAll(imgViewPoped);
- Scene scene = new Scene(pane, 800, 600);
- popOut.setTitle(title);
- popOut.setScene(scene);
- popOut.show();
- });
- }
- @FXML
- void killXWinWrp(ActionEvent event) throws Exception {
- pb = Runtime.getRuntime().exec("killall xwinwrap &");
- }
- @FXML
- void restartXWinWrp(ActionEvent event) throws Exception {
- pb = Runtime.getRuntime().exec("killall xwinwrap &");
- pb = Runtime.getRuntime().exec(startScrpt);
- }
- @FXML
- void passXScreenVal() {
- xScreenVal = "" + selXScreenSvr.getSelectionModel().getSelectedItem();
- }
- @FXML
- void saveToFile(ActionEvent event) throws Exception {
- // Saves to file with selected and needed settings
- if(txtField.getText().toLowerCase().contains(".jpg") ||
- txtField.getText().toLowerCase().contains(".png"))
- file = new File(System.getProperty("user.home") + "/" + ".config/nitrogen/bg-saved.cfg");
- else
- file = new File(System.getProperty("user.home") + "/" + listSaveLoc.getValue());
- fileWriter = new FileWriter(file);
-
- errorField.setText("");
- if (lftScrn.isSelected() == true && rghtScrn.isSelected() == true)
- errorField.setText("Please only check one...");
- else if (lftScrn.isSelected() == false && rghtScrn.isSelected() == false)
- errorField.setText("Please check one...");
- else if (lftScrn.isSelected() == true && rghtScrn.isSelected() == false) {
- resolution = "" + listLftRes.getValue();
- startSave();
- }
- else if (rghtScrn.isSelected() == true && lftScrn.isSelected() == false) {
- resolution = "" + listLftRes.getValue() + "" + listRgthRes.getValue();
- startSave();
- } else { startSave(); }
- }
- void startSave() throws Exception {
- // XSCREENSAVER
- if (useXSvrn.isSelected() == true) {
- output = "xwinwrap -ov -g " + resolution + " -st -sp -b -nf -s -ni -- /usr/lib/xscreensaver/" + xScreenVal + " -window-id WID -root";
- fileWriter.write(output);
- applyType = 1;
- // GIF
- } else if (txtField.getText().toLowerCase().contains(".gif")) {
- output = "xwinwrap -ov -g " + resolution + " -st -sp -b -nf -s -ni -- gifview -a -w WID " + txtField.getText();
- fileWriter.write(output);
- applyType = 1;
- // Standard images using nitrogen
- } else if(txtField.getText().toLowerCase().contains(".jpg") ||
- txtField.getText().toLowerCase().contains(".png")) {
- output = "[xin_0] \n file=" + txtField.getText() + "\nmode=0 \nbgcolor=#000000\n" +
- "[xin_1] \nfile=" + txtField.getText() + "\nmode=0 \nbgcolor=#000000";
- fileWriter.write(output);
- applyType = 2;
- //VIDEO
- } else {
- output = "xwinwrap -ov -g " + resolution + " -st -sp -b -nf -s -ni -- mplayer -wid WID -nosound -loop 0 " + txtField.getText();
- fileWriter.write(output);
- applyType = 1;
- }
- fileWriter.close();
- }
- @FXML
- void applySttngs(ActionEvent event) throws Exception {
- pb = Runtime.getRuntime().exec("killall xwinwrap &");
- if (applyType == 1) {
- pb = Runtime.getRuntime().exec(startScrpt);
- } else if (applyType == 2) {
- pb = Runtime.getRuntime().exec("nitrogen --restore");
- } else
- pb = Runtime.getRuntime().exec("nitrogen --restore");
- }
- @FXML
- void initialize() {
- assert applyBttn != null : "fx:id=\"applyBttn\" was not injected: check your FXML file 'Window.fxml'.";
- assert closeBttn != null : "fx:id=\"closeBttn\" was not injected: check your FXML file 'Window.fxml'.";
- assert dirBttn != null : "fx:id=\"dirBttn\" was not injected: check your FXML file 'Window.fxml'.";
- assert errorField != null : "fx:id=\"errorField\" was not injected: check your FXML file 'Window.fxml'.";
- assert imgVideoField != null : "fx:id=\"imgVideoField\" was not injected: check your FXML file 'Window.fxml'.";
- assert imgView != null : "fx:id=\"imgView\" was not injected: check your FXML file 'Window.fxml'.";
- assert killBttn != null : "fx:id=\"killBttn\" was not injected: check your FXML file 'Window.fxml'.";
- assert lftScrn != null : "fx:id=\"lftScrn\" was not injected: check your FXML file 'Window.fxml'.";
- assert listLftRes != null : "fx:id=\"listLftRes\" was not injected: check your FXML file 'Window.fxml'.";
- assert listRgthRes != null : "fx:id=\"listRgthRes\" was not injected: check your FXML file 'Window.fxml'.";
- assert listSaveLoc != null : "fx:id=\"listSaveLoc\" was not injected: check your FXML file 'Window.fxml'.";
- assert restartBttn != null : "fx:id=\"restartBttn\" was not injected: check your FXML file 'Window.fxml'.";
- assert rghtScrn != null : "fx:id=\"rghtScrn\" was not injected: check your FXML file 'Window.fxml'.";
- assert saveBttn != null : "fx:id=\"saveBttn\" was not injected: check your FXML file 'Window.fxml'.";
- assert selXScreenSvr != null : "fx:id=\"selXScreenSvr\" was not injected: check your FXML file 'Window.fxml'.";
- assert txtField != null : "fx:id=\"txtField\" was not injected: check your FXML file 'Window.fxml'.";
- assert useXSvrn != null : "fx:id=\"useXSvrn\" was not injected: check your FXML file 'Window.fxml'.";
- }
-}
diff --git a/src/versions/v0.0.1/README.md b/src/versions/v0.0.1/README.md
deleted file mode 100644
index 7951c1d..0000000
--- a/src/versions/v0.0.1/README.md
+++ /dev/null
@@ -1 +0,0 @@
-###Please use version 2 or higher for improvements and stability. This package version is considered depricated!!
diff --git a/src/versions/v0.0.1/XWWMenu.java b/src/versions/v0.0.1/XWWMenu.java
deleted file mode 100644
index 557d852..0000000
--- a/src/versions/v0.0.1/XWWMenu.java
+++ /dev/null
@@ -1,18 +0,0 @@
-import javafx.application.Application;
-import javafx.fxml.FXMLLoader;
-import javafx.stage.Stage;
-import javafx.scene.Scene;
-import javafx.scene.layout.AnchorPane;
-
-
-public class XWWMenu extends Application {
- @Override
- public void start(Stage stage) throws Exception {
- Scene scene = new Scene(FXMLLoader.load(XWWMenu.class.getResource("resources/Window.fxml")));
- stage.setScene(scene);
- stage.setTitle("XWinWrap Menu");
- stage.setResizable(false);
- stage.show();
- }
- public static void main(String[] args) { launch(args); }
-}
diff --git a/src/versions/v0.0.1/fxwinwrap_exec_bin.cpp b/src/versions/v0.0.1/fxwinwrap_exec_bin.cpp
deleted file mode 100644
index 4ea961e..0000000
--- a/src/versions/v0.0.1/fxwinwrap_exec_bin.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
-#include
-#include
-#include
-using namespace std;
-
-int main() {
- chdir("/opt/FXWinWrap/");
- system("bash launch.sh");
-return 0;
-}
diff --git a/src/versions/v0.0.1/launch.sh b/src/versions/v0.0.1/launch.sh
deleted file mode 100755
index c9fead3..0000000
--- a/src/versions/v0.0.1/launch.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-java XWWMenu
diff --git a/src/versions/v0.0.1/resources/Window.fxml b/src/versions/v0.0.1/resources/Window.fxml
deleted file mode 100644
index 1853296..0000000
--- a/src/versions/v0.0.1/resources/Window.fxml
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/versions/v0.0.1/resources/bin/StartXWW.sh b/src/versions/v0.0.1/resources/bin/StartXWW.sh
deleted file mode 100755
index e276bde..0000000
--- a/src/versions/v0.0.1/resources/bin/StartXWW.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-
-### nohup is needed to keep child process alive from java's
-xterm -e nohup ~/.animatedBGstarter.sh >/dev/null 2>&1
-xterm -e nohup ~/.animatedBGstarter2.sh >/dev/null 2>&1
diff --git a/src/versions/v0.0.1/resources/bin/ffmpegthumbnailer b/src/versions/v0.0.1/resources/bin/ffmpegthumbnailer
deleted file mode 100755
index c35faf9..0000000
Binary files a/src/versions/v0.0.1/resources/bin/ffmpegthumbnailer and /dev/null differ
diff --git a/src/versions/v0.0.1/resources/startImg.jpg b/src/versions/v0.0.1/resources/startImg.jpg
deleted file mode 100644
index 082df26..0000000
Binary files a/src/versions/v0.0.1/resources/startImg.jpg and /dev/null differ
diff --git a/src/versions/v0.0.2/Controller.java b/src/versions/v0.0.2/Controller.java
deleted file mode 100644
index 007e0fd..0000000
--- a/src/versions/v0.0.2/Controller.java
+++ /dev/null
@@ -1,250 +0,0 @@
-import javafx.stage.*;
-import javafx.scene.Scene;
-import javafx.fxml.FXML;
-import javafx.scene.image.Image;
-import javafx.scene.image.ImageView;
-import javafx.scene.layout.Pane;
-import javafx.scene.layout.VBox;
-import javafx.scene.control.*;
-import javafx.event.ActionEvent;
-import javafx.scene.input.KeyEvent;
-import javafx.scene.input.KeyCode;
-import javafx.scene.input.MouseEvent;
-import javafx.geometry.Insets;
-import java.io.*;
-
-
-public class Controller {
- private DirectoryChooser folderChooser = new DirectoryChooser(); // Selects a dir
- private FileChooser fileChooser = new FileChooser(); // Selects a file
- private FileWriter fileWriter; // Writes to files
- private File directory, sveFileLoc; // Path to file or dir
- private Image pth = new Image("."); // Path to image
-
- private Image imgPath; // tmp
-
- private ImageView imgView = new ImageView(pth); // Image view area
- private Process pb; // Process runner
- private String tmpPath, resolution, xScreenVal, output,
- startScrpt = System.getProperty("user.dir") + "/resources/bin/StartXWW.sh", // Gets shell that starts stuff local
- ffmpg = System.getProperty("user.dir") + "/resources/bin/ffmpegthumbnailer", // Gets ffmpeg local
- textAreaPth = "";
- private int applyType = 1;
- private Stage fileChooserStage;
- @FXML private ListView> selXScreenSvr;
- @FXML private Label dirLbl, errorField; // Labels
- @FXML private VBox thumbImgView; // Vertical image area
- @FXML private TextField dirPathField, filePathField; // Text fields
- @FXML private CheckBox lftScrn, rghtScrn, useXSvrn; // Check boxes
- @FXML private ChoiceBox> listLftRes, listRgthRes, listSaveLoc; // Choice box fields
- @FXML private Button applyBttn, closeBttn, fileBttn, clear, // Buttons
- killBttn, restartBttn, saveBttn;
-
-
- @FXML void initialize() {
- assert clear != null : "fx:id=\"clear\" was not injected: check your FXML file 'Window.fxml'.";
- assert closeBttn != null : "fx:id=\"closeBttn\" was not injected: check your FXML file 'Window.fxml'.";
- assert dirLbl != null : "fx:id=\"dirLbl\" was not injected: check your FXML file 'Window.fxml'.";
- assert thumbImgView != null : "fx:id=\"thumbImgView\" was not injected: check your FXML file 'Window.fxml'.";
- assert dirPathField != null : "fx:id=\"dirPathField\" was not injected: check your FXML file 'Window.fxml'.";
- assert filePathField != null : "fx:id=\"filePathField\" was not injected: check your FXML file 'Window.fxml'.";
- assert applyBttn != null : "fx:id=\"applyBttn\" was not injected: check your FXML file 'Window.fxml'.";
- assert fileBttn != null : "fx:id=\"fileBttn\" was not injected: check your FXML file 'Window.fxml'.";
- assert errorField != null : "fx:id=\"errorField\" was not injected: check your FXML file 'Window.fxml'.";
- assert killBttn != null : "fx:id=\"killBttn\" was not injected: check your FXML file 'Window.fxml'.";
- assert lftScrn != null : "fx:id=\"lftScrn\" was not injected: check your FXML file 'Window.fxml'.";
- assert listLftRes != null : "fx:id=\"listLftRes\" was not injected: check your FXML file 'Window.fxml'.";
- assert listRgthRes != null : "fx:id=\"listRgthRes\" was not injected: check your FXML file 'Window.fxml'.";
- assert listSaveLoc != null : "fx:id=\"listSaveLoc\" was not injected: check your FXML file 'Window.fxml'.";
- assert restartBttn != null : "fx:id=\"restartBttn\" was not injected: check your FXML file 'Window.fxml'.";
- assert rghtScrn != null : "fx:id=\"rghtScrn\" was not injected: check your FXML file 'Window.fxml'.";
- assert saveBttn != null : "fx:id=\"saveBttn\" was not injected: check your FXML file 'Window.fxml'.";
- assert selXScreenSvr != null : "fx:id=\"selXScreenSvr\" was not injected: check your FXML file 'Window.fxml'.";
- assert filePathField != null : "fx:id=\"filePathField\" was not injected: check your FXML file 'Window.fxml'.";
- assert useXSvrn != null : "fx:id=\"useXSvrn\" was not injected: check your FXML file 'Window.fxml'.";
- }
-
- // Sets the dir path in dir label area and continues with scan
- @FXML void setNewDir(MouseEvent event) { newDir(); }
- @FXML void onEnter(KeyEvent event) {
- if (event.getCode().equals(KeyCode.ENTER)) {
- textAreaPth = dirPathField.getText();
- newDir();
- }
- }
-
- // Gets list of files then checks if image or video.
- // Creates thumbnail imgs for the vids and then sets up
- // onclick events to either play video or open enlarged image.
- public void newDir() {
- Stage stage = new Stage();
- if (textAreaPth != "")
- directory = new File(textAreaPth);
- else
- directory = folderChooser.showDialog(stage);
-
- File[] fileList = directory.listFiles(); // Listed contents of diir
- int size = fileList.length; // List length
- double posY = 0.0;
- thumbImgView.getChildren().clear(); // Clears children if any to setup for new images
- dirPathField.setText("" + directory);
-
- for (int i=0; i {
- if (mouse.getClickCount() == 2 && !mouse.isConsumed()) {
- mouse.consume();
- try {
- pb = Runtime.getRuntime().exec(vExec);
- } catch(IOException vidIOErr) {
- throw new UncheckedIOException(vidIOErr);
- }
- }
- filePathField.setText(path);
- });
- } else if(fileList[i].getName().contains(".png") || fileList[i].getName().contains(".jpg")||
- fileList[i].getName().contains(".gif") || fileList[i].getName().contains(".jpeg")) {
- imgView = new ImageView("file://" + fileList[i]);
- thumbImgView.getChildren().add(imgView);
- final ImageView imgViewPoped = new ImageView("file://" + fileList[i]);
-
- imgView.setOnMouseClicked(mouse -> {
- if (mouse.getClickCount() == 2 && !mouse.isConsumed()) {
- mouse.consume();
- displayImg(imgViewPoped, path);
- }
- filePathField.setText(path);
- });
- } else {
- System.out.println("Not a video or image file.");
- }
- posY = posY + 355.0;
- }
- }
- // View Image enlarged Note, sets up a seperate stage and scene with auto enlargment
- public void displayImg(ImageView imgViewPoped, String path) {
- Stage popOut = new Stage();
- Pane pane = new Pane();
- Scene scene = new Scene(pane, 1280, 900);
-
- imgViewPoped.setLayoutX(0);
- imgViewPoped.setLayoutY(0);
- imgViewPoped.fitWidthProperty().bind(pane.widthProperty());
- imgViewPoped.fitHeightProperty().bind(pane.heightProperty());
- pane.getChildren().addAll(imgViewPoped);
- popOut.setTitle(path);
- popOut.setScene(scene);
- popOut.show();
- }
- // Kill xwinwrap process
- @FXML void killXWinWrp(ActionEvent event) throws Exception {
- pb = Runtime.getRuntime().exec("killall xwinwrap &");
- pb.waitFor();
- }
- // Restart xwinwrap process
- @FXML void restartXWinWrp(ActionEvent event) throws Exception {
- pb = Runtime.getRuntime().exec("killall xwinwrap &");
- pb = Runtime.getRuntime().exec(startScrpt);
- pb.waitFor();
- }
- // Pass resolution values
- @FXML void passXScreenVal() {
- xScreenVal = "" + selXScreenSvr.getSelectionModel().getSelectedItem();
- }
- // Preliminary setup to save settings to files
- @FXML void saveToFile(ActionEvent saveEvent) throws Exception {
-
- // Saves to file with selected and needed settings
- if(filePathField.getText().toLowerCase().contains(".jpg") ||
- filePathField.getText().toLowerCase().contains(".jpeg") ||
- filePathField.getText().toLowerCase().contains(".png") ||
- filePathField.getText().toLowerCase().contains(".gif"))
- sveFileLoc = new File(System.getProperty("user.home") + "/" + ".config/nitrogen/bg-saved.cfg");
- else
- sveFileLoc = new File(System.getProperty("user.home") + "/" + listSaveLoc.getValue());
-
- fileWriter = new FileWriter(sveFileLoc);
- errorField.setText("");
- if (lftScrn.isSelected() == true && rghtScrn.isSelected() == true)
- errorField.setText("Please only check one...");
- else if (lftScrn.isSelected() == false && rghtScrn.isSelected() == false)
- errorField.setText("Please check one...");
- else if (lftScrn.isSelected() == true && rghtScrn.isSelected() == false) {
- resolution = "" + listLftRes.getValue();
- startSave();
- }
- else if (rghtScrn.isSelected() == true && lftScrn.isSelected() == false) {
- resolution = "" + listLftRes.getValue() + "" + listRgthRes.getValue();
- startSave();
- } else { startSave(); }
- }
- // Save settings to files
- void startSave() throws Exception {
- // XSCREENSAVER
- if (useXSvrn.isSelected() == true) {
- output = "xwinwrap -ov -g " + resolution + " -st -sp -b -nf -s -ni -- /usr/lib/xscreensaver/" + xScreenVal + " -window-id WID -root";
- fileWriter.write(output);
- applyType = 1;
- // GIF
- } else if (filePathField.getText().toLowerCase().contains(".gif")) {
- output = "xwinwrap -ov -g " + resolution + " -st -sp -b -nf -s -ni -- gifview -a -w WID " + filePathField.getText();
- fileWriter.write(output);
- applyType = 1;
- // Standard images using nitrogen
- } else if(filePathField.getText().toLowerCase().contains(".jpg") ||
- filePathField.getText().toLowerCase().contains(".png")) {
- output = "[xin_0] \n file=" + filePathField.getText() + "\nmode=0 \nbgcolor=#000000\n" +
- "[xin_1] \nfile=" + filePathField.getText() + "\nmode=0 \nbgcolor=#000000";
- fileWriter.write(output);
- applyType = 2;
- //VIDEO
- } else {
- output = "xwinwrap -ov -g " + resolution + " -st -sp -b -nf -s -ni -- mplayer -wid WID -nosound -loop 0 " + filePathField.getText();
- fileWriter.write(output);
- applyType = 1;
- }
- fileWriter.close();
- }
- // Run changes
- @FXML void applySttngs(ActionEvent event) throws Exception {
- pb = Runtime.getRuntime().exec("killall xwinwrap &");
- if (applyType == 1) {
- pb = Runtime.getRuntime().exec(startScrpt);
- pb.waitFor();
- } else if (applyType == 2) {
- pb = Runtime.getRuntime().exec("nitrogen --restore");
- pb.waitFor();
- } else
- pb = Runtime.getRuntime().exec("nitrogen --restore");
- pb.waitFor();
- }
- // Clean selection to start new search.
- @FXML void clearBttnClick(ActionEvent event) {
- thumbImgView.getChildren().clear();
- thumbImgView.getChildren().addAll(dirLbl);
- dirPathField.setText("");
- filePathField.setText("");
- }
- // Closes program
- @FXML void closeProg(ActionEvent event) { System.exit(0); }
-}
diff --git a/src/versions/v0.0.2/XWWMenu.java b/src/versions/v0.0.2/XWWMenu.java
deleted file mode 100644
index b604da1..0000000
--- a/src/versions/v0.0.2/XWWMenu.java
+++ /dev/null
@@ -1,19 +0,0 @@
-import javafx.application.Application;
-import javafx.fxml.FXMLLoader;
-import javafx.stage.Stage;
-import javafx.scene.Scene;
-import javafx.scene.layout.AnchorPane;
-
-
-public class XWWMenu extends Application {
- @Override
- public void start(Stage stage) throws Exception {
- Scene scene = new Scene(FXMLLoader.load(XWWMenu.class.getResource("resources/Window.fxml")));
- scene.getStylesheets().add("resources/stylesheet.css");
- stage.setScene(scene);
- stage.setTitle("XWinWrap Menu");
- stage.setResizable(false);
- stage.show();
- }
- public static void main(String[] args) { launch(args); }
-}
diff --git a/src/versions/v0.0.2/fxwinwrap_exec_bin.cpp b/src/versions/v0.0.2/fxwinwrap_exec_bin.cpp
deleted file mode 100644
index 4ea961e..0000000
--- a/src/versions/v0.0.2/fxwinwrap_exec_bin.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
-#include
-#include
-#include
-using namespace std;
-
-int main() {
- chdir("/opt/FXWinWrap/");
- system("bash launch.sh");
-return 0;
-}
diff --git a/src/versions/v0.0.2/launch.sh b/src/versions/v0.0.2/launch.sh
deleted file mode 100755
index c9fead3..0000000
--- a/src/versions/v0.0.2/launch.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-java XWWMenu
diff --git a/src/versions/v0.0.2/resources/Window.fxml b/src/versions/v0.0.2/resources/Window.fxml
deleted file mode 100644
index 2656efd..0000000
--- a/src/versions/v0.0.2/resources/Window.fxml
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/versions/v0.0.2/resources/bin/StartXWW.sh b/src/versions/v0.0.2/resources/bin/StartXWW.sh
deleted file mode 100755
index e276bde..0000000
--- a/src/versions/v0.0.2/resources/bin/StartXWW.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-
-### nohup is needed to keep child process alive from java's
-xterm -e nohup ~/.animatedBGstarter.sh >/dev/null 2>&1
-xterm -e nohup ~/.animatedBGstarter2.sh >/dev/null 2>&1
diff --git a/src/versions/v0.0.2/resources/bin/ffmpegthumbnailer b/src/versions/v0.0.2/resources/bin/ffmpegthumbnailer
deleted file mode 100755
index c35faf9..0000000
Binary files a/src/versions/v0.0.2/resources/bin/ffmpegthumbnailer and /dev/null differ
diff --git a/src/versions/v0.0.2/resources/stylesheet.css b/src/versions/v0.0.2/resources/stylesheet.css
deleted file mode 100644
index e91c2fe..0000000
--- a/src/versions/v0.0.2/resources/stylesheet.css
+++ /dev/null
@@ -1,3 +0,0 @@
-.root {
- -fx-background: rgba(68, 68, 68, 0.8); // == #444444;
-}