From c5b53652a9e4108e54a9616819c8bf11ff32d48c Mon Sep 17 00:00:00 2001 From: "kujiu (@uberwald)" Date: Fri, 8 Sep 2023 20:04:07 +0200 Subject: [PATCH] Add pms and browsh --- desktop/.config/browsh/config.toml | 114 ++++++++++++++++++++++++++ desktop/.config/pms/pms.conf | 127 +++++++++++++++++++++++++++++ 2 files changed, 241 insertions(+) create mode 100644 desktop/.config/browsh/config.toml create mode 100644 desktop/.config/pms/pms.conf diff --git a/desktop/.config/browsh/config.toml b/desktop/.config/browsh/config.toml new file mode 100644 index 0000000..927ba05 --- /dev/null +++ b/desktop/.config/browsh/config.toml @@ -0,0 +1,114 @@ + +# See; https://www.brow.sh/donate/ +# By showing your support you can disable the app's branding and nags to donate. +browsh_supporter = "I have shown my support for Browsh" + +# The page to show at startup. Browsh will fail to boot if this URL is not accessible +startup-url = "https://www.qwant.com" + +# The base query when a non-URL is entered into the URL bar +default_search_engine_base = "https://www.qwant.com/?q=" + +# The mobile user agent for forcing web pages to use their mobile layout +mobile_user_agent = "Mozilla/5.0 (Android 7.0; Mobile; rv:54.0) Gecko/58.0 Firefox/58.0" + +[browsh] # Browsh internals +websocket-port = 3334 + +# Possibly better handling of overlapping text in web pages. If a page seems to have +# text that shouldn't be visible, if it should be behind another element for example, +# then this experimental feature should help. It can also be toggled in-browser with F6. +use_experimental_text_visibility = false + +# Custom CSS to apply to all loaded tabs, eg; +# custom_css = """ +# body { +# background-colour: black; +# } +# """ +custom_css = """ +body { + background-color: #19233000; + color: #cdcecf; +} + +a { + color: #719cd6; +} +a:visited { + color: #9d79d6; +} +""" + +[firefox] +# The path to your Firefox binary +path = "firefox" +# Browsh has its own profile, seperate from the normal user's. But you can change that. +profile = "browsh-default" +# Don't let Browsh launch Firefox, but make it try to connect to an existing one. Note +# it will need to have been launched with the '--marionette' flag. +use-existing = false +# Launch Firefox in with its visible GUI window. Useful for setting up the Browsh profile. +with-gui = false + +# Config that you might usually set through Firefox's 'about:config' page +# Note that string must be wrapped in quotes +# preferences = [ +# "privacy.resistFingerprinting=true", +# "network.proxy.http='localhost'", +# "network.proxy.ssl='localhost'", +# "network.proxy.http_port=8118", +# "network.proxy.ssl_port=8118", +# "network.proxy.type=1" +# ] +preferences = [ + "browser.theme.content-theme=2", # Set dark mode + "browser.theme.toolbar-theme=2", + "ui.systemUsesDarkTheme=1", + "layout.css.prefers-color-scheme.content-override=0", +] + +[tty] +# The time in milliseconds between requesting a new TTY-sized pixel frame. +# This is essentially the frame rate for graphics. Lower values make for smoother +# animations and feedback, but also increases the CPU load. +small_pixel_frame_rate = 250 + +[http-server] +port = 4333 +bind = "0.0.0.0" + +# The time to wait in milliseconds after the DOM is ready before +# trying to parse and render the page's text. Too soon and text risks not being +# parsed, too long and you wait unecessarily. +render_delay = 100 + +# The length of time in seconds to wait before aborting the page load +timeout = 30 + +# The dimensions of a char-based window onto a webpage. +# The columns are ultimately the width of the final text. Whereas the rows +# represent the height of the original web page made visible to the original +# browser window. So the number of rows can effect things like how far down a +# web page images are lazy-loaded. +columns = 100 +rows = 30 + +# The amount of lossy JPG compression to apply to the background image of HTML +# pages. +jpeg_compression = 0.9 + +# Rate limit. For syntax, see: https://github.com/ulule/limiter +rate-limit = "100000000-M" + +# Blocking is useful if the HTTP server is made public. All values are evaluated as +# regular expressions. +blocked-domains = [ +] + +blocked-user-agents = [ +] + +# HTML snippets to show at top and bottom of final page. +header = "" +footer = "" diff --git a/desktop/.config/pms/pms.conf b/desktop/.config/pms/pms.conf new file mode 100644 index 0000000..e2d3d3c --- /dev/null +++ b/desktop/.config/pms/pms.conf @@ -0,0 +1,127 @@ +# Global options +set center +set columns=time,title,track,artist,album,year +set sort=file,track,disc,album,year,albumartistsort +set topbar="${tag|title}||$volume $mode;${tag|artist}||$elapsed ${state} $time;" + +# Song tag styles +style album @81b29a +style artist @dbc074 +style date @9d79d6 +style time @f4a261 +style title @dfdfe0 bold +style disc @d67ad2 +style track @63cdcf +style year @c94f6d +style originalyear @dbc074 + +# Tracklist styles +style allTagsMissing @c94f6d +style currentSong @131a24 bold @dbc074 +style cursor @63cdcf @2b3b51 +style header @719cd6 bold +style mostTagsMissing @c94f6d +style selection @131a24 @81b29a + +# Topbar styles +style elapsedTime @81b29a +style elapsedPercentage @81b29a +style listIndex @63cdcf +style listTitle @dfdfe0 bold +style listTotal @719cd6 +style mute @c94f6d +style shortName @9d79d6 bold +style state default +style switches @f4a261 +style tagMissing @c94f6d +style topbar @cdcecf +style version @738091 +style volume @81b29a + +# Other styles +style commandText default +style errorText @131a24 @c94f6d bold +style readout default +style searchText @d67ad2 bold +style sequenceText @dbc074 +style statusbar default +style visualText @dbc074 + +# Unbind some default keys +unbind # pause +unbind # stop + +# Keyboard bindings: cursor and viewport movement +bind cursor up +bind k cursor up +bind cursor down +bind j cursor down +bind viewport pgup +bind viewport pgdn +bind viewport pgup +bind viewport pgdn +bind viewport halfpgup +bind viewport halfpgdn +bind viewport up +bind viewport down +bind cursor home +bind gg cursor home +bind cursor end +bind G cursor end +bind gc cursor current +bind R cursor random +bind b cursor prevOf album +bind e cursor nextOf album +bind H cursor high +bind M cursor middle +bind L cursor low +bind zb viewport high +bind z- viewport high +bind zz viewport middle +bind z. viewport middle +bind zt viewport low +bind z viewport low + +# Keyboard bindings: input mode +bind : inputmode input +bind / inputmode search +bind inputmode search +bind v select visual +bind V select visual + +# Keyboard bindings: player and mixer +bind play selection +bind pause +bind stop +bind h previous +bind l next +bind + volume +2 +bind - volume -2 +bind seek -5 +bind seek +5 +bind volume mute +bind S single +bind Z random +bind C consume + +# Keyboard bindings: other +bind quit +bind redraw +bind sort +bind i print file +bind gt list next +bind gT list previous +bind t list next +bind T list previous +bind d list duplicate +bind list remove +bind isolate artist +bind isolate albumartist album +bind & select nearby albumartist album +bind m select toggle +bind a add +bind cut +bind x cut +bind y yank +bind p paste after +bind P paste before