Drop a few configs

This commit is contained in:
Sanchayan Maity 2024-12-21 10:39:42 +05:30
parent e272c5de9c
commit 8985aa5aed
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3
10 changed files with 0 additions and 1052 deletions

View file

@ -1,431 +0,0 @@
[global]
### Display ###
# Which monitor should the notifications be displayed on.
monitor = 0
# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer
# keyboard: follow window with keyboard focus
# none: don't follow anything
#
# "keyboard" needs a window manager that exports the
# _NET_ACTIVE_WINDOW property.
# This should be the case for almost all modern window managers.
#
# If this option is set to mouse or keyboard, the monitor option
# will be ignored.
follow = mouse
# The geometry of the window:
# [{width}]x{height}[+/-{x}+/-{y}]
# The geometry of the message window.
# The height is measured in number of notifications everything else
# in pixels. If the width is omitted but the height is given
# ("-geometry x2"), the message window expands over the whole screen
# (dmenu-like). If width is 0, the window expands to the longest
# message displayed. A positive x is measured from the left, a
# negative from the right side of the screen. Y is measured from
# the top and down respectively.
# The width can be negative. In this case the actual width is the
# screen width minus the width defined in within the geometry option.
geometry = "300x5-30+20"
# Show how many messages are currently hidden (because of geometry).
indicate_hidden = yes
# Shrink window if it's smaller than the width. Will be ignored if
# width is 0.
shrink = no
# The transparency of the window. Range: [0; 100].
# This option will only work if a compositing window manager is
# present (e.g. xcompmgr, compiz, etc.).
transparency = 0
# The height of the entire notification. If the height is smaller
# than the font height and padding combined, it will be raised
# to the font height and padding.
notification_height = 0
# Draw a line of "separator_height" pixel height between two
# notifications.
# Set to 0 to disable.
separator_height = 2
# Padding between text and separator.
padding = 8
# Horizontal padding.
horizontal_padding = 8
# Defines width in pixels of frame around the notification window.
# Set to 0 to disable.
frame_width = 3
# Defines color of the frame around the notification window.
frame_color = "#d5c4a1"
# Define a color for the separator.
# possible values are:
# * auto: dunst tries to find a color fitting to the background;
# * foreground: use the same color as the foreground;
# * frame: use the same color as the frame;
# * anything else will be interpreted as a X color.
separator_color = frame
# Sort messages by urgency.
sort = yes
# Don't remove messages, if the user is idle (no mouse or keyboard input)
# for longer than idle_threshold seconds.
# Set to 0 to disable.
# A client can set the 'transient' hint to bypass this. See the rules
# section for how to disable this if necessary
idle_threshold = 120
### Text ###
font = Monospace 8
# The spacing between lines. If the height is smaller than the
# font height, it will get raised to the font height.
line_height = 0
# Possible values are:
# full: Allow a small subset of html markup in notifications:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough</s>
# <u>underline</u>
#
# For a complete reference see
# <https://developer.gnome.org/pango/stable/pango-Markup.html>.
#
# strip: This setting is provided for compatibility with some broken
# clients that send markup even though it's not enabled on the
# server. Dunst will try to strip the markup but the parsing is
# simplistic so using this option outside of matching rules for
# specific applications *IS GREATLY DISCOURAGED*.
#
# no: Disable markup parsing, incoming notifications will be treated as
# plain text. Dunst will not advertise that it has the body-markup
# capability if this is set as a global setting.
#
# It's important to note that markup inside the format option will be parsed
# regardless of what this is set to.
markup = full
# The format of the message. Possible variables are:
# %a appname
# %s summary
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
# %p progress value if set ([ 0%] to [100%]) or nothing
# %n progress value if set without any extra characters
# %% Literal %
# Markup is allowed
format = "<b>%s</b>\n%b"
# Alignment of message text.
# Possible values are "left", "center" and "right".
alignment = left
# Vertical alignment of message text and icon.
# Possible values are "top", "center" and "bottom".
vertical_alignment = center
# Show age of message if message is older than show_age_threshold
# seconds.
# Set to -1 to disable.
show_age_threshold = 60
# Split notifications into multiple lines if they don't fit into
# geometry.
word_wrap = yes
# When word_wrap is set to no, specify where to make an ellipsis in long lines.
# Possible values are "start", "middle" and "end".
ellipsize = middle
# Ignore newlines '\n' in notifications.
ignore_newline = no
# Stack together notifications with the same content
stack_duplicates = true
# Hide the count of stacked notifications with the same content
hide_duplicate_count = false
# Display indicators for URLs (U) and actions (A).
show_indicators = yes
### Icons ###
# Align icons left/right/off
icon_position = left
# Scale small icons up to this size, set to 0 to disable. Helpful
# for e.g. small files or high-dpi screens. In case of conflict,
# max_icon_size takes precedence over this.
min_icon_size = 0
# Scale larger icons down to this size, set to 0 to disable
max_icon_size = 32
# Paths to default icons.
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
### History ###
# Should a notification popped up from history be sticky or timeout
# as if it would normally do.
sticky_history = yes
# Maximum amount of notifications kept in history
history_length = 20
### Misc/Advanced ###
# dmenu path.
dmenu = /usr/bin/dmenu -p dunst:
# Browser for opening urls in context menu.
browser = /usr/bin/firefox -new-tab
# Always run rule-defined scripts, even if the notification is suppressed
always_run_script = true
# Define the title of the windows spawned by dunst
title = Dunst
# Define the class of the windows spawned by dunst
class = Dunst
# Print a notification on startup.
# This is mainly for error detection, since dbus (re-)starts dunst
# automatically after a crash.
startup_notification = false
# Manage dunst's desire for talking
# Can be one of the following values:
# crit: Critical features. Dunst aborts
# warn: Only non-fatal warnings
# mesg: Important Messages
# info: all unimportant stuff
# debug: all less than unimportant stuff
verbosity = mesg
# Define the corner radius of the notification window
# in pixel size. If the radius is 0, you have no rounded
# corners.
# The radius will be automatically lowered if it exceeds half of the
# notification height to avoid clipping text and/or icons.
corner_radius = 0
# Ignore the dbus closeNotification message.
# Useful to enforce the timeout set by dunst configuration. Without this
# parameter, an application may close the notification sent before the
# user defined timeout.
ignore_dbusclose = false
### Legacy
# Use the Xinerama extension instead of RandR for multi-monitor support.
# This setting is provided for compatibility with older nVidia drivers that
# do not support RandR and using it on systems that support RandR is highly
# discouraged.
#
# By enabling this setting dunst will not be able to detect when a monitor
# is connected or disconnected which might break follow mode if the screen
# layout changes.
force_xinerama = false
### mouse
# Defines list of actions for each mouse event
# Possible values are:
# * none: Don't do anything.
# * do_action: If the notification has exactly one action, or one is marked as default,
# invoke it. If there are multiple and no default, open the context menu.
# * close_current: Close current notification.
# * close_all: Close all notifications.
# These values can be strung together for each mouse event, and
# will be executed in sequence.
mouse_left_click = close_current
mouse_middle_click = do_action, close_current
mouse_right_click = close_all
# Experimental features that may or may not work correctly. Do not expect them
# to have a consistent behaviour across releases.
[experimental]
# Calculate the dpi to use on a per-monitor basis.
# If this setting is enabled the Xft.dpi value will be ignored and instead
# dunst will attempt to calculate an appropriate dpi value for each monitor
# using the resolution and physical size. This might be useful in setups
# where there are multiple screens with very different dpi values.
per_monitor_dpi = false
[shortcuts]
# Shortcuts are specified as [modifier+][modifier+]...key
# Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
# "mod3" and "mod4" (windows-key).
# Xev might be helpful to find names for keys.
# Close notification.
close = ctrl+space
# Close all notifications.
close_all = ctrl+shift+space
# Redisplay last message(s).
# On the US keyboard layout "grave" is normally above TAB and left
# of "1". Make sure this key actually exists on your keyboard layout,
# e.g. check output of 'xmodmap -pke'
history = ctrl+mod4+space
# Context menu.
context = ctrl+shift+period
[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the "#" and following would be interpreted as a comment.
background = "#3c3836"
foreground = "#665c54"
timeout = 10
# Icon for notifications with low urgency, uncomment to enable
#icon = /path/to/icon
[urgency_normal]
background = "#504945"
foreground = "#d5c4a1"
timeout = 10
# Icon for notifications with normal urgency, uncomment to enable
#icon = /path/to/icon
[urgency_critical]
background = "#fb4934"
foreground = "#ebdbb2"
frame_color = "#d5c4a1"
timeout = 0
# Icon for notifications with critical urgency, uncomment to enable
#icon = /path/to/icon
# Every section that isn't one of the above is interpreted as a rules to
# override settings for certain messages.
#
# Messages can be matched by
# appname (discouraged, see desktop_entry)
# body
# category
# desktop_entry
# icon
# match_transient
# msg_urgency
# stack_tag
# summary
#
# and you can override the
# background
# foreground
# format
# frame_color
# fullscreen
# new_icon
# set_stack_tag
# set_transient
# timeout
# urgency
#
# Shell-like globbing will get expanded.
#
# Instead of the appname filter, it's recommended to use the desktop_entry filter.
# GLib based applications export their desktop-entry name. In comparison to the appname,
# the desktop-entry won't get localized.
#
# SCRIPTING
# You can specify a script that gets run when the rule matches by
# setting the "script" option.
# The script will be called as follows:
# script appname summary body icon urgency
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
#
# NOTE: if you don't want a notification to be displayed, set the format
# to "".
# NOTE: It might be helpful to run dunst -print in a terminal in order
# to find fitting options for rules.
# Disable the transient hint so that idle_threshold cannot be bypassed from the
# client
#[transient_disable]
# match_transient = yes
# set_transient = no
#
# Make the handling of transient notifications more strict by making them not
# be placed in history.
#[transient_history_ignore]
# match_transient = yes
# history_ignore = yes
# fullscreen values
# show: show the notifications, regardless if there is a fullscreen window opened
# delay: displays the new notification, if there is no fullscreen window active
# If the notification is already drawn, it won't get undrawn.
# pushback: same as delay, but when switching into fullscreen, the notification will get
# withdrawn from screen again and will get delayed like a new notification
#[fullscreen_delay_everything]
# fullscreen = delay
#[fullscreen_show_critical]
# msg_urgency = critical
# fullscreen = show
#[espeak]
# summary = "*"
# script = dunst_espeak.sh
#[script-test]
# summary = "*script*"
# script = dunst_test.sh
#[ignore]
# # This notification will not be displayed
# summary = "foobar"
# format = ""
#[history-ignore]
# # This notification will not be saved in history
# summary = "foobar"
# history_ignore = yes
#[skip-display]
# # This notification will not be displayed, but will be included in the history
# summary = "foobar"
# skip_display = yes
#[signed_on]
# appname = Pidgin
# summary = "*signed on*"
# urgency = low
#
#[signed_off]
# appname = Pidgin
# summary = *signed off*
# urgency = low
#
#[says]
# appname = Pidgin
# summary = *says*
# urgency = critical
#
#[twitter]
# appname = Pidgin
# summary = *twitter.com*
# urgency = normal
#
#[stack-volumes]
# appname = "some_volume_notifiers"
# set_stack_tag = "volume"
#
# vim: ft=cfg

View file

@ -1 +0,0 @@
scrot_dir=/home/core/Pictures

View file

@ -1,81 +0,0 @@
#!/bin/sh
# /usr/bin/dwm-scrot
#
# simple screenshot-script using scrot
# originally taken from manjaro-i3
_conf=$HOME/.config/dwm-scrot.conf
if ! [ -f $_conf ]; then
echo "scrot_dir=$(xdg-user-dir PICTURES)" > $_conf
fi
source $_conf
if ! [ -d $scrot_dir ]; then
mkdir -p $scrot_dir
fi
if ! [[ -z "$2" ]]; then
cmd="scrot -d $2"
else
cmd='scrot'
fi
case "$1" in
--desk|-d|$NULL)
cd $scrot_dir
$cmd &&
sleep 1 &&
notify-send "screenshot has been saved in $scrot_dir"
;;
--window|-w)
cd $scrot_dir
$cmd -u &&
sleep 1 &&
notify-send "screenshot has been saved in $scrot_dir"
;;
--select|-s)
cd $scrot_dir
notify-send 'select an area for the screenshot' &
scrot -s &&
sleep 1 && notify-send "screenshot has been saved in $scrot_dir"
;;
--help|-h)
echo "
available options:
-d | --desk full screen
-w | --window active window
-s | --select selection
-h | --help display this information
The -d or -w options can be used with a delay
by adding the number of seconds, like for example:
'dwm-scrot -w 5'
Default option is 'full screen'.
The file destination can be set in ${_conf}.
Default is $scrot_dir
"
;;
*)
echo "
== ! dwm-scrot: missing or wrong argument ! ==
available options:
-d | --desk full screen
-w | --window active window
-s | --select selection
-h | --help display this information
Default option is 'full screen'.
The file destination can be set in ${_conf}.
Default is $scrot_dir
"
exit 2
esac
exit 0

