summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2021-04-25 14:58:19 +0000
committerstkhan <personal@slickd.xyz>2021-04-25 14:58:19 +0000
commit99c885f477f8a06f1c4c6778e5fa9f2373a38e7b (patch)
tree57c641a4a889dc1b4ddec14981d0ee3880768b8e
parent417158d93fc6c0d9c1ac5abf0b608c606cff2396 (diff)
Added BSD 2-Clause license
-rw-r--r--LICENSE11
-rwxr-xr-xbin/power55
-rw-r--r--[-rwxr-xr-x]etc/blue.wallpaper.jpgbin3000322 -> 3000322 bytes
3 files changed, 66 insertions, 0 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..7d3d7d3
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,11 @@
+Copyright 2021 SkywalkerSW5
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
diff --git a/bin/power b/bin/power
new file mode 100755
index 0000000..4986d8d
--- /dev/null
+++ b/bin/power
@@ -0,0 +1,55 @@
+#!/bin/bash
+# By Ignacio Alba Obaya
+# https://aplicacionesysistemas.com
+
+# We created the varaible funcheck in which we store
+# order dialog with the option --separate-output
+funcheck =(dialog --separate-output --checklist "Select the groups they belong:" 0 0 0)
+
+# We define the options on the screen
+# appear lit the we have put on.
+options =(1 "option 1" on
+ 2 "option 2" off
+ 3 "option 3" off
+ 4 "option 4" off
+ 5 "option 5" on
+ 6 "option 6" off
+ 7 "option 7" off)
+
+# We create the function selections with options running funcheck
+# and forwards the output to the terminal for the next run
+# the commands
+selections = $("${funcheck[@]}" "${options[@]}" 2>&1 >/dev/tty)
+
+# clean the screen
+clear
+
+# add a for loop to run a command function
+# the selections can change the echo by
+# any commands or scripts
+for selection in $ selections
+do
+ $ selection in case
+ 1)
+ echo "You chose the option 1"
+ ;;
+ 2)
+ echo "You chose the option 2"
+ ;;
+ 3)
+ echo "You chose the option 3"
+ ;;
+ 4)
+ echo "You chose the option 4"
+ ;;
+ 5)
+ echo "You chose the option 5"
+ ;;
+ 6)
+ echo "You chose the option 6"
+ ;;
+ 7)
+ echo "You chose the option 7"
+ ;;
+ esac
+done
diff --git a/etc/blue.wallpaper.jpg b/etc/blue.wallpaper.jpg
index 0920b93..0920b93 100755..100644
--- a/etc/blue.wallpaper.jpg
+++ b/etc/blue.wallpaper.jpg
Binary files differ