Add pms and browsh
This commit is contained in:
parent
8792abdfdc
commit
c5b53652a9
2 changed files with 241 additions and 0 deletions
114
desktop/.config/browsh/config.toml
Normal file
114
desktop/.config/browsh/config.toml
Normal file
|
@ -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 = ""
|
127
desktop/.config/pms/pms.conf
Normal file
127
desktop/.config/pms/pms.conf
Normal file
|
@ -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 <Space> # pause
|
||||||
|
unbind <s> # stop
|
||||||
|
|
||||||
|
# Keyboard bindings: cursor and viewport movement
|
||||||
|
bind <Up> cursor up
|
||||||
|
bind k cursor up
|
||||||
|
bind <Down> cursor down
|
||||||
|
bind j cursor down
|
||||||
|
bind <PgUp> viewport pgup
|
||||||
|
bind <PgDn> viewport pgdn
|
||||||
|
bind <C-b> viewport pgup
|
||||||
|
bind <C-f> viewport pgdn
|
||||||
|
bind <C-u> viewport halfpgup
|
||||||
|
bind <C-d> viewport halfpgdn
|
||||||
|
bind <C-y> viewport up
|
||||||
|
bind <C-e> viewport down
|
||||||
|
bind <Home> cursor home
|
||||||
|
bind gg cursor home
|
||||||
|
bind <End> 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<Enter> viewport low
|
||||||
|
|
||||||
|
# Keyboard bindings: input mode
|
||||||
|
bind : inputmode input
|
||||||
|
bind / inputmode search
|
||||||
|
bind <F3> inputmode search
|
||||||
|
bind v select visual
|
||||||
|
bind V select visual
|
||||||
|
|
||||||
|
# Keyboard bindings: player and mixer
|
||||||
|
bind <Enter> play selection
|
||||||
|
bind <C-p> pause
|
||||||
|
bind <C-S> stop
|
||||||
|
bind h previous
|
||||||
|
bind l next
|
||||||
|
bind + volume +2
|
||||||
|
bind - volume -2
|
||||||
|
bind <left> seek -5
|
||||||
|
bind <right> seek +5
|
||||||
|
bind <Alt-M> volume mute
|
||||||
|
bind S single
|
||||||
|
bind Z random
|
||||||
|
bind C consume
|
||||||
|
|
||||||
|
# Keyboard bindings: other
|
||||||
|
bind <C-c> quit
|
||||||
|
bind <C-l> redraw
|
||||||
|
bind <C-s> sort
|
||||||
|
bind i print file
|
||||||
|
bind gt list next
|
||||||
|
bind gT list previous
|
||||||
|
bind t list next
|
||||||
|
bind T list previous
|
||||||
|
bind <C-w>d list duplicate
|
||||||
|
bind <C-g> list remove
|
||||||
|
bind <C-j> isolate artist
|
||||||
|
bind <C-t> isolate albumartist album
|
||||||
|
bind & select nearby albumartist album
|
||||||
|
bind m select toggle
|
||||||
|
bind a add
|
||||||
|
bind <Delete> cut
|
||||||
|
bind x cut
|
||||||
|
bind y yank
|
||||||
|
bind p paste after
|
||||||
|
bind P paste before
|
Loading…
Reference in a new issue