View file

@ -1,371 +0,0 @@
# Steal from https://github.com/noctuid/dotfiles/blob/master/browsing/.config/qutebrowser/config.py
from qutebrowser.config.configfiles import (
ConfigAPI,
) # noqa: F401,E501 pylint: disable=unused-import
from qutebrowser.config.config import ConfigContainer # noqa: F401
config: ConfigAPI = config # pylint: disable=E0601
c: ConfigContainer = c # pylint: disable=E0601
config.load_autoconfig(False)
# * Helper Functions
def bind(key, command, mode): # noqa: E302
"""Bind key to command in mode."""
# TODO set force; doesn't exist yet
config.bind(key, command, mode=mode)
def nmap(key, command):
"""Bind key to command in normal mode."""
bind(key, command, "normal")
def imap(key, command):
"""Bind key to command in insert mode."""
bind(key, command, "insert")
def cmap(key, command):
"""Bind key to command in command mode."""
bind(key, command, "command")
# def cimap(key, command):
# """Bind key to command in command mode and insert mode."""
# cmap(key, command)
# imap(key, command)
def tmap(key, command):
"""Bind key to command in caret mode."""
bind(key, command, "caret")
def pmap(key, command):
"""Bind key to command in passthrough mode."""
bind(key, command, "passthrough")
def unmap(key, mode):
"""Unbind key in mode."""
config.unbind(key, mode=mode)
def nunmap(key):
"""Unbind key in normal mode."""
unmap(key, mode="normal")
# ** Session
# always restore opened sites when opening qutebrowser
c.auto_save.session = True
# Default is 15 secs. Save every 1 min.
c.auto_save.interval = 60000
# Load restored tab as soon as it takes focus
c.session.lazy_restore = True
# ** Tabs
# open new tabs (middleclick/ctrl+click) in the background
c.tabs.background = True
# select previous tab instead of next tab when deleting current tab
c.tabs.select_on_remove = "prev"
# open unrelated tabs after the current tab not last
c.tabs.new_position.related = "next"
c.tabs.new_position.unrelated = "last"
c.tabs.min_width = 100
# Do not wrap when changing tabs
c.tabs.wrap = False
c.tabs.mousewheel_switching = False
c.tabs.title.format = "{index}{private}{title_sep}{current_title}"
# ** Command Aliases
c.aliases["xa"] = "quit --save"
c.aliases["h"] = "help"
# ** Appearance
# Preferred fonts
c.fonts.default_family = [
"monospace",
]
c.fonts.default_size = "20pt"
c.fonts.tabs.selected = "22pt default_family"
# Spell checking
c.spellcheck.languages = ["en-GB"]
# default but not transparent
c.colors.hints.bg = (
"qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(255, 247, 133, 1), "
+ "stop:1 rgba(255, 197, 66, 1))"
)
c.scrolling.bar = "always"
c.scrolling.smooth = False
# lower delay for key hint dialog (comparable to which-key)
c.keyhint.delay = 250
c.tabs.padding = {"top": 2, "bottom": 2, "left": 0, "right": 4}
# ** Editor
c.editor.command = ["foot", "nvim", "+{line}", "{}"]
# ** Hints
# don't require enter after hint keys
c.hints.auto_follow = "always"
# As per Colemak mod-dh
c.hints.chars = "arstgmneiowfpluy"
# ** Downloads
c.downloads.location.directory = "~/Downloads/qutebrowser"
c.downloads.location.prompt = False
c.downloads.open_dispatcher = "xdg-open"
# ** Input
# don't timeout for during partially entered command
c.input.partial_timeout = 0
# ** Home/Start Page
c.url.default_page = "https://lwn.net/"
c.url.start_pages = ["https://lwn.net/"]
# ** Search Keywords
c.url.searchengines = {
"DEFAULT": "https://duckduckgo.com/?q={}",
"aw": "https://wiki.archlinux.org/index.php?search={}",
"ap": "https://archlinux.org/packages/?q={}",
"aur": "https://aur.archlinux.org/packages?O=0&K={}",
"c": "https://crates.io/search?q={}",
"d": "https://docs.rs/releases/search?query={}",
"g": "https://startpage.com/do/asearch?q={}",
"gh": "https://github.com/search?q={}",
"h": "https://hackage.haskell.org/packages/search?terms={}",
"hg": "https://www.haskell.org/hoogle/?hoogle={}",
"mal": "https://myanimelist.net/search/all?q={}",
"met": "https://www.metal-archives.com/search?searchString={}&type=band_name",
"r": "https://www.reddit.com/r/{}/",
"rt": "https://www.rottentomatoes.com/search/?search={}",
"y": "https://www.youtube.com/results?search_query={}",
"w": "https://en.wikipedia.org/w/index.php?title=Special:Search&search={}",
"wayback": "https://web.archive.org/web/*/{}",
}
# ** Bookmarklets/Custom Commands
c.aliases["archive"] = "open --tab https://web.archive.org/save/{url}"
c.aliases["view-archive"] = "open --tab https://web.archive.org/web/*/{url}"
c.aliases["va"] = "open --tab https://web.archive.org/web/*/{url}"
c.aliases["view-google-cache"] = "open https://www.google.com/search?q=cache:{url}"
c.aliases["vgc"] = "open https://www.google.com/search?q=cache:{url}"
# Set a higher zoom level by default
c.zoom.default = "250%"
# Javascript
c.content.javascript.enabled = True
# Do not display PDFs in browser. pdfjs does not work.
c.content.pdfjs = False
c.content.blocking.adblock.lists = [
"https://easylist.to/easylist/easylist.txt",
"https://easylist.to/easylist/easyprivacy.txt",
"https://easylist-downloads.adblockplus.org/indianlist.txt",
"https://easylist-downloads.adblockplus.org/abp-filters-anti-cv.txt",
"https://www.i-dont-care-about-cookies.eu/abp/",
"https://easylist.to/easylist/fanboy-social.txt",
"https://secure.fanboy.co.nz/fanboy-cookiemonster.txt",
"https://secure.fanboy.co.nz/fanboy-annoyance.txt",
"https://secure.fanboy.co.nz/fanboy-cookiemonster.txt",
]
# * Key Bindings
# ** Reload Configuration
nmap("ts", "config-source")
# Reload page
nunmap("r")
nunmap("R")
nmap("<Ctrl-r>", "reload")
# lose scroll left
nmap("h", "back")
nmap("H", "forward")
# lose scroll right
nmap("l", "tab-focus last")
# ** Colemak Swaps
# https://github.com/qutebrowser/qutebrowser/issues/2668#issuecomment-309098314
nmap("n", "scroll-page 0 0.2")
nmap("e", "scroll-page 0 -0.2")
nmap("N", "tab-prev")
# no default binding
nmap("E", "tab-next")
# add back search
nmap("k", "search-next")
nmap("K", "search-prev")
tmap("n", "move-to-next-line")
tmap("e", "move-to-prev-line")
tmap("i", "move-to-next-char")
# add back e functionality
tmap("j", "move-to-end-of-word")
tmap("N", "scroll down")
tmap("E", "scroll up")
tmap("I", "scroll right")
# ** Hinting
nmap("gi", "hint inputs")
# TODO ts for download hinting instead of :d
# TODO ti for image hinting in background (rebind :inspector)
# ** Miscellaneous
nmap("gn", "navigate previous")
nmap("ge", "navigate next")
nmap("tm", "messages --tab")
nmap("th", "help --tab")
nmap("tr", "stop")
# @: - run last ex command
nmap(
"t;",
"set-cmd-text : ;; completion-item-focus --history prev ;; " + "command-accept",
)
# ** Tabs and Windows
nmap("o", "set-cmd-text -s :open --tab")
nmap("O", "set-cmd-text -s :open")
# open homepage in new tab
nmap("tt", "open --tab")
# lose tab-only and download-clear
nmap("c", "set-cmd-text :open --related {url:pretty}")
nmap("C", "set-cmd-text :open --tab --related {url:pretty}")
# open new private window
nmap("tp", "open -p")
# tn and te for tab moving
nmap("tn", "tab-move -")
nmap("te", "tab-move +")
nmap("tw", "tab-close")
# ** TODO Tabgroups
# - title should be displayed somewhere
# - create new group (vn)
# - move tab to different group (vM; vm - without switching)
# - switch to different group (vv completion)
# - keys for specific tap groups (e.g. wr, prog, main, mango)
# - rename tab group (vr)
# - delete tab group (vd)
# ** Yanking and Pasting
# don't need primary or extra yanks
nmap("p", "open --tab -- {clipboard}")
nmap("P", "open -- {clipboard}")
nmap("y", "yank")
nmap("Y", "yank selection")
# ** Editor
imap("<Ctrl-i>", "open-editor")
# open source in editor
nmap("gF", "view-source --edit")
# ** Insert/RL
# imap("<Ctrl-w>", "fake-key <Ctrl-backspace>")
imap("¸", "fake-key <Ctrl-backspace>")
cmap("¸", "fake-key --global <Ctrl-backspace>")
# nunmap('<Ctrl-w>')
# prevent c-w from closing tab
# del c.bindings.default["normal"]["<Ctrl-W>"]
# C-y for pasting
imap("<Ctrl-y>", "fake-key <Ctrl-v>")
cmap("<Ctrl-y>", "fake-key --global <Ctrl-v>")
# ** Passthrough
nmap(",", "enter-mode passthrough")
pmap("<Escape>", "leave-mode")
# ** Undo
# no :undo completion currently
# nmap('U', 'set-cmd-text --space :undo')
# ** Quickmarks and Marks
nunmap("'")
nmap("'c", ":open --tab https://chat.asymptotic.io/#/welcome")
nmap("'C", ":open --tab https://www.online.citibank.co.in/portal/pdf/card-Rate.pdf")
nmap(
"'f",
":open --tab https://instantforex.icicibank.com/instantforex/forms/MicroCardRateView.aspx",
)
nmap(
"'F",
":open --tab https://www.hdfcbank.com/content/bbp/repositories/723fb80a-2dde-42a3-9793-7ae1be57c87f/?path=/Personal/Home/content/rates.pdf",
)
nmap("'r", ":open --tab https://reddit.com/")
nmap("'e", ":open --tab https://www.reddit.com/r/emacs/")
nmap("'h", ":open --tab https://www.reddit.com/r/haskell/")
nmap("'n", ":open --tab https://www.reddit.com/r/neovim")
nmap("'v", ":open --tab https://www.reddit.com/r/vim/")
nmap("'q", ":open --tab https://www.reddit.com/r/qutebrowser/")
nmap("'a", ":open --tab https://wiki.archlinux.org/")
nmap("'A", ":open --tab https://9anime.vc/home")
nmap("'g", ":open --tab https://gitlab.freedesktop.org/gstreamer")
nmap("'G", ":open --tab https://www.github.com/")
nmap("'p", ":open --tab https://lazka.github.io/pgi-docs/#Gst-1.0")
nmap("'P", ":open --tab https://gitlab.freedesktop.org/pipewire")
nmap("'k", ":open --tab https://configure.zsa.io/planck-ez/layouts/XW39W/latest/0")
nmap("'L", ":open --tab https://www.last.fm/user/sanchayan_maity")
nmap("'m", ":open --tab https://man7.org/linux/man-pages/index.html")
nmap("'M", ":open --tab https://www.metal-archives.com/")
nmap("'s", ":open --tab https://myanimelist.net/anime/season")
nmap("'S", ":open --tab https://myanimelist.net/clubs.php?cid=27907")
nmap("'t", ":open --tab https://samples.mplayerhq.hu/A-codecs/")
nmap("'w", ":open --tab https://en.wikipedia.org/wiki/Main_Page")
nmap("'W", ":open --tab https://web.archive.org/web/*/{url}")
nmap("'y", ":open --tab https://youtube.com/")
# add back mark jumping
nmap('"', "enter-mode jump_mark")
nmap("tl", 'jump-mark "\'"')
# *** Playing Videos with MPV
nmap(",m", "spawn mpv {url}")
nmap(",M", "hint links spawn mpv {hint-url}")
# ** Downloads
# TODO download video and audio
# nmap -ex <leader>Y execute "silent !youtube-dl --restrict-filenames -o '~/move/%(title)s_%(width)sx%(height)s_%(upload_date)s.%(ext)s' " + buffer.URL + " &"
# nmap -ex <leader>A execute "silent !youtube-dl --restrict-filenames --extract-audio -o '~/move/%(title)s_%(width)sx%(height)s_%(upload_date)s.%(ext)s' " + buffer.URL + " &"
nmap("tg", 'spawn --detach dlg "{url}"')
nmap("td", "download-open")
nmap("tr", "download-delete")
nmap("tR", "set-cmd-text -s :download-delete")
nmap("tc", "download-clear")
# ** Zooming
nmap("zi", "zoom-in")
nmap("zo", "zoom-out")
# ** Inspector
nmap("ti", "inspector")
nunmap("gb")
nunmap("gB")
nmap("gb", "set-cmd-text -s :bookmark-load -t")
nmap("gB", "spawn --detach alacritty -e fish -c bo")

