diff options
author | joe <rbo@gmx.us> | 2025-09-30 17:54:44 +0200 |
---|---|---|
committer | joe <rbo@gmx.us> | 2025-09-30 17:54:44 +0200 |
commit | 9ce4f10eeda968206bdf591b0a64a95fa41f1411 (patch) | |
tree | 668743746310033f7ebb3371c5397b2e3c7612f9 | |
parent | up (diff) | |
download | dotfiles-bsd-9ce4f10eeda968206bdf591b0a64a95fa41f1411.tar.gz dotfiles-bsd-9ce4f10eeda968206bdf591b0a64a95fa41f1411.tar.bz2 dotfiles-bsd-9ce4f10eeda968206bdf591b0a64a95fa41f1411.tar.xz dotfiles-bsd-9ce4f10eeda968206bdf591b0a64a95fa41f1411.tar.zst dotfiles-bsd-9ce4f10eeda968206bdf591b0a64a95fa41f1411.zip |
up
Diffstat (limited to '')
-rw-r--r-- | .config/vimb/config | 93 | ||||
-rw-r--r-- | .config/vimb/style.css | 55 | ||||
-rwxr-xr-x | .local/bin/dmbookm | 12 | ||||
-rwxr-xr-x | .local/bin/setwp | 23 |
4 files changed, 166 insertions, 17 deletions
diff --git a/.config/vimb/config b/.config/vimb/config new file mode 100644 index 0000000..708ab74 --- /dev/null +++ b/.config/vimb/config @@ -0,0 +1,93 @@ +# vim: ft=conf +# Homepage that vimb opens if started without a URI. +set home-page=https://duckduckgo.com/ + +# Path to the default download directory. If no download directory is set, +# download will be written into current directory. The following pattern will +# be expanded if the download is started '~/', '~user', '$VAR' and '${VAR}'. +set download-path=~/dl/ + +# Command with placeholder '%s' called if form field is opened with $EDITOR to +# spawn the editor-like `x-terminal-emulator -e vim %s'. To use Gvim as the +# editor, it's necessary to call it with `-f' to run it in the foreground. +set editor-command=st -e nvim %s + +# If enabled the inputbox will be hidden whenever it contains no text. +set input-autohide=true + +# Enable or disable the spell checking feature. +set spell-checking=true + +# Set comma separated list of spell checking languages to be used for +# spell checking. +set spell-checking-languages=en + +# Enable or disable support for WebGL on pages. +set webgl=false + +# While typing a search command, show where the pattern typed so far matches. +set incsearch=true + +# The font family to use as the default for content that does not specify a +# font. +set default-font=BlexMono Nerd Font + +# The font family used as the default for content using monospace font. +set monospace-font=BlexMono Nerd Font + +# The font family used as the default for content using sans-serif font. +set sans-serif-font=BlexMono Nerd Font + +# The font family used as the default for content using serif font. +set serif-font=BlexMono Nerd Font + +# The default font size used to display text. +set font-size=16 + +# Default font size for the monospace font. +set monospace-font-size=13 + +# Default Full-Content zoom level in percent. Default is 100. +set default-zoom=110 + +# Shortcuts allow the opening of an URI built up from a named template with +# additional parameters. +shortcut-add duck=https://duckduckgo.com/?q=$0 +shortcut-add d=http://dict.cc/?s=$0 +shortcut-add g=https://encrypted.google.com/search?q=$0 +shortcut-add y=http://www.youtube.com/results?search_query=$0 +shortcut-add s=https://www.startpage.com/do/dsearch?query=$0 + +# Set the shortcut as the default, that is the shortcut to be used if no +# shortcut is given and the string to open is not an URI. +shortcut-default duck + +# Map page zoom in normal mode to keys commonly used across applications +# + (zoom in), - (zoom out), = (zoom reset) +nmap + zI +nmap - zO +nmap = zz +nmap H <C-o> +nmap L <C-o> +nmap , :set stylesheet=false<CR> +nmap . :set stylesheet=true<CR> +nmap <C-b> :set status-bar=true<CR> +nmap <C-n> :set status-bar=false<CR> + +set dark-mode=true +set status-bar=false +set javascript-can-access-clipboard=false +set intelligent-tracking-prevention=true +set geolocation=never +set user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 + +# GUI color settings +# Color scheme: Base16 Eighties (https://github.com/chriskempson/base16) +set completion-css=color:#ebdbb2;background-color:#32302f;font:12pt BlexMono Nerd Font; +set completion-hover-css=color:#ebdbb2;background-color:#32302f;font:12pt BlexMono Nerd Font; +set completion-selected-css=color:#ebdbb2;background-color:#515151;font:12pt BlexMono Nerd Font; +set input-css=color:#ebdbb2;background-color:#32302f;font:12pt BlexMono Nerd Font; +set input-error-css=color:#f2777a;background-color:#393939;font:12pt BlexMono Nerd Font; +set status-css=color:#ffcc66;background-color:#32302f;font:12pt BlexMono Nerd Font; +set status-ssl-css=color:#99cc99;background-color:#32302f;font:12pt BlexMono Nerd Font; +set status-ssl-invalid-css=color:#f2777a;background-color:#32302f;font:12pt BlexMono Nerd Font; diff --git a/.config/vimb/style.css b/.config/vimb/style.css new file mode 100644 index 0000000..4aa6214 --- /dev/null +++ b/.config/vimb/style.css @@ -0,0 +1,55 @@ +body::-webkit-scrollbar { + display: none; +} + +*,div,pre,textarea,body,input,td,tr,p { + background-color: #1d2021 !important; + background-image: none !important; + color: #ebdbb2 !important; +} +h1,h2,h3,h4 { + background-color: #1d2021 !important; + color: #ebdbb2 !important; +} +a { + color: #458588 !important; +} +a:hover,a:focus { + color: #458588 !important; +} +a:visited { + color: #b16286 !important; +} +/* img { + opacity: .5; +} +img:hover { + opacity: 1; +} */ + +/* Hint mode color styling + * Color scheme: Base16 Eighties (https://github.com/chriskempson/base16) + * + * The precedence of the user style is lower than that of the website so you + * have to mark your style definition to have higher priority. + */ +span[vimbhint^='label'] { + background-color: #f2f0ec !important; + border: 1px solid #2d2d2d !important; + color: #2d2d2d !important; + font: bold 10pt monospace !important; + opacity: 1 !important; + padding: .1em .4em !important; + text-transform: uppercase !important; +} +span[vimbhint='label focus'] { + font: bold 13pt monospace !important; +} +*[vimbhint^='hint'] { + background-color: #ffcc66 !important; + color: #2d2d2d !important; +} +*[vimbhint='hint focus'] { + background-color: #6699cc !important; + color: #2d2d2d !important; +} diff --git a/.local/bin/dmbookm b/.local/bin/dmbookm index dcd0e36..9190dca 100755 --- a/.local/bin/dmbookm +++ b/.local/bin/dmbookm @@ -4,11 +4,8 @@ use strict; use warnings; use Sys::Hostname; -# debug -use Data::Dumper; - use constant { - BROWSER => '/bin/firefox', + BROWSER => 'surf', HOSTNAME => (split /\./, hostname())[0] }; @@ -47,7 +44,6 @@ sub main my $choice; my $url; my $pid; - my $prefix; my $list; my $color; @@ -55,10 +51,6 @@ sub main if (@ARGV == 1) { $color = $ARGV[0]; } - $prefix = '/usr'; - if (HOSTNAME eq "mars") { - $prefix += '/local'; - } for (sort keys %{LIST()}) { $list .= $_ . "\n"; } @@ -69,7 +61,7 @@ sub main chomp $choice; $pid = fork(); if (not $pid) { - exec($prefix . BROWSER, LIST->{$choice}); + exec(BROWSER, LIST->{$choice}); } return; } diff --git a/.local/bin/setwp b/.local/bin/setwp index 02241bd..0786461 100755 --- a/.local/bin/setwp +++ b/.local/bin/setwp @@ -76,21 +76,30 @@ sub main { my $wp; my $ret; + my $arg; - if (@ARGV != 0 && -f $ARGV[0]) { - $ret = set_wp($ARGV[0]); + $arg = 0; + if (@ARGV != 0 && $ARGV[0] eq '-nw') { + $arg = 1; } - elsif (@ARGV != 0 && -d $ARGV[0]) { - $wp = choose_wp(get_pool_files($ARGV[0])); + if (@ARGV != 0 && -f $ARGV[$arg]) { + $ret = set_wp($ARGV[$arg]); + } + elsif (@ARGV != 0 && -d $ARGV[$arg]) { + $wp = choose_wp(get_pool_files($ARGV[$arg])); $ret = set_wp($wp); } else { $wp = choose_wp(get_pool_files(WP_POOL)); $ret = set_wp($wp); } - if (@ARGV == 0 || (@ARGV != 0 && $ARGV[0] ne "-nw")) { - exec('herbe', ' wp set') if ($ret == 0); - exec('herbe', ' wp is not a valid file') if ($ret != 0); + if (@ARGV == 0 || (@ARGV != 0 && $ARGV[0] ne '-nw')) { + my $arg = fork(); + if (not $arg) { + setsid(); + exec('herbe', ' wp set') if ($ret == 0); + exec('herbe', ' wp is not a valid file') if ($ret != 0); + } } return; } |