diff --git a/bin/v0.1-5/fxwinwrap-0-1-4-x64.deb b/bin/v0.1-5/fxwinwrap-0-1-4-x64.deb new file mode 100644 index 0000000..68a3aac Binary files /dev/null and b/bin/v0.1-5/fxwinwrap-0-1-4-x64.deb differ diff --git a/bin/v0.1-5/fxwinwrap-0-1-4-x86.deb b/bin/v0.1-5/fxwinwrap-0-1-4-x86.deb new file mode 100644 index 0000000..1662cca Binary files /dev/null and b/bin/v0.1-5/fxwinwrap-0-1-4-x86.deb differ diff --git a/bin/v0.1-5/fxwinwrap-0-1-5-x64.deb b/bin/v0.1-5/fxwinwrap-0-1-5-x64.deb new file mode 100644 index 0000000..d499e43 Binary files /dev/null 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 new file mode 100644 index 0000000..c0a5aa2 Binary files /dev/null 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 c59afaa..e4c2030 100644 --- a/src/debs/build.sh +++ b/src/debs/build.sh @@ -4,24 +4,29 @@ function main() { sudo find . -type f -exec chmod 644 {} + sudo find . -type d -exec chmod 755 {} + - sudo chown -R root:root ./*/ # Set postrm permissions - for i in `find . -name postrm`; do - sudo chmod 555 "${i}" + for i in `find . -name postrm`; do + sudo chmod 755 "${i}" done # Set fxwinwrap permissions - for i in `find . -name fxwinwrap`; do + for i in `find . -name fxwinwrap`; do sudo chmod 755 "${i}" done # Set xwinwrap permissions - for i in `find . -name xwinwrap`; do + for i in `find . -name xwinwrap`; do 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 ./*/ builder; } diff --git a/src/debs/fxwinwrap-0-1-1-x64/bin/fxwinwrap b/src/debs/fxwinwrap-0-1-1-x64/bin/fxwinwrap deleted file mode 100755 index 99efd97..0000000 Binary files a/src/debs/fxwinwrap-0-1-1-x64/bin/fxwinwrap and /dev/null differ diff --git a/src/debs/fxwinwrap-0-1-2-x86/bin/fxwinwrap b/src/debs/fxwinwrap-0-1-2-x86/bin/fxwinwrap deleted file mode 100755 index 99efd97..0000000 Binary files a/src/debs/fxwinwrap-0-1-2-x86/bin/fxwinwrap and /dev/null differ diff --git a/src/debs/fxwinwrap-0-1-3-x64/bin/fxwinwrap b/src/debs/fxwinwrap-0-1-3-x64/bin/fxwinwrap deleted file mode 100755 index 99efd97..0000000 Binary files a/src/debs/fxwinwrap-0-1-3-x64/bin/fxwinwrap and /dev/null differ diff --git a/src/debs/fxwinwrap-0-1-3-x64/bin/xwinwrap b/src/debs/fxwinwrap-0-1-3-x64/bin/xwinwrap deleted file mode 100755 index 854eba6..0000000 Binary files a/src/debs/fxwinwrap-0-1-3-x64/bin/xwinwrap and /dev/null differ diff --git a/src/debs/fxwinwrap-0-1-3-x86/bin/xwinwrap b/src/debs/fxwinwrap-0-1-3-x86/bin/xwinwrap deleted file mode 100755 index 854eba6..0000000 Binary files a/src/debs/fxwinwrap-0-1-3-x86/bin/xwinwrap and /dev/null differ diff --git a/src/debs/fxwinwrap-0-1-4-x64/bin/xwinwrap b/src/debs/fxwinwrap-0-1-4-x64/bin/xwinwrap deleted file mode 100755 index 854eba6..0000000 Binary files a/src/debs/fxwinwrap-0-1-4-x64/bin/xwinwrap and /dev/null differ diff --git a/src/debs/fxwinwrap-0-1-4-x86/bin/xwinwrap b/src/debs/fxwinwrap-0-1-4-x86/bin/xwinwrap deleted file mode 100755 index 854eba6..0000000 Binary files a/src/debs/fxwinwrap-0-1-4-x86/bin/xwinwrap and /dev/null differ diff --git a/src/debs/fxwinwrap-0-1-5-x64/DEBIAN/control b/src/debs/fxwinwrap-0-1-5-x64/DEBIAN/control new file mode 100644 index 0000000..9add1eb --- /dev/null +++ b/src/debs/fxwinwrap-0-1-5-x64/DEBIAN/control @@ -0,0 +1,8 @@ +Package: fxwinwrap64 +Version: 0.1-5 +Section: java +Priority: optional +Architecture: amd64 +Depends: openjdk-8-jre (>= 8u45-b14-1), openjfx (>= 8u60-b27-4), ffmpegthumbnailer (>= 2.0.10-0.1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2) +Maintainer: Maxim Stewart <1itdominator@gmail.com> +Description: FXWinWrap is a GUI to handle setting XWinWrap options. diff --git a/src/debs/fxwinwrap-0-1-5-x64/DEBIAN/postrm b/src/debs/fxwinwrap-0-1-5-x64/DEBIAN/postrm new file mode 100755 index 0000000..4e2c455 --- /dev/null +++ b/src/debs/fxwinwrap-0-1-5-x64/DEBIAN/postrm @@ -0,0 +1,16 @@ +#!/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 /opt/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-5-x64/bin/fxwinwrap b/src/debs/fxwinwrap-0-1-5-x64/bin/fxwinwrap new file mode 100755 index 0000000..a0bf3f5 Binary files /dev/null and b/src/debs/fxwinwrap-0-1-5-x64/bin/fxwinwrap differ diff --git a/src/debs/fxwinwrap-0-1-5-x64/opt/FXWinWrap/FXWinWrap.jar b/src/debs/fxwinwrap-0-1-5-x64/opt/FXWinWrap/FXWinWrap.jar new file mode 100644 index 0000000..e24c015 Binary files /dev/null and b/src/debs/fxwinwrap-0-1-5-x64/opt/FXWinWrap/FXWinWrap.jar differ diff --git a/src/debs/fxwinwrap-0-1-5-x64/opt/FXWinWrap/FXWinWrap.png b/src/debs/fxwinwrap-0-1-5-x64/opt/FXWinWrap/FXWinWrap.png new file mode 100644 index 0000000..cdd708d Binary files /dev/null and b/src/debs/fxwinwrap-0-1-5-x64/opt/FXWinWrap/FXWinWrap.png differ diff --git a/src/debs/fxwinwrap-0-1-5-x64/opt/FXWinWrap/launch.sh b/src/debs/fxwinwrap-0-1-5-x64/opt/FXWinWrap/launch.sh new file mode 100644 index 0000000..5b48d7a --- /dev/null +++ b/src/debs/fxwinwrap-0-1-5-x64/opt/FXWinWrap/launch.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +function main() { + java -Xms32m -Xmx100m -jar FXWinWrap.jar +} +main; diff --git a/src/debs/fxwinwrap-0-1-5-x64/usr/share/applications/FXWinWrap.desktop b/src/debs/fxwinwrap-0-1-5-x64/usr/share/applications/FXWinWrap.desktop new file mode 100644 index 0000000..a01d94e --- /dev/null +++ b/src/debs/fxwinwrap-0-1-5-x64/usr/share/applications/FXWinWrap.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=FXWinWrap +Comment=JavaFX gui for XWinWrap +Exec=/bin/fxwinwrap +Icon=/opt/FXWinWrap/FXWinWrap.png +Terminal=false +Type=Application +Categories=System; +MimeType=application/fxml; diff --git a/src/debs/fxwinwrap-0-1-5-x64/usr/share/doc/fxwinwrap/copyright b/src/debs/fxwinwrap-0-1-5-x64/usr/share/doc/fxwinwrap/copyright new file mode 100644 index 0000000..03e69e2 --- /dev/null +++ b/src/debs/fxwinwrap-0-1-5-x64/usr/share/doc/fxwinwrap/copyright @@ -0,0 +1,22 @@ +FXWinWrap is copyright 2016, 2017 Maxim Stewart. +FXWinWrap is currently developed by ITDominator <1itdominator@gmail.com>. + +License: GPLv2+ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +See /usr/share/common-licenses/GPL-2, or + for the terms of the latest version +of the GNU General Public License. diff --git a/src/debs/fxwinwrap-0-1-5-x86/DEBIAN/control b/src/debs/fxwinwrap-0-1-5-x86/DEBIAN/control new file mode 100644 index 0000000..6966b7f --- /dev/null +++ b/src/debs/fxwinwrap-0-1-5-x86/DEBIAN/control @@ -0,0 +1,8 @@ +Package: fxwinwrap +Version: 0.1-5 +Section: java +Priority: optional +Architecture: i386 +Depends: openjdk-8-jre (>= 8u45-b14-1), openjfx (>= 8u60-b27-4), ffmpegthumbnailer (>= 2.0.10-0.1), mplayer2 (>=2.0-728-g2c378c7-4), gifsicle (>=1.86-1), nitrogen (>=1.5.2-2) +Maintainer: Maxim Stewart <1itdominator@gmail.com> +Description: FXWinWrap is a GUI to handle setting XWinWrap options. diff --git a/src/debs/fxwinwrap-0-1-5-x86/DEBIAN/postrm b/src/debs/fxwinwrap-0-1-5-x86/DEBIAN/postrm new file mode 100755 index 0000000..4e2c455 --- /dev/null +++ b/src/debs/fxwinwrap-0-1-5-x86/DEBIAN/postrm @@ -0,0 +1,16 @@ +#!/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 /opt/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-5-x86/opt/FXWinWrap/FXWinWrap.jar b/src/debs/fxwinwrap-0-1-5-x86/opt/FXWinWrap/FXWinWrap.jar new file mode 100644 index 0000000..e24c015 Binary files /dev/null and b/src/debs/fxwinwrap-0-1-5-x86/opt/FXWinWrap/FXWinWrap.jar differ diff --git a/src/debs/fxwinwrap-0-1-5-x86/opt/FXWinWrap/FXWinWrap.png b/src/debs/fxwinwrap-0-1-5-x86/opt/FXWinWrap/FXWinWrap.png new file mode 100644 index 0000000..cdd708d Binary files /dev/null and b/src/debs/fxwinwrap-0-1-5-x86/opt/FXWinWrap/FXWinWrap.png differ diff --git a/src/debs/fxwinwrap-0-1-5-x86/opt/FXWinWrap/launch.sh b/src/debs/fxwinwrap-0-1-5-x86/opt/FXWinWrap/launch.sh new file mode 100644 index 0000000..5b48d7a --- /dev/null +++ b/src/debs/fxwinwrap-0-1-5-x86/opt/FXWinWrap/launch.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +function main() { + java -Xms32m -Xmx100m -jar FXWinWrap.jar +} +main; diff --git a/src/debs/fxwinwrap-0-1-5-x86/usr/share/applications/FXWinWrap.desktop b/src/debs/fxwinwrap-0-1-5-x86/usr/share/applications/FXWinWrap.desktop new file mode 100644 index 0000000..a01d94e --- /dev/null +++ b/src/debs/fxwinwrap-0-1-5-x86/usr/share/applications/FXWinWrap.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=FXWinWrap +Comment=JavaFX gui for XWinWrap +Exec=/bin/fxwinwrap +Icon=/opt/FXWinWrap/FXWinWrap.png +Terminal=false +Type=Application +Categories=System; +MimeType=application/fxml; diff --git a/src/versions/v0.0.4/Controller.java b/src/versions/v0.0.4/Controller.java index d4a9616..964616f 100644 --- a/src/versions/v0.0.4/Controller.java +++ b/src/versions/v0.0.4/Controller.java @@ -25,8 +25,8 @@ import javafx.beans.value.ObservableValue; public class Controller { - private DirectoryChooser folderChooser = new DirectoryChooser(); // Selects a dir - private FileWriter fileWriter; // Writes to files + private DirectoryChooser folderChooser = new DirectoryChooser(); // Selects a dir + private FileWriter fileWriter; // Writes to files private File directory, sveFileLoc; // Path to file or dir private File[] fileList; private Image pth = new Image("."); // Path to image @@ -64,7 +64,7 @@ public class Controller { textAreaPth = dirPathField.getText(); System.out.println(textAreaPth); newDir(); - } else {} + } else {} } // Scan selected dir @@ -84,25 +84,25 @@ public class Controller { fileList = directory.listFiles(); dirPathField.setText("" + directory); - for (int i=0; i() { @Override public Void call() { - newDir2(); - return null; + newDir2(); + return null; }}; new Thread(getDir).start(); } public void newDir2() { - for (int i=0; i { - if (mouse.getClickCount() == 2 && !mouse.isConsumed()) { + if (mouse.getClickCount() == 2 && !mouse.isConsumed()) { mouse.consume(); - try { - pb = Runtime.getRuntime().exec(vExec); - } catch(IOException vidIOErr) { - throw new UncheckedIOException(vidIOErr); - } - } - filePathField.setText(path); + try { + pb = Runtime.getRuntime().exec(vExec); + } catch(IOException vidIOErr) { + throw new UncheckedIOException(vidIOErr); + } + } + filePathField.setText(path); }); } else if(tmpP.toLowerCase().matches("^.*?(png|jpg|jpeg|gif).*$")) { ImageView view = (ImageView) (tilePane.getChildren().get(i)); - String title = "file://" + fileList[i]; + String title = "file://" + fileList[i]; pth = new Image(title); Platform.runLater(new Runnable() { @Override public void run() { view.setImage(pth); } }); - final ImageView imgViewPoped = new ImageView(title); - // image click actions + final ImageView imgViewPoped = new ImageView(title); + // image click actions view.setOnMouseClicked(mouse -> { - if (mouse.getClickCount() == 2 && !mouse.isConsumed()) { - mouse.consume(); - displayImg(imgViewPoped, title); - } + if (mouse.getClickCount() == 2 && !mouse.isConsumed()) { + mouse.consume(); + displayImg(imgViewPoped, title); + } filePathField.setText(path); - }); - } else { System.out.println("Not a video or image file."); } + }); + } else { System.out.println("Not a video or image file."); } } } // Open image in new window @@ -187,7 +187,6 @@ public class Controller { } // 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().matches("^.*?(png|jpg|jpeg|gif).*$")) sveFileLoc = new File(System.getProperty("user.home") + "/" + ".config/nitrogen/bg-saved.cfg"); diff --git a/src/versions/v0.0.5/FXWinWrap/buildJar.sh b/src/versions/v0.0.5/FXWinWrap/buildJar.sh new file mode 100755 index 0000000..03b8737 --- /dev/null +++ b/src/versions/v0.0.5/FXWinWrap/buildJar.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +function main() { + jar cvfm FXWinWrap.jar manifest.txt com/itdominator/fxwinwrap/*.class \ + com/itdominator/fxwinwrap/resources + chmod +x FXWinWrap.jar + mv FXWinWrap.jar ../ +} +main; diff --git a/src/versions/v0.0.5/FXWinWrap/com/itdominator/fxwinwrap/Controller$1.class b/src/versions/v0.0.5/FXWinWrap/com/itdominator/fxwinwrap/Controller$1.class new file mode 100644 index 0000000..8cd898c Binary files /dev/null and b/src/versions/v0.0.5/FXWinWrap/com/itdominator/fxwinwrap/Controller$1.class differ diff --git a/src/versions/v0.0.5/FXWinWrap/com/itdominator/fxwinwrap/Controller$2.class b/src/versions/v0.0.5/FXWinWrap/com/itdominator/fxwinwrap/Controller$2.class new file mode 100644 index 0000000..2318468 Binary files /dev/null and b/src/versions/v0.0.5/FXWinWrap/com/itdominator/fxwinwrap/Controller$2.class differ diff --git a/src/versions/v0.0.5/FXWinWrap/com/itdominator/fxwinwrap/Controller$3.class b/src/versions/v0.0.5/FXWinWrap/com/itdominator/fxwinwrap/Controller$3.class new file mode 100644 index 0000000..0d8fb79 Binary files /dev/null and b/src/versions/v0.0.5/FXWinWrap/com/itdominator/fxwinwrap/Controller$3.class differ diff --git a/src/versions/v0.0.5/FXWinWrap/com/itdominator/fxwinwrap/Controller.class b/src/versions/v0.0.5/FXWinWrap/com/itdominator/fxwinwrap/Controller.class new file mode 100644 index 0000000..b51eafe Binary files /dev/null and b/src/versions/v0.0.5/FXWinWrap/com/itdominator/fxwinwrap/Controller.class differ diff --git a/src/versions/v0.0.5/FXWinWrap/com/itdominator/fxwinwrap/FXWinWrap.class b/src/versions/v0.0.5/FXWinWrap/com/itdominator/fxwinwrap/FXWinWrap.class new file mode 100644 index 0000000..095061d Binary files /dev/null and b/src/versions/v0.0.5/FXWinWrap/com/itdominator/fxwinwrap/FXWinWrap.class differ diff --git a/src/versions/v0.0.5/FXWinWrap/com/itdominator/fxwinwrap/resources/FXWinWrap.fxml b/src/versions/v0.0.5/FXWinWrap/com/itdominator/fxwinwrap/resources/FXWinWrap.fxml new file mode 100644 index 0000000..c511502 --- /dev/null +++ b/src/versions/v0.0.5/FXWinWrap/com/itdominator/fxwinwrap/resources/FXWinWrap.fxml @@ -0,0 +1,175 @@ + + + + + + + + + + + + + + + + + + + + + +