View file

@ -1,18 +0,0 @@
// ==UserScript==
// @name remove ads from reddit
// @version 1.0.0
// @author afreakk
// @match *://*.reddit.com/*
// ==/UserScript==
const removeShit = () => {
// promoted posts has this class
document.querySelectorAll('.promotedlink').forEach((e) => e.remove());
// nagging about confirming email has this class
document
.querySelectorAll('.kEQVd8aneM1tVkcIKUyDT')
.forEach((e) => e.remove());
};
(trySetInterval = () => {
window.setInterval(removeShit, 1000);
})();

View file

@ -1,35 +0,0 @@
// ==UserScript==
// @name Skip youtube ads
// @version 1.0.0
// @description Skips YouTube ads automatically
// @author afreakk
// @match *://*.youtube.com/*
// @exclude *://*.youtube.com/subscribe_embed?*
// ==/UserScript==
const skipAd = () => {
document
.querySelectorAll('.videoAdUiSkipButton,.ytp-ad-skip-button')
.forEach((b) => b.click());
if (document.querySelector('.ad-showing')) {
document.querySelectorAll('video').forEach((v) => {
Number.isNaN(v.duration) || (v.currentTime = v.duration);
});
}
document
.querySelectorAll('.ytd-display-ad-renderer#dismissible')
.forEach((el) =>
// remove the ad video in top left of recommended
el?.parentElement?.parentElement?.parentElement?.remove?.()
);
document
.querySelectorAll(
'ytd-promoted-sparkles-web-renderer, #player-ads, #masthead-ad, ytd-compact-promoted-video-renderer'
)
.forEach((el) => el.remove());
document
.querySelectorAll('.ytd-mealbar-promo-renderer#dismiss-button')
.forEach((el) => el.click());
};
if (!window.skipAdIntervalID) {
window.skipAdIntervalID = setInterval(skipAd, 333);
}

View file

@ -1,41 +0,0 @@
// ==UserScript==
// @name Sponsorblock
// @version 1.0.0
// @description Skip sponsor segments automatically
// @author afreakk
// @match *://*.youtube.com/*
// @exclude *://*.youtube.com/subscribe_embed?*
// ==/UserScript==
const tryFetchSkipSegments = (videoID) =>
fetch(`https://sponsor.ajay.app/api/skipSegments?videoID=${videoID}`)
.then((r) => r.json())
.then((rJson) =>
rJson.filter((a) => a.actionType === 'skip').map((a) => a.segment)
)
.catch(
(e) =>
console.log(
`Sponsorblock: failed fetching skipSegments for ${videoID}, reason: ${e}`
) || []
);
const skipSegments = async () => {
const videoID = new URL(document.location).searchParams.get('v');
if (!videoID) {
return;
}
const key = `segmentsToSkip-${videoID}`;
window[key] = window[key] || (await tryFetchSkipSegments(videoID));
for (const v of document.querySelectorAll('video')) {
if (Number.isNaN(v.duration)) continue;
for (const [start, end] of window[key]) {
if (v.currentTime < end && v.currentTime > start) {
v.currentTime = end;
return console.log(`Sponsorblock: skipped video to ${end}`);
}
}
}
};
if (!window.skipSegmentsIntervalID) {
window.skipSegmentsIntervalID = setInterval(skipSegments, 1000);
}

View file

@ -1,17 +0,0 @@
add_newline = false
[character]
success_symbol = "[λ](bold cyan)"
error_symbol = "✗"
[battery]
full_symbol = "🔋"
charging_symbol = "⚡️"
discharging_symbol = "💀"
[[battery.display]]
threshold = 12
style = "bold red"
[aws]
disabled = true

View file

@ -1,57 +0,0 @@
local wezterm = require 'wezterm';
local config = {
check_for_updates = false,
color_scheme = "Gruvbox Dark",
default_cursor_style = "BlinkingUnderline",
exit_behavior = "Close",
enable_wayland = true,
enable_tab_bar = true,
font = wezterm.font("Victor Mono", { weight = "Bold", italic = false }),
font_size = 16.0,
hide_tab_bar_if_only_one_tab = false,
inactive_pane_hsb = {
hue = 1.0,
saturation = 1.0,
brightness = 1.0,
},
set_environment_variables = {},
tab_bar_at_bottom = true,
window_background_opacity = 0.8,
keys = {
{ key = "z" , mods = "CTRL", action = "TogglePaneZoomState" },
{ key = "-" , mods = "CTRL", action = wezterm.action{ SplitVertical = { domain = "CurrentPaneDomain" }}},
{ key = "|" , mods = "CTRL", action = wezterm.action{ SplitHorizontal = { domain = "CurrentPaneDomain" }}},
{ key = "n" , mods = "CTRL|ALT", action = wezterm.action{ SpawnTab = "CurrentPaneDomain" }},
{ key = "LeftArrow" , mods = "CTRL", action = wezterm.action{ ActivatePaneDirection = "Left" }},
{ key = "DownArrow" , mods = "CTRL", action = wezterm.action{ ActivatePaneDirection = "Down" }},
{ key = "UpArrow" , mods = "CTRL", action = wezterm.action{ ActivatePaneDirection = "Up" }},
{ key = "RightArrow", mods = "CTRL", action = wezterm.action{ ActivatePaneDirection = "Right" }},
{ key = "LeftArrow" , mods = "CTRL|SHIFT", action = wezterm.action{ AdjustPaneSize = { "Left" , 5 }}},
{ key = "DownArrow" , mods = "CTRL|SHIFT", action = wezterm.action{ AdjustPaneSize = { "Down" , 5 }}},
{ key = "UpArrow" , mods = "CTRL|SHIFT", action = wezterm.action{ AdjustPaneSize = { "Up" , 5 }}},
{ key = "RightArrow", mods = "CTRL|SHIFT", action = wezterm.action{ AdjustPaneSize = { "Right", 5 }}},
{ key = "1" , mods = "ALT", action = wezterm.action{ ActivateTab = 0 }},
{ key = "2" , mods = "ALT", action = wezterm.action{ ActivateTab = 1 }},
{ key = "3" , mods = "ALT", action = wezterm.action{ ActivateTab = 2 }},
{ key = "4" , mods = "ALT", action = wezterm.action{ ActivateTab = 3 }},
{ key = "5" , mods = "ALT", action = wezterm.action{ ActivateTab = 4 }},
{ key = "6" , mods = "ALT", action = wezterm.action{ ActivateTab = 5 }},
{ key = "7" , mods = "ALT", action = wezterm.action{ ActivateTab = 6 }},
{ key = "8" , mods = "ALT", action = wezterm.action{ ActivateTab = 7 }},
{ key = "9" , mods = "ALT", action = wezterm.action{ ActivateTab = 8 }},
{ key = "0" , mods = "ALT", action = wezterm.action{ ActivateTab = 9 }},
{ key = "PageUp" , mods = "", action = wezterm.action{ ScrollByPage = -1 }},
{ key = "PageDown" , mods = "", action = wezterm.action{ ScrollByPage = 1 }},
{ key = "UpArrow" , mods = "CTRL", action = wezterm.action{ ScrollByLine = -1 }},
{ key = "DownArrow" , mods = "CTRL", action = wezterm.action{ ScrollByLine = 1 }},
{ key = "q" , mods = "CTRL|SHIFT", action = wezterm.action{ CloseCurrentTab = { confirm = true }}},
},
}
return config