aboutsummaryrefslogtreecommitdiff
path: root/extra/user-scripts
diff options
context:
space:
mode:
authorNunoSempere <nuno.sempere@protonmail.com>2023-03-28 11:18:54 -0600
committerNunoSempere <nuno.sempere@protonmail.com>2023-03-28 11:18:54 -0600
commitca59138a2aef96960381f986b8c683634e4d8e63 (patch)
tree16c62f8a2b3bfe7ad55053294095f70a85d19613 /extra/user-scripts
parentcc959fda4fac18f1c429158d1ffea24692276310 (diff)
tweak: move things around
Diffstat (limited to 'extra/user-scripts')
-rw-r--r--extra/user-scripts/artifacts/compile_flags/compile_flags.txt27
-rw-r--r--extra/user-scripts/artifacts/compile_flags/get-compile-flags.sh5
-rw-r--r--extra/user-scripts/styles/images/style-nuno.pngbin0 -> 182500 bytes
-rw-r--r--extra/user-scripts/styles/images/style-original.pngbin0 -> 178824 bytes
-rw-r--r--extra/user-scripts/styles/style-nuno.css52
-rw-r--r--extra/user-scripts/styles/style-original.css37
-rw-r--r--extra/user-scripts/ubuntu-20.04/install-with-dependencies.sh27
-rw-r--r--extra/user-scripts/ubuntu-20.04/rose-images/rose-1.pngbin0 -> 640116 bytes
-rw-r--r--extra/user-scripts/ubuntu-20.04/rose-images/rose-2.pngbin0 -> 485022 bytes
-rw-r--r--extra/user-scripts/ubuntu-20.04/rose-images/rose-desktop-icon.pngbin0 -> 756923 bytes
-rw-r--r--extra/user-scripts/ubuntu-20.04/rose-images/rose-homepage.pngbin0 -> 485022 bytes
-rw-r--r--extra/user-scripts/ubuntu-20.04/rose-images/rose-src.txt1
-rwxr-xr-xextra/user-scripts/ubuntu-20.04/rose.desktop9
-rw-r--r--extra/user-scripts/valgrind-notes.md9
14 files changed, 167 insertions, 0 deletions
diff --git a/extra/user-scripts/artifacts/compile_flags/compile_flags.txt b/extra/user-scripts/artifacts/compile_flags/compile_flags.txt
new file mode 100644
index 0000000..7fd8daf
--- /dev/null
+++ b/extra/user-scripts/artifacts/compile_flags/compile_flags.txt
@@ -0,0 +1,27 @@
+-I/usr/include/webkitgtk-4.0
+-I/usr/include/glib-2.0
+-I/usr/lib/glib-2.0/include
+-I/usr/include/sysprof-4
+-I/usr/include/gtk-3.0
+-I/usr/include/pango-1.0
+-I/usr/include/harfbuzz
+-I/usr/include/freetype2
+-I/usr/include/libpng16
+-I/usr/include/libmount
+-I/usr/include/blkid
+-I/usr/include/fribidi
+-I/usr/include/cairo
+-I/usr/include/lzo
+-I/usr/include/pixman-1
+-I/usr/include/gdk-pixbuf-2.0
+-I/usr/include/gio-unix-2.0
+-I/usr/include/cloudproviders
+-I/usr/include/atk-1.0
+-I/usr/include/at-spi2-atk/2.0
+-I/usr/include/at-spi-2.0
+-I/usr/include/dbus-1.0
+-I/usr/lib/dbus-1.0/include
+-I/usr/include/libsoup-2.4
+-I/usr/include/libxml2
+-pthread
+
diff --git a/extra/user-scripts/artifacts/compile_flags/get-compile-flags.sh b/extra/user-scripts/artifacts/compile_flags/get-compile-flags.sh
new file mode 100644
index 0000000..aaa9e01
--- /dev/null
+++ b/extra/user-scripts/artifacts/compile_flags/get-compile-flags.sh
@@ -0,0 +1,5 @@
+DEPS='webkit2gtk-4.0'
+INCS=`pkg-config --cflags ${DEPS}`
+LIBS=`pkg-config --libs ${DEPS}`
+echo $INCS
+echo $LIBS
diff --git a/extra/user-scripts/styles/images/style-nuno.png b/extra/user-scripts/styles/images/style-nuno.png
new file mode 100644
index 0000000..e9e6bbe
--- /dev/null
+++ b/extra/user-scripts/styles/images/style-nuno.png
Binary files differ
diff --git a/extra/user-scripts/styles/images/style-original.png b/extra/user-scripts/styles/images/style-original.png
new file mode 100644
index 0000000..65c7ffb
--- /dev/null
+++ b/extra/user-scripts/styles/images/style-original.png
Binary files differ
diff --git a/extra/user-scripts/styles/style-nuno.css b/extra/user-scripts/styles/style-nuno.css
new file mode 100644
index 0000000..c7c07b6
--- /dev/null
+++ b/extra/user-scripts/styles/style-nuno.css
@@ -0,0 +1,52 @@
+@define-color Surface0 #313244;
+@define-color Surface1 #45475a;
+@define-color Base #1e1e2e;
+@define-color Mantle #181825;
+@define-color Lavender #b4befe;
+@define-color Text #cdd6f4;
+
+* {
+ padding: 0px;
+ margin: 0px;
+ outline-color: @Lavender;
+ color: @Text;
+ border-color: white;
+ font-size: 16px;
+ /*@Base; */
+ /* border-bottom-color: @Base; */
+}
+
+window, notebook, headerbar {
+ background: @Base;
+}
+
+tabs {
+ background-color: @Base;
+ padding: 3px;
+ outline-color: white;
+ border-color: @Base;
+}
+
+tab {
+ background-color: @Base;
+ margin: 2px 5px 2px 0px;
+ padding: 5px;
+ border-style: solid;
+ /*border-color: white;
+ border-bottom-color: white;
+ outline-color: white;
+ margin: 5px;
+ padding-left: 10px;
+ padding-right: 10px; */
+}
+
+entry {
+ background-color: @Surface0;
+ padding-left: 10px;
+}
+
+entry:focus {
+ background-color: @Surface0;
+ padding-left: 10px;
+
+}
diff --git a/extra/user-scripts/styles/style-original.css b/extra/user-scripts/styles/style-original.css
new file mode 100644
index 0000000..45805d7
--- /dev/null
+++ b/extra/user-scripts/styles/style-original.css
@@ -0,0 +1,37 @@
+@define-color Surface0 #313244;
+@define-color Surface1 #45475a;
+@define-color Base #1e1e2e;
+@define-color Mantle #181825;
+@define-color Lavender #b4befe;
+@define-color Text #cdd6f4;
+
+* {
+ padding: 0px;
+ margin: 0px;
+ outline-color: @Lavender;
+ color: @Text;
+ border-bottom-color: @Base;
+}
+
+window, notebook, headerbar {
+ background: @Base;
+}
+
+tabs {
+ background-color: @Base;
+ padding: 3px;
+}
+
+tab {
+ background-color: @Base;
+ margin: 5px;
+}
+
+entry {
+ background-color: @Surface0;
+ padding-left: 10px;
+}
+
+entry:focus {
+ box-shadow: none;
+}
diff --git a/extra/user-scripts/ubuntu-20.04/install-with-dependencies.sh b/extra/user-scripts/ubuntu-20.04/install-with-dependencies.sh
new file mode 100644
index 0000000..940abe1
--- /dev/null
+++ b/extra/user-scripts/ubuntu-20.04/install-with-dependencies.sh
@@ -0,0 +1,27 @@
+# Dependencies
+sudo apt install libwebkit2gtk-4.0-dev
+sudo apt install clang
+# sudo apt instal sudo apt install gstreamer1.0-plugins-good gstreamer1.0-libav
+
+# Adblock
+git clone https://github.com/jun7/wyebadblock
+cd wyebadblock
+make
+sudo make install
+cd ..
+
+# Rose config
+user=$(whoami)
+mkdir -p /home/$user/.cache/rose
+cp ../../config.def.h ../../config.h # you should also probably customize this yourself.
+sed "s/fenze/$user/g" ../../config.h
+
+# sudo bash ../../install.sh
+cd ../..
+make build # or just make
+sudo make install
+
+cd -
+# Ubuntu desktop icon
+chmod +x rose.desktop
+sudo cp rose.desktop /usr/share/applications
diff --git a/extra/user-scripts/ubuntu-20.04/rose-images/rose-1.png b/extra/user-scripts/ubuntu-20.04/rose-images/rose-1.png
new file mode 100644
index 0000000..f2c546a
--- /dev/null
+++ b/extra/user-scripts/ubuntu-20.04/rose-images/rose-1.png
Binary files differ
diff --git a/extra/user-scripts/ubuntu-20.04/rose-images/rose-2.png b/extra/user-scripts/ubuntu-20.04/rose-images/rose-2.png
new file mode 100644
index 0000000..9944beb
--- /dev/null
+++ b/extra/user-scripts/ubuntu-20.04/rose-images/rose-2.png
Binary files differ
diff --git a/extra/user-scripts/ubuntu-20.04/rose-images/rose-desktop-icon.png b/extra/user-scripts/ubuntu-20.04/rose-images/rose-desktop-icon.png
new file mode 100644
index 0000000..163494f
--- /dev/null
+++ b/extra/user-scripts/ubuntu-20.04/rose-images/rose-desktop-icon.png
Binary files differ
diff --git a/extra/user-scripts/ubuntu-20.04/rose-images/rose-homepage.png b/extra/user-scripts/ubuntu-20.04/rose-images/rose-homepage.png
new file mode 100644
index 0000000..9944beb
--- /dev/null
+++ b/extra/user-scripts/ubuntu-20.04/rose-images/rose-homepage.png
Binary files differ
diff --git a/extra/user-scripts/ubuntu-20.04/rose-images/rose-src.txt b/extra/user-scripts/ubuntu-20.04/rose-images/rose-src.txt
new file mode 100644
index 0000000..30650de
--- /dev/null
+++ b/extra/user-scripts/ubuntu-20.04/rose-images/rose-src.txt
@@ -0,0 +1 @@
+<https://www.onlygfx.com/red-rose-png-image-transparent/>
diff --git a/extra/user-scripts/ubuntu-20.04/rose.desktop b/extra/user-scripts/ubuntu-20.04/rose.desktop
new file mode 100755
index 0000000..80a5176
--- /dev/null
+++ b/extra/user-scripts/ubuntu-20.04/rose.desktop
@@ -0,0 +1,9 @@
+#!/usr/bin/env xdg-open
+[Desktop Entry]
+Version=1.0
+Type=Application
+Terminal=false
+Exec= /usr/bin/rose %u
+Name=Rose
+Comment=Minimalistic browser
+Icon=/home/loki/Documents/core/software/fresh/C/rose-browser/rosenrot/user-scripts/ubuntu-20.04/rose-images/rose-desktop-icon.png
diff --git a/extra/user-scripts/valgrind-notes.md b/extra/user-scripts/valgrind-notes.md
new file mode 100644
index 0000000..1fa2e1d
--- /dev/null
+++ b/extra/user-scripts/valgrind-notes.md
@@ -0,0 +1,9 @@
+In case you arrive at a segmentation fault when working on rose, you can use valgrind.
+
+To do this, you can compile rose with the `DEBUG` value in `build.sh` set to `-g`
+
+and then:
+
+```
+valgrind --track-origins=yes ./rose
+```