2023-11-14 22:42:47 +00:00
|
|
|
# Key dependencies
|
|
|
|
sudo apt install git vim gcc make
|
2024-03-12 16:32:34 +00:00
|
|
|
sudo apt install libwebkit2gtk-4.1-dev
|
2023-11-14 22:42:47 +00:00
|
|
|
|
|
|
|
# Optional adblock
|
|
|
|
git clone https://github.com/jun7/wyebadblock
|
|
|
|
cd wyebadblock
|
|
|
|
sudo apt install gstreamer1.0-plugins-good gstreamer1.0-libav
|
2024-03-12 19:11:26 +00:00
|
|
|
WEBKITVER=4.1 make
|
|
|
|
sudo WEBKITVER=4.1 make install
|
|
|
|
|
2023-11-14 22:42:47 +00:00
|
|
|
cd ..
|
|
|
|
mkdir -p ~/.config/wyebadblock
|
|
|
|
cd ~/.config/wyebadblock
|
|
|
|
wget https://easylist.to/easylist/easylist.txt
|
|
|
|
cd -
|
|
|
|
|
|
|
|
cd ../..
|
|
|
|
make build # or just make
|
|
|
|
sudo make install
|
|
|
|
|
|
|
|
cd -
|
2024-03-12 19:11:26 +00:00
|
|
|
# Debian desktop icon
|
2024-03-14 18:47:36 +00:00
|
|
|
chmod +x rosenrot.desktop
|
|
|
|
sudo cp rosenrot.desktop /usr/share/applications
|
2024-03-14 22:31:04 +00:00
|
|
|
mkdir -p /opt/rosenrot
|
|
|
|
sudo cp rosenrot-desktop-icon.png /opt/rosenrot/
|
2024-03-14 18:59:51 +00:00
|
|
|
|
|
|
|
# Optionally, set a shortcut (within GNOME)
|
|
|
|
# https://askubuntu.com/questions/597395/how-to-set-custom-keyboard-shortcuts-from-terminal/1007035#1007035
|
|
|
|
name="rose"
|
|
|
|
binding="<CTRL><SHIFT>W"
|
|
|
|
action="/usr/bin/rosenrot"
|
|
|
|
|
|
|
|
media_keys=org.gnome.settings-daemon.plugins.media-keys
|
|
|
|
custom_kbd=org.gnome.settings-daemon.plugins.media-keys.custom-keybinding
|
|
|
|
kbd_path=/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/$name/
|
|
|
|
new_bindings=`gsettings get $media_keys custom-keybindings | sed -e"s>'\]>','$kbd_path']>"| sed -e"s>@as \[\]>['$kbd_path']>"`
|
|
|
|
gsettings set $media_keys custom-keybindings "$new_bindings"
|
|
|
|
gsettings set $custom_kbd:$kbd_path name "$name"
|
|
|
|
gsettings set $custom_kbd:$kbd_path binding "$binding"
|
|
|
|
gsettings set $custom_kbd:$kbd_path command "$action"
|