Compare commits

...

6 Commits

5 changed files with 34 additions and 1 deletions

View File

@ -28,6 +28,8 @@
#define ZOOM 1 /* Starting zoom level */
#define ZOOM_VAL .1 /* Zooming value in zoomin/zoomout functions */
#define BG_COLOR "#1E1E2E"
#define WIDTH 500
#define HEIGHT 400
typedef enum {
goback,
@ -74,3 +76,4 @@ static struct {
{ CTRL, KEY(n), finder_next },
{ CTRL | SFT, KEY(N), finder_prev }
};

6
rose.c
View File

@ -297,14 +297,18 @@ void setup(GtkNotebook *notebook, const char *uri)
search_buf = GTK_ENTRY_BUFFER(gtk_entry_buffer_new("", 0));
search = GTK_ENTRY(gtk_entry_new_with_buffer(search_buf));
// gtk_window_fullscreen(window);
gtk_window_set_default_size(window, WIDTH, HEIGHT);
// gtk_window_set_resizable (window, FALSE);
window_init(notebook);
notebook_init(notebook, uri);
g_object_set(gtk_settings_get_default(), GTK, NULL);
gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(notebook));
gtk_widget_show_all(GTK_WIDGET(window));
gtk_widget_hide(GTK_WIDGET(bar));
webkit_web_view_set_zoom_level(notebook_get_webview(notebook), ZOOM);
}
int main(int argc, char **argv)

9
ubuntu-stuff/rose.desktop Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec= /usr/bin/rose "https://duckduckgo.com"
Name=Rose
Comment=Minimalistic browser
Icon=/home/loki/Documents/core/software/fresh/linux/rose/ubuntu-stuff/rose.png

BIN
ubuntu-stuff/rose.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 625 KiB

View File

@ -0,0 +1,17 @@
sudo apt install libwebkit2gtk-4.0-dev
sudo apt install clang
# sudo apt instal sudo apt install gstreamer1.0-plugins-good gstreamer1.0-libav
git clone https://github.com/jun7/wyebadblock
cd wyebadblock
make
sudo make install
user="loki"
cp config.def.h config.h
sed "s/fenze/$user/g" config.h
./install.sh
chmod +x ./ubuntu-stuff/rose.desktop
cp ./ubuntu-stuff/rose.desktop /usr/share/applications