Compare commits
23 commits
45ae978abf
...
759212c8a6
Author | SHA1 | Date | |
---|---|---|---|
759212c8a6 | |||
2b3aacb76c | |||
9fe2c8493e | |||
56d54f327c | |||
5d2247ffd8 | |||
57190e827a | |||
1f5f437db3 | |||
d254eca087 | |||
c63de5734a | |||
039dba51fb | |||
8178bd8066 | |||
a169a57c02 | |||
b1ead3fa03 | |||
d5f9a623e4 | |||
43e97b5007 | |||
2064987f2f | |||
537754b3aa | |||
4a7ed987d4 | |||
470482dfc6 | |||
c7f9c233dc | |||
bf92fbc282 | |||
340bc39b4b | |||
756076de79 |
37 changed files with 124 additions and 1974 deletions
|
@ -39,27 +39,7 @@ render_timer = false
|
|||
TERM = "alacritty"
|
||||
|
||||
[font]
|
||||
size = 26.0
|
||||
|
||||
[font.bold]
|
||||
family = "monospace"
|
||||
style = "Bold"
|
||||
|
||||
[font.glyph_offset]
|
||||
x = 0
|
||||
y = 0
|
||||
|
||||
[font.italic]
|
||||
family = "monospace"
|
||||
style = "Bold Italic"
|
||||
|
||||
[font.normal]
|
||||
family = "monospace"
|
||||
style = "Medium Italic"
|
||||
|
||||
[font.offset]
|
||||
x = 0
|
||||
y = 0
|
||||
size = 28
|
||||
|
||||
[[hints.enabled]]
|
||||
command = "xdg-open"
|
||||
|
|
|
@ -5,12 +5,10 @@ alsa-firmware
|
|||
alsa-plugins
|
||||
alsa-utils
|
||||
amd-ucode
|
||||
android-tools
|
||||
asp
|
||||
autoconf
|
||||
autogen
|
||||
automake
|
||||
b43-fwcutter
|
||||
base
|
||||
bash-completion
|
||||
bat
|
||||
|
@ -22,7 +20,6 @@ binutils
|
|||
bison
|
||||
blueman
|
||||
bluez-utils
|
||||
boost
|
||||
brother-dcp-l2540dw-cups-bin
|
||||
brother-dcp-l2540dw-lpr-bin
|
||||
bustle
|
||||
|
@ -40,7 +37,6 @@ check
|
|||
chrpath
|
||||
clapper
|
||||
cmake
|
||||
colordiff
|
||||
coppwr-bin
|
||||
cpio
|
||||
cryptsetup
|
||||
|
@ -104,6 +100,7 @@ gdb-dashboard
|
|||
gettext
|
||||
ghcup-hs-bin
|
||||
git
|
||||
gleam-bin
|
||||
glib2-devel
|
||||
gnu-netcat
|
||||
gnuplot
|
||||
|
@ -136,6 +133,7 @@ hadolint-bin
|
|||
haveged
|
||||
hdparm
|
||||
helvum
|
||||
hexyl
|
||||
hotdoc
|
||||
htop
|
||||
hunspell-en_gb
|
||||
|
@ -159,10 +157,7 @@ less
|
|||
libdeflate
|
||||
libdvdcss
|
||||
libglvnd
|
||||
libgsf
|
||||
libopenraw
|
||||
libportal
|
||||
libpwquality
|
||||
libqalculate
|
||||
libreoffice-still
|
||||
libsndfile
|
||||
|
@ -196,6 +191,7 @@ man-db
|
|||
man-pages
|
||||
mdadm
|
||||
mediainfo
|
||||
mergiraf-bin
|
||||
mesa
|
||||
mesa-demos
|
||||
meson
|
||||
|
@ -271,7 +267,6 @@ pptpclient
|
|||
python
|
||||
python-dbus
|
||||
python-lxml
|
||||
python-pandocfilters
|
||||
python-poetry
|
||||
python-pygments
|
||||
qpdf
|
||||
|
@ -291,7 +286,6 @@ ruff
|
|||
rust-bindgen
|
||||
rustup
|
||||
rye
|
||||
s-nail
|
||||
sccache
|
||||
sdparm
|
||||
sed
|
||||
|
@ -326,18 +320,10 @@ transmission-cli
|
|||
transmission-gtk
|
||||
trash-cli
|
||||
tree-sitter-cli
|
||||
ttf-bitstream-vera
|
||||
ttf-caladea
|
||||
ttf-carlito
|
||||
ttf-croscore
|
||||
ttf-dejavu
|
||||
ttf-font-awesome
|
||||
ttf-hack
|
||||
ttf-jetbrains-mono
|
||||
ttf-liberation
|
||||
ttf-nerd-fonts-symbols
|
||||
ttf-opensans
|
||||
ttf-ubuntu-font-family
|
||||
typst
|
||||
unrar
|
||||
unzip
|
||||
|
|
14
cargo/.cargo/config.toml
Normal file
14
cargo/.cargo/config.toml
Normal file
|
@ -0,0 +1,14 @@
|
|||
[target.x86_64-unknown-linux-gnu]
|
||||
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
|
||||
|
||||
[build]
|
||||
rustc-wrapper = "sccache"
|
||||
|
||||
[unstable]
|
||||
codegen-backend = true
|
||||
|
||||
[profile.debug]
|
||||
codegen-backend = "cranelift"
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
|
@ -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
|
|
@ -1 +0,0 @@
|
|||
scrot_dir=/home/core/Pictures
|
|
@ -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
|
|
@ -14,3 +14,5 @@ DISABLE_RTKIT=1
|
|||
PIPEWIRE_LOG_COLOR=force
|
||||
|
||||
SYSTEMD_LESS=FRXMK
|
||||
|
||||
RUST_BACKTRACE=full
|
||||
|
|
3
fish/.config/fish/functions/gsp.fish
Normal file
3
fish/.config/fish/functions/gsp.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function gsp --wraps=gst-play-1.0 --description 'alias gsp=gst-play-1.0'
|
||||
gst-play-1.0 $argv
|
||||
end
|
|
@ -1,80 +0,0 @@
|
|||
[flake8]
|
||||
|
||||
# Specify the number of subprocesses that Flake8 will use to run checks in parallel.
|
||||
jobs = auto
|
||||
|
||||
# Select the formatter used to display errors to the user.
|
||||
format = default
|
||||
|
||||
# Print the total number of errors.
|
||||
count = True
|
||||
# Print the source code generating the error/warning in question.
|
||||
show-source = True
|
||||
# Count the number of occurrences of each error/warning code and print a report.
|
||||
statistics = True
|
||||
|
||||
# Provide a comma-separated list of glob patterns to exclude from checks.
|
||||
exclude =
|
||||
# git folder
|
||||
.git,
|
||||
# python cache
|
||||
__pycache__,
|
||||
# pytest cache
|
||||
.pytest_cache,
|
||||
# mypy cache
|
||||
.mypy_cache
|
||||
# Provide a comma-separate list of glob patterns to include for checks.
|
||||
filename =
|
||||
*.py
|
||||
|
||||
# Provide a custom list of builtin functions, objects, names, etc.
|
||||
builtins =
|
||||
|
||||
# Report all errors, even if it is on the same line as a `# NOQA` comment.
|
||||
disable-noqa = False
|
||||
|
||||
# Set the maximum length that any line (with some exceptions) may be.
|
||||
max-line-length = 160
|
||||
# Set the maximum allowed McCabe complexity value for a block of code.
|
||||
max-complexity = 10
|
||||
# Toggle whether pycodestyle should enforce matching the indentation of the opening bracket’s line.
|
||||
# incluences E131 and E133
|
||||
hang-closing = True
|
||||
|
||||
# ERROR CODES
|
||||
#
|
||||
# E/W - PEP8 errors/warnings (pycodestyle)
|
||||
# F - linting errors (pyflakes)
|
||||
# C - McCabe complexity error (mccabe)
|
||||
#
|
||||
# E133 - closing bracket is missing indentation (conflicts with black)
|
||||
# E203 - whitespace before ‘:’ (conflicts with black)
|
||||
# W503 - line break before binary operator
|
||||
# F401 - module imported but unused
|
||||
# F403 - ‘from module import *’ used; unable to detect undefined names
|
||||
#
|
||||
|
||||
# Specify a list of codes to ignore.
|
||||
ignore = E133,E501,W503
|
||||
|
||||
# Specify the list of error codes you wish Flake8 to report.
|
||||
select =
|
||||
E,
|
||||
W,
|
||||
F,
|
||||
C
|
||||
# Specify a list of mappings of files and the codes that should be ignored for the entirety of the
|
||||
# file.
|
||||
per-file-ignores =
|
||||
__init__.py:F401,F403
|
||||
|
||||
# Enable off-by-default extensions.
|
||||
enable-extensions =
|
||||
|
||||
# Enable PyFlakes syntax checking of doctests in docstrings.
|
||||
doctests = True
|
||||
|
||||
# Specify which files are checked by PyFlakes for doctest syntax.
|
||||
include-in-doctest =
|
||||
# Specify which files are not to be checked by PyFlakes for doctest syntax.
|
||||
exclude-in-doctest =
|
|
@ -5,8 +5,7 @@
|
|||
<alias>
|
||||
<family>monospace</family>
|
||||
<prefer>
|
||||
<family>JetBrains Mono</family>
|
||||
<family>Hack</family>
|
||||
<family>JetBrains Mono SemiBold</family>
|
||||
<family>Source Code Pro</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
<family>Font Awesome 6 Free</family>
|
||||
|
|
|
@ -1,15 +1,10 @@
|
|||
# vim: ft=dosini
|
||||
|
||||
term = foot-extra
|
||||
login-shell = no
|
||||
shell = tmux attach -t scratch
|
||||
|
||||
font = monospace:style=Medium Italic:size=26
|
||||
font-bold = monospace:style=Bold:size=26
|
||||
font-italic = monospace:style=SemiBold Italic:size=26
|
||||
font-bold-italic = monospace:style=Bold Italic:size=26
|
||||
box-drawings-uses-font-glyphs = yes
|
||||
dpi-aware = no
|
||||
term = foot-extra
|
||||
login-shell = no
|
||||
shell = tmux attach -t scratch
|
||||
font = monospace:size=28
|
||||
font-monospace-warn = no
|
||||
|
||||
[scrollback]
|
||||
lines = 0
|
||||
|
@ -51,3 +46,4 @@ show-urls-copy = Control+Shift+e
|
|||
|
||||
[tweak]
|
||||
max-shm-pool-size-mb = 2048
|
||||
sixel = no
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
vim.bo.commentstring = "-- %s"
|
|
@ -1,55 +0,0 @@
|
|||
" Taken from https://github.com/sdiehl/vim-cabalfmt
|
||||
|
||||
if !exists("g:cabalfmt_command")
|
||||
let g:cabalfmt_command = "cabal-fmt"
|
||||
endif
|
||||
|
||||
if !exists("g:cabalfmt_options")
|
||||
let g:cabalfmt_options = [""]
|
||||
endif
|
||||
|
||||
function! s:OverwriteBuffer(output)
|
||||
if &modifiable
|
||||
let l:curw = winsaveview()
|
||||
try | silent undojoin | catch | endtry
|
||||
let splitted = split(a:output, '\n')
|
||||
if line('$') > len(splitted)
|
||||
execute len(splitted) .',$delete'
|
||||
endif
|
||||
call setline(1, splitted)
|
||||
call winrestview(l:curw)
|
||||
else
|
||||
echom "Cannot write to non-modifiable buffer"
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! s:RunCabal()
|
||||
if exists("bufname")
|
||||
let output = system(g:cabalfmt_command . " " . join(g:cabalfmt_options, ' ') . " " . bufname("%"))
|
||||
else
|
||||
let stdin = join(getline(1, '$'), "\n")
|
||||
let output = system(g:cabalfmt_command . " " . join(g:cabalfmt_options, ' '), stdin)
|
||||
endif
|
||||
if v:shell_error != 0
|
||||
echom output
|
||||
else
|
||||
call s:OverwriteBuffer(output)
|
||||
if exists("bufname")
|
||||
write
|
||||
endif
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! s:CabalHaskell()
|
||||
if executable(g:cabalfmt_command)
|
||||
call s:RunCabal()
|
||||
else
|
||||
echom "cabal-fmt executable not found"
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! RunCabal()
|
||||
call s:CabalHaskell()
|
||||
endfunction
|
||||
|
||||
nnoremap <buffer> <silent> gq :call RunCabal()<CR>
|
|
@ -1,29 +0,0 @@
|
|||
" Taken from https://github.com/danidiaz/miscellany/blob/master/linux/.vim/ftplugin/haskell/movements.vim
|
||||
" Next top-level type signature
|
||||
nnoremap <script> <silent> ]f /^\w[^:=$]*\(::\\|\n\s*::\)<CR>
|
||||
" Previous top-level type signature
|
||||
nnoremap <script> <silent> [f ?^\w[^:=$]*::\(::\\|\n\s*::\)<CR>
|
||||
" Next type signature
|
||||
nnoremap <script> <silent> ]l /^\s*\w[^:=$]*\(::\\|\n\s*::\)<CR>
|
||||
" Previous type signature
|
||||
nnoremap <script> <silent> [l ?^\s*\w[^:=$]*\(::\\|\n\s*::\)<CR>
|
||||
" Next data declaration
|
||||
nnoremap <script> <silent> ]t /^\(data \\|newtype \\|type \\|class\)<CR>
|
||||
" Previous data declaration
|
||||
nnoremap <script> <silent> [t ?^\(data \\|newtype \\|type \\|class\)<CR>
|
||||
" Beginning of imports
|
||||
nnoremap <script> <silent> [i gg/^import <CR>z<CR>
|
||||
" End of imports
|
||||
nnoremap <script> <silent> [I G?^import <CR>zb
|
||||
" Beginning of module exports
|
||||
nnoremap <script> <silent> [m gg/^module <CR>z<CR>
|
||||
" End of module exports (wonky)
|
||||
nnoremap <script> <silent> [M gg/^\s*)\s*where\s*$<CR>zb<CR>
|
||||
" Next named chunk of documentation
|
||||
" https://www.haskell.org/haddock/doc/html/ch03s05.html
|
||||
nnoremap <script> <silent> ]n /^-- \$\w\+<CR>z<CR>
|
||||
" Previous named chunk of documentation
|
||||
nnoremap <script> <silent> [n ?^-- \$\w\+<CR>z<CR>
|
||||
|
||||
" Disable vim-matchup
|
||||
autocmd! BufEnter <buffer> :NoMatchParen
|
|
@ -9,7 +9,7 @@ vim.keymap.set('n', 'cbu', ":Dispatch! cargo update<CR>" , { noremap=true, bu
|
|||
vim.keymap.set('n', ',r' , ":CargoReload<CR>" , { noremap=true, buffer=0 })
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufReadPre", "BufWinEnter" }, {
|
||||
pattern = { "*/git/checkouts/*", "*/toolchains/*", "*cargo/registry/*" },
|
||||
pattern = { "*/git/checkouts/*", "*/toolchains/*", "*cargo/registry/*", "*target/*/build/*" },
|
||||
callback = function()
|
||||
vim.bo.buflisted = false
|
||||
end,
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
local remap = vim.keymap.set
|
||||
local opts = { noremap=true, silent=true, unique=true }
|
||||
|
||||
-- `a/i` text objects
|
||||
require('mini.ai').setup()
|
||||
-- Diff hunks
|
||||
require('mini.diff').setup({
|
||||
mappings = {
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
require("various-textobjs").setup({ keymaps = { useDefaults = false } })
|
||||
|
||||
vim.keymap.set({"o", "x"}, "ae", function () require("various-textobjs").entireBuffer() end)
|
||||
vim.keymap.set({"o", "x"}, "ii", function () require("various-textobjs").indentation(true, true) end)
|
||||
vim.keymap.set({"o", "x"}, "ai", function () require("various-textobjs").indentation(false, true) end)
|
||||
vim.keymap.set({"o", "x"}, "as", function () require("various-textobjs").subword(false) end)
|
||||
vim.keymap.set({"o", "x"}, "is", function () require("various-textobjs").subword(true) end)
|
||||
vim.keymap.set({"o", "x"}, "?" , function () require("various-textobjs").toNextClosingBracket() end)
|
|
@ -64,9 +64,6 @@ vim.g.mapleader = " "
|
|||
vim.g.maplocalleader = ","
|
||||
-- vim-dispatch
|
||||
vim.g.dispatch_no_maps = 1
|
||||
-- vim-matchup
|
||||
vim.g.matchup_matchparen_offscreen = { method = 'popup', fullwidth = true }
|
||||
vim.g.matchup_surround_enabled = 1
|
||||
-- No default mappings for tmux navigator
|
||||
vim.g.tmux_navigator_no_mappings = 1
|
||||
-- Write the current buffer, but only if changed before navigating from Vim to tmux pane
|
||||
|
|
|
@ -161,12 +161,12 @@ local on_attach = function(client_id, client, bufnr)
|
|||
|
||||
for _, mappings in pairs(lsp_key_mappings) do
|
||||
local capability, mode, lhs, rhs = unpack(mappings)
|
||||
if client.supports_method(capability) then
|
||||
if client:supports_method(capability) then
|
||||
vim.api.nvim_buf_set_keymap(bufnr, mode, lhs, rhs, opts)
|
||||
end
|
||||
end
|
||||
|
||||
if client.supports_method('textDocument/codeLens') then
|
||||
if client:supports_method('textDocument/codeLens') then
|
||||
vim.api.nvim_create_autocmd({"CursorHold", "CursorHoldI", "InsertLeave"}, {
|
||||
group = lsp_augroup_id,
|
||||
buffer = bufnr,
|
||||
|
@ -174,7 +174,7 @@ local on_attach = function(client_id, client, bufnr)
|
|||
})
|
||||
end
|
||||
|
||||
if client.supports_method('textDocument/documentHighlight') then
|
||||
if client:supports_method('textDocument/documentHighlight') then
|
||||
vim.api.nvim_create_autocmd("CursorHold", {
|
||||
group = lsp_augroup_id,
|
||||
buffer = bufnr,
|
||||
|
@ -187,7 +187,7 @@ local on_attach = function(client_id, client, bufnr)
|
|||
})
|
||||
end
|
||||
|
||||
if client.supports_method('textDocument/inlayHint') then
|
||||
if client:supports_method('textDocument/inlayHint') then
|
||||
vim.lsp.inlay_hint.enable(false)
|
||||
end
|
||||
end
|
||||
|
@ -210,7 +210,7 @@ vim.api.nvim_create_autocmd("LspAttach", {
|
|||
|
||||
for _, mappings in pairs(lsp_key_mappings) do
|
||||
local capability, mode, lhs, rhs = unpack(mappings)
|
||||
if client.supports_method(capability) then
|
||||
if client:supports_method(capability) then
|
||||
vim.api.nvim_buf_set_keymap(bufnr, mode, lhs, rhs, opts)
|
||||
end
|
||||
end
|
||||
|
@ -236,7 +236,7 @@ vim.api.nvim_create_autocmd("LspDetach", {
|
|||
|
||||
for _, mappings in pairs(lsp_key_mappings) do
|
||||
local capability, mode, lhs, _ = unpack(mappings)
|
||||
if client.supports_method(capability) then
|
||||
if client:supports_method(capability) then
|
||||
vim.api.nvim_buf_del_keymap(bufnr, mode, lhs)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -11,10 +11,6 @@ require "paq" {
|
|||
'SanchayanMaity/gitlinker.nvim' ,
|
||||
-- Quickfix
|
||||
'yorickpeterse/nvim-pqf' ,
|
||||
-- Text objects
|
||||
'wellle/targets.vim' ,
|
||||
'chrisgrieser/nvim-various-textobjs',
|
||||
'andymass/vim-matchup' ,
|
||||
-- Async jobs
|
||||
'nvim-lua/plenary.nvim' ,
|
||||
'tpope/vim-dispatch' ,
|
||||
|
|
|
@ -41,9 +41,6 @@ require'nvim-treesitter.configs'.setup {
|
|||
use_virtual_text = true,
|
||||
lint_events = { "BufWrite", "CursorHold" },
|
||||
},
|
||||
matchup = {
|
||||
enable = true,
|
||||
},
|
||||
}
|
||||
|
||||
require "nvim-treesitter.parsers".get_parser_configs().lean = {
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[pycodestyle]
|
||||
count = False
|
||||
ignore = E402,E501,W503
|
||||
statistics = True
|
|
@ -1,594 +0,0 @@
|
|||
[MASTER]
|
||||
|
||||
# A comma-separated list of package or module names from where C extensions may
|
||||
# be loaded. Extensions are loading into the active Python interpreter and may
|
||||
# run arbitrary code.
|
||||
extension-pkg-allow-list=
|
||||
|
||||
# A comma-separated list of package or module names from where C extensions may
|
||||
# be loaded. Extensions are loading into the active Python interpreter and may
|
||||
# run arbitrary code. (This is an alternative name to extension-pkg-allow-list
|
||||
# for backward compatibility.)
|
||||
extension-pkg-whitelist=
|
||||
|
||||
# Return non-zero exit code if any of these messages/categories are detected,
|
||||
# even if score is above --fail-under value. Syntax same as enable. Messages
|
||||
# specified are enabled, while categories only check already-enabled messages.
|
||||
fail-on=
|
||||
|
||||
# Specify a score threshold to be exceeded before program exits with error.
|
||||
fail-under=10.0
|
||||
|
||||
# Files or directories to be skipped. They should be base names, not paths.
|
||||
ignore=CVS
|
||||
|
||||
# Add files or directories matching the regex patterns to the ignore-list. The
|
||||
# regex matches against paths and can be in Posix or Windows format.
|
||||
ignore-paths=
|
||||
|
||||
# Files or directories matching the regex patterns are skipped. The regex
|
||||
# matches against base names, not paths.
|
||||
ignore-patterns=
|
||||
|
||||
# Python code to execute, usually for sys.path manipulation such as
|
||||
# pygtk.require().
|
||||
#init-hook=
|
||||
|
||||
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
|
||||
# number of processors available to use.
|
||||
jobs=1
|
||||
|
||||
# Control the amount of potential inferred values when inferring a single
|
||||
# object. This can help the performance when dealing with large functions or
|
||||
# complex, nested conditions.
|
||||
limit-inference-results=100
|
||||
|
||||
# List of plugins (as comma separated values of python module names) to load,
|
||||
# usually to register additional checkers.
|
||||
load-plugins=
|
||||
|
||||
# Pickle collected data for later comparisons.
|
||||
persistent=yes
|
||||
|
||||
# Minimum Python version to use for version dependent checks. Will default to
|
||||
# the version used to run pylint.
|
||||
py-version=3.9
|
||||
|
||||
# When enabled, pylint would attempt to guess common misconfiguration and emit
|
||||
# user-friendly hints instead of false-positive error messages.
|
||||
suggestion-mode=yes
|
||||
|
||||
# Allow loading of arbitrary C extensions. Extensions are imported into the
|
||||
# active Python interpreter and may run arbitrary code.
|
||||
unsafe-load-any-extension=no
|
||||
|
||||
|
||||
[MESSAGES CONTROL]
|
||||
|
||||
# Only show warnings with the listed confidence levels. Leave empty to show
|
||||
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED.
|
||||
confidence=
|
||||
|
||||
# Disable the message, report, category or checker with the given id(s). You
|
||||
# can either give multiple identifiers separated by comma (,) or put this
|
||||
# option multiple times (only on the command line, not in the configuration
|
||||
# file where it should appear only once). You can also use "--disable=all" to
|
||||
# disable everything first and then reenable specific checks. For example, if
|
||||
# you want to run only the similarities checker, you can use "--disable=all
|
||||
# --enable=similarities". If you want to run only the classes checker, but have
|
||||
# no Warning level messages displayed, use "--disable=all --enable=classes
|
||||
# --disable=W".
|
||||
disable=raw-checker-failed,
|
||||
bad-inline-option,
|
||||
locally-disabled,
|
||||
file-ignored,
|
||||
suppressed-message,
|
||||
useless-suppression,
|
||||
deprecated-pragma,
|
||||
use-symbolic-message-instead,
|
||||
missing-class-docstring,
|
||||
missing-function-docstring,
|
||||
missing-module-docstring,
|
||||
global-statement,
|
||||
blacklisted-name,
|
||||
fixme,
|
||||
input-builtin,
|
||||
invalid-characters-in-docstring,
|
||||
invalid-name,
|
||||
invalid-str-codec,
|
||||
line-too-long,
|
||||
round-builtin,
|
||||
too-few-public-methods,
|
||||
too-many-ancestors,
|
||||
too-many-arguments,
|
||||
too-many-boolean-expressions,
|
||||
too-many-branches,
|
||||
too-many-instance-attributes,
|
||||
too-many-lines,
|
||||
too-many-locals,
|
||||
too-many-nested-blocks,
|
||||
too-many-public-methods,
|
||||
too-many-return-statements,
|
||||
too-many-statements,
|
||||
wrong-spelling-in-comment,
|
||||
wrong-spelling-in-docstring,
|
||||
|
||||
# Enable the message, report, category or checker with the given id(s). You can
|
||||
# either give multiple identifier separated by comma (,) or put this option
|
||||
# multiple time (only on the command line, not in the configuration file where
|
||||
# it should appear only once). See also the "--disable" option for examples.
|
||||
enable=c-extension-no-member
|
||||
|
||||
|
||||
[REPORTS]
|
||||
|
||||
# Python expression which should return a score less than or equal to 10. You
|
||||
# have access to the variables 'error', 'warning', 'refactor', and 'convention'
|
||||
# which contain the number of messages in each category, as well as 'statement'
|
||||
# which is the total number of statements analyzed. This score is used by the
|
||||
# global evaluation report (RP0004).
|
||||
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
|
||||
|
||||
# Template used to display messages. This is a python new-style format string
|
||||
# used to format the message information. See doc for all details.
|
||||
#msg-template=
|
||||
|
||||
# Set the output format. Available formats are text, parseable, colorized, json
|
||||
# and msvs (visual studio). You can also give a reporter class, e.g.
|
||||
# mypackage.mymodule.MyReporterClass.
|
||||
output-format=text
|
||||
|
||||
# Tells whether to display a full report or only the messages.
|
||||
reports=no
|
||||
|
||||
# Activate the evaluation score.
|
||||
score=yes
|
||||
|
||||
|
||||
[REFACTORING]
|
||||
|
||||
# Maximum number of nested blocks for function / method body
|
||||
max-nested-blocks=5
|
||||
|
||||
# Complete name of functions that never returns. When checking for
|
||||
# inconsistent-return-statements if a never returning function is called then
|
||||
# it will be considered as an explicit return statement and no message will be
|
||||
# printed.
|
||||
never-returning-functions=sys.exit,argparse.parse_error
|
||||
|
||||
|
||||
[SIMILARITIES]
|
||||
|
||||
# Comments are removed from the similarity computation
|
||||
ignore-comments=yes
|
||||
|
||||
# Docstrings are removed from the similarity computation
|
||||
ignore-docstrings=yes
|
||||
|
||||
# Imports are removed from the similarity computation
|
||||
ignore-imports=no
|
||||
|
||||
# Signatures are removed from the similarity computation
|
||||
ignore-signatures=no
|
||||
|
||||
# Minimum lines number of a similarity.
|
||||
min-similarity-lines=4
|
||||
|
||||
|
||||
[STRING]
|
||||
|
||||
# This flag controls whether inconsistent-quotes generates a warning when the
|
||||
# character used as a quote delimiter is used inconsistently within a module.
|
||||
check-quote-consistency=no
|
||||
|
||||
# This flag controls whether the implicit-str-concat should generate a warning
|
||||
# on implicit string concatenation in sequences defined over several lines.
|
||||
check-str-concat-over-line-jumps=no
|
||||
|
||||
|
||||
[BASIC]
|
||||
|
||||
# Naming style matching correct argument names.
|
||||
argument-naming-style=any
|
||||
|
||||
# Regular expression matching correct argument names. Overrides argument-
|
||||
# naming-style.
|
||||
#argument-rgx=
|
||||
|
||||
# Naming style matching correct attribute names.
|
||||
attr-naming-style=any
|
||||
|
||||
# Regular expression matching correct attribute names. Overrides attr-naming-
|
||||
# style.
|
||||
#attr-rgx=
|
||||
|
||||
# Bad variable names which should always be refused, separated by a comma.
|
||||
bad-names=foo,
|
||||
bar,
|
||||
baz,
|
||||
toto,
|
||||
tutu,
|
||||
tata
|
||||
|
||||
# Bad variable names regexes, separated by a comma. If names match any regex,
|
||||
# they will always be refused
|
||||
bad-names-rgxs=
|
||||
|
||||
# Naming style matching correct class attribute names.
|
||||
class-attribute-naming-style=any
|
||||
|
||||
# Regular expression matching correct class attribute names. Overrides class-
|
||||
# attribute-naming-style.
|
||||
#class-attribute-rgx=
|
||||
|
||||
# Naming style matching correct class constant names.
|
||||
class-const-naming-style=UPPER_CASE
|
||||
|
||||
# Regular expression matching correct class constant names. Overrides class-
|
||||
# const-naming-style.
|
||||
#class-const-rgx=
|
||||
|
||||
# Naming style matching correct class names.
|
||||
class-naming-style=PascalCase
|
||||
|
||||
# Regular expression matching correct class names. Overrides class-naming-
|
||||
# style.
|
||||
#class-rgx=
|
||||
|
||||
# Naming style matching correct constant names.
|
||||
const-naming-style=UPPER_CASE
|
||||
|
||||
# Regular expression matching correct constant names. Overrides const-naming-
|
||||
# style.
|
||||
#const-rgx=
|
||||
|
||||
# Minimum line length for functions/classes that require docstrings, shorter
|
||||
# ones are exempt.
|
||||
docstring-min-length=-1
|
||||
|
||||
# Naming style matching correct function names.
|
||||
function-naming-style=any
|
||||
|
||||
# Regular expression matching correct function names. Overrides function-
|
||||
# naming-style.
|
||||
#function-rgx=
|
||||
|
||||
# Good variable names which should always be accepted, separated by a comma.
|
||||
good-names=i,
|
||||
j,
|
||||
k,
|
||||
ex,
|
||||
Run,
|
||||
_
|
||||
|
||||
# Good variable names regexes, separated by a comma. If names match any regex,
|
||||
# they will always be accepted
|
||||
good-names-rgxs=
|
||||
|
||||
# Include a hint for the correct naming format with invalid-name.
|
||||
include-naming-hint=no
|
||||
|
||||
# Naming style matching correct inline iteration names.
|
||||
inlinevar-naming-style=any
|
||||
|
||||
# Regular expression matching correct inline iteration names. Overrides
|
||||
# inlinevar-naming-style.
|
||||
#inlinevar-rgx=
|
||||
|
||||
# Naming style matching correct method names.
|
||||
method-naming-style=any
|
||||
|
||||
# Regular expression matching correct method names. Overrides method-naming-
|
||||
# style.
|
||||
#method-rgx=
|
||||
|
||||
# Naming style matching correct module names.
|
||||
module-naming-style=any
|
||||
|
||||
# Regular expression matching correct module names. Overrides module-naming-
|
||||
# style.
|
||||
#module-rgx=
|
||||
|
||||
# Colon-delimited sets of names that determine each other's naming style when
|
||||
# the name regexes allow several styles.
|
||||
name-group=
|
||||
|
||||
# Regular expression which should only match function or class names that do
|
||||
# not require a docstring.
|
||||
no-docstring-rgx=^_
|
||||
|
||||
# List of decorators that produce properties, such as abc.abstractproperty. Add
|
||||
# to this list to register other decorators that produce valid properties.
|
||||
# These decorators are taken in consideration only for invalid-name.
|
||||
property-classes=abc.abstractproperty
|
||||
|
||||
# Naming style matching correct variable names.
|
||||
variable-naming-style=any
|
||||
|
||||
# Regular expression matching correct variable names. Overrides variable-
|
||||
# naming-style.
|
||||
#variable-rgx=
|
||||
|
||||
|
||||
[VARIABLES]
|
||||
|
||||
# List of additional names supposed to be defined in builtins. Remember that
|
||||
# you should avoid defining new builtins when possible.
|
||||
additional-builtins=
|
||||
|
||||
# Tells whether unused global variables should be treated as a violation.
|
||||
allow-global-unused-variables=yes
|
||||
|
||||
# List of names allowed to shadow builtins
|
||||
allowed-redefined-builtins=
|
||||
|
||||
# List of strings which can identify a callback function by name. A callback
|
||||
# name must start or end with one of those strings.
|
||||
callbacks=cb_,
|
||||
_cb
|
||||
|
||||
# A regular expression matching the name of dummy variables (i.e. expected to
|
||||
# not be used).
|
||||
dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
|
||||
|
||||
# Argument names that match this expression will be ignored. Default to name
|
||||
# with leading underscore.
|
||||
ignored-argument-names=_.*|^ignored_|^unused_
|
||||
|
||||
# Tells whether we should check for unused import in __init__ files.
|
||||
init-import=no
|
||||
|
||||
# List of qualified module names which can have objects that can redefine
|
||||
# builtins.
|
||||
redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
|
||||
|
||||
|
||||
[TYPECHECK]
|
||||
|
||||
# List of decorators that produce context managers, such as
|
||||
# contextlib.contextmanager. Add to this list to register other decorators that
|
||||
# produce valid context managers.
|
||||
contextmanager-decorators=contextlib.contextmanager
|
||||
|
||||
# List of members which are set dynamically and missed by pylint inference
|
||||
# system, and so shouldn't trigger E1101 when accessed. Python regular
|
||||
# expressions are accepted.
|
||||
generated-members=
|
||||
|
||||
# Tells whether missing members accessed in mixin class should be ignored. A
|
||||
# class is considered mixin if its name matches the mixin-class-rgx option.
|
||||
ignore-mixin-members=yes
|
||||
|
||||
# Tells whether to warn about missing members when the owner of the attribute
|
||||
# is inferred to be None.
|
||||
ignore-none=yes
|
||||
|
||||
# This flag controls whether pylint should warn about no-member and similar
|
||||
# checks whenever an opaque object is returned when inferring. The inference
|
||||
# can return multiple potential results while evaluating a Python object, but
|
||||
# some branches might not be evaluated, which results in partial inference. In
|
||||
# that case, it might be useful to still emit no-member and other checks for
|
||||
# the rest of the inferred objects.
|
||||
ignore-on-opaque-inference=yes
|
||||
|
||||
# List of class names for which member attributes should not be checked (useful
|
||||
# for classes with dynamically set attributes). This supports the use of
|
||||
# qualified names.
|
||||
ignored-classes=optparse.Values,thread._local,_thread._local
|
||||
|
||||
# List of module names for which member attributes should not be checked
|
||||
# (useful for modules/projects where namespaces are manipulated during runtime
|
||||
# and thus existing member attributes cannot be deduced by static analysis). It
|
||||
# supports qualified module names, as well as Unix pattern matching.
|
||||
ignored-modules=
|
||||
|
||||
# Show a hint with possible names when a member name was not found. The aspect
|
||||
# of finding the hint is based on edit distance.
|
||||
missing-member-hint=yes
|
||||
|
||||
# The minimum edit distance a name should have in order to be considered a
|
||||
# similar match for a missing member name.
|
||||
missing-member-hint-distance=1
|
||||
|
||||
# The total number of similar names that should be taken in consideration when
|
||||
# showing a hint for a missing member.
|
||||
missing-member-max-choices=1
|
||||
|
||||
# Regex pattern to define which classes are considered mixins ignore-mixin-
|
||||
# members is set to 'yes'
|
||||
mixin-class-rgx=.*[Mm]ixin
|
||||
|
||||
# List of decorators that change the signature of a decorated function.
|
||||
signature-mutators=
|
||||
|
||||
|
||||
[FORMAT]
|
||||
|
||||
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
|
||||
expected-line-ending-format=
|
||||
|
||||
# Regexp for a line that is allowed to be longer than the limit.
|
||||
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
|
||||
|
||||
# Number of spaces of indent required inside a hanging or continued line.
|
||||
indent-after-paren=4
|
||||
|
||||
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
|
||||
# tab).
|
||||
indent-string=' '
|
||||
|
||||
# Maximum number of characters on a single line.
|
||||
max-line-length=160
|
||||
|
||||
# Maximum number of lines in a module.
|
||||
max-module-lines=10000
|
||||
|
||||
# Allow the body of a class to be on the same line as the declaration if body
|
||||
# contains single statement.
|
||||
single-line-class-stmt=no
|
||||
|
||||
# Allow the body of an if to be on the same line as the test if there is no
|
||||
# else.
|
||||
single-line-if-stmt=no
|
||||
|
||||
|
||||
[MISCELLANEOUS]
|
||||
|
||||
# List of note tags to take in consideration, separated by a comma.
|
||||
notes=FIXME,
|
||||
XXX,
|
||||
TODO
|
||||
|
||||
# Regular expression of note tags to take in consideration.
|
||||
#notes-rgx=
|
||||
|
||||
|
||||
[LOGGING]
|
||||
|
||||
# The type of string formatting that logging methods do. `old` means using %
|
||||
# formatting, `new` is for `{}` formatting.
|
||||
logging-format-style=old
|
||||
|
||||
# Logging modules to check that the string format arguments are in logging
|
||||
# function parameter format.
|
||||
logging-modules=logging
|
||||
|
||||
|
||||
[SPELLING]
|
||||
|
||||
# Limits count of emitted suggestions for spelling mistakes.
|
||||
max-spelling-suggestions=4
|
||||
|
||||
# Spelling dictionary name. Available dictionaries: none. To make it work,
|
||||
# install the 'python-enchant' package.
|
||||
spelling-dict=
|
||||
|
||||
# List of comma separated words that should be considered directives if they
|
||||
# appear and the beginning of a comment and should not be checked.
|
||||
spelling-ignore-comment-directives=fmt: on,fmt: off,noqa:,noqa,nosec,isort:skip,mypy:
|
||||
|
||||
# List of comma separated words that should not be checked.
|
||||
spelling-ignore-words=
|
||||
|
||||
# A path to a file that contains the private dictionary; one word per line.
|
||||
spelling-private-dict-file=
|
||||
|
||||
# Tells whether to store unknown words to the private dictionary (see the
|
||||
# --spelling-private-dict-file option) instead of raising a message.
|
||||
spelling-store-unknown-words=no
|
||||
|
||||
|
||||
[DESIGN]
|
||||
|
||||
# List of regular expressions of class ancestor names to ignore when counting
|
||||
# public methods (see R0903)
|
||||
exclude-too-few-public-methods=
|
||||
|
||||
# List of qualified class names to ignore when counting class parents (see
|
||||
# R0901)
|
||||
ignored-parents=
|
||||
|
||||
# Maximum number of arguments for function / method.
|
||||
max-args=5
|
||||
|
||||
# Maximum number of attributes for a class (see R0902).
|
||||
max-attributes=7
|
||||
|
||||
# Maximum number of boolean expressions in an if statement (see R0916).
|
||||
max-bool-expr=5
|
||||
|
||||
# Maximum number of branch for function / method body.
|
||||
max-branches=12
|
||||
|
||||
# Maximum number of locals for function / method body.
|
||||
max-locals=15
|
||||
|
||||
# Maximum number of parents for a class (see R0901).
|
||||
max-parents=7
|
||||
|
||||
# Maximum number of public methods for a class (see R0904).
|
||||
max-public-methods=20
|
||||
|
||||
# Maximum number of return / yield for function / method body.
|
||||
max-returns=6
|
||||
|
||||
# Maximum number of statements in function / method body.
|
||||
max-statements=50
|
||||
|
||||
# Minimum number of public methods for a class (see R0903).
|
||||
min-public-methods=2
|
||||
|
||||
|
||||
[CLASSES]
|
||||
|
||||
# Warn about protected attribute access inside special methods
|
||||
check-protected-access-in-special-methods=no
|
||||
|
||||
# List of method names used to declare (i.e. assign) instance attributes.
|
||||
defining-attr-methods=__init__,
|
||||
__new__,
|
||||
setUp,
|
||||
__post_init__
|
||||
|
||||
# List of member names, which should be excluded from the protected access
|
||||
# warning.
|
||||
exclude-protected=_asdict,
|
||||
_fields,
|
||||
_replace,
|
||||
_source,
|
||||
_make
|
||||
|
||||
# List of valid names for the first argument in a class method.
|
||||
valid-classmethod-first-arg=cls
|
||||
|
||||
# List of valid names for the first argument in a metaclass class method.
|
||||
valid-metaclass-classmethod-first-arg=cls
|
||||
|
||||
|
||||
[IMPORTS]
|
||||
|
||||
# List of modules that can be imported at any level, not just the top level
|
||||
# one.
|
||||
allow-any-import-level=
|
||||
|
||||
# Allow wildcard imports from modules that define __all__.
|
||||
allow-wildcard-with-all=no
|
||||
|
||||
# Analyse import fallback blocks. This can be used to support both Python 2 and
|
||||
# 3 compatible code, which means that the block might have code that exists
|
||||
# only in one or another interpreter, leading to false positives when analysed.
|
||||
analyse-fallback-blocks=no
|
||||
|
||||
# Deprecated modules which should not be used, separated by a comma.
|
||||
deprecated-modules=
|
||||
|
||||
# Output a graph (.gv or any supported image format) of external dependencies
|
||||
# to the given file (report RP0402 must not be disabled).
|
||||
ext-import-graph=
|
||||
|
||||
# Output a graph (.gv or any supported image format) of all (i.e. internal and
|
||||
# external) dependencies to the given file (report RP0402 must not be
|
||||
# disabled).
|
||||
import-graph=
|
||||
|
||||
# Output a graph (.gv or any supported image format) of internal dependencies
|
||||
# to the given file (report RP0402 must not be disabled).
|
||||
int-import-graph=
|
||||
|
||||
# Force import order to recognize a module as part of the standard
|
||||
# compatibility libraries.
|
||||
known-standard-library=
|
||||
|
||||
# Force import order to recognize a module as part of a third party library.
|
||||
known-third-party=enchant
|
||||
|
||||
# Couples of modules and preferred modules, separated by a comma.
|
||||
preferred-modules=
|
||||
|
||||
|
||||
[EXCEPTIONS]
|
||||
|
||||
# Exceptions that will emit a warning when being caught. Defaults to
|
||||
# "BaseException, Exception".
|
||||
overgeneral-exceptions=BaseException,
|
||||
Exception
|
|
@ -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")
|
|
@ -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);
|
||||
})();
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -2,66 +2,68 @@
|
|||
#![enable(unwrap_newtypes)]
|
||||
#![enable(unwrap_variant_newtypes)]
|
||||
(
|
||||
address: "127.0.0.1:6600",
|
||||
password: None,
|
||||
theme: None,
|
||||
cache_dir: None,
|
||||
on_song_change: None,
|
||||
volume_step: 5,
|
||||
scrolloff: 0,
|
||||
wrap_navigation: false,
|
||||
enable_mouse: false,
|
||||
status_update_interval_ms: 5000,
|
||||
select_current_song_on_change: false,
|
||||
theme : None,
|
||||
cache_dir : None,
|
||||
on_song_change : None,
|
||||
volume_step : 5,
|
||||
scrolloff : 0,
|
||||
wrap_navigation : false,
|
||||
enable_mouse : false,
|
||||
status_update_interval_ms : 5000,
|
||||
select_current_song_on_change : false,
|
||||
album_art: (
|
||||
method: None,
|
||||
),
|
||||
artists: (
|
||||
album_display_mode : NameOnly,
|
||||
album_sort_by : Date,
|
||||
),
|
||||
keybinds: (
|
||||
global: {
|
||||
":": CommandMode,
|
||||
"s": Stop,
|
||||
"<Tab>": NextTab,
|
||||
"1": SwitchToTab("Queue"),
|
||||
"2": SwitchToTab("Artists"),
|
||||
"q": Quit,
|
||||
">": NextTrack,
|
||||
"p": TogglePause,
|
||||
"<": PreviousTrack,
|
||||
"~": ShowHelp,
|
||||
"I": ShowCurrentSongInfo,
|
||||
":" : CommandMode,
|
||||
"s" : Stop,
|
||||
"<Tab>" : NextTab,
|
||||
"1" : SwitchToTab("Queue"),
|
||||
"2" : SwitchToTab("Artists"),
|
||||
"q" : Quit,
|
||||
">" : NextTrack,
|
||||
"p" : TogglePause,
|
||||
"<" : PreviousTrack,
|
||||
"~" : ShowHelp,
|
||||
"I" : ShowCurrentSongInfo,
|
||||
},
|
||||
navigation: {
|
||||
"<Up>": Up,
|
||||
"<Down>": Down,
|
||||
"<Left>": Left,
|
||||
"<Right>": Right,
|
||||
"<C-k>": PaneUp,
|
||||
"<C-j>": PaneDown,
|
||||
"<C-h>": PaneLeft,
|
||||
"<C-l>": PaneRight,
|
||||
"<C-u>": UpHalf,
|
||||
"N": PreviousResult,
|
||||
"a": Add,
|
||||
"A": AddAll,
|
||||
"n": NextResult,
|
||||
"g": Top,
|
||||
"<Space>": Select,
|
||||
"<C-Space>": InvertSelection,
|
||||
"G": Bottom,
|
||||
"<CR>": Confirm,
|
||||
"i": FocusInput,
|
||||
"J": MoveDown,
|
||||
"<C-d>": DownHalf,
|
||||
"/": EnterSearch,
|
||||
"<C-c>": Close,
|
||||
"<Esc>": Close,
|
||||
"K": MoveUp,
|
||||
"<Up>" : Up,
|
||||
"<Down>" : Down,
|
||||
"<Left>" : Left,
|
||||
"<Right>" : Right,
|
||||
"<C-k>" : PaneUp,
|
||||
"<C-j>" : PaneDown,
|
||||
"<C-h>" : PaneLeft,
|
||||
"<C-l>" : PaneRight,
|
||||
"<C-u>" : UpHalf,
|
||||
"N" : PreviousResult,
|
||||
"a" : Add,
|
||||
"A" : AddAll,
|
||||
"n" : NextResult,
|
||||
"g" : Top,
|
||||
"<Space>" : Select,
|
||||
"<C-Space>" : InvertSelection,
|
||||
"G" : Bottom,
|
||||
"<CR>" : Confirm,
|
||||
"i" : FocusInput,
|
||||
"J" : MoveDown,
|
||||
"<C-d>" : DownHalf,
|
||||
"/" : EnterSearch,
|
||||
"<C-c>" : Close,
|
||||
"<Esc>" : Close,
|
||||
"K" : MoveUp,
|
||||
},
|
||||
queue: {
|
||||
"D": DeleteAll,
|
||||
"<CR>": Play,
|
||||
"i": ShowInfo,
|
||||
"C": JumpToCurrent,
|
||||
"D" : DeleteAll,
|
||||
"<CR>" : Play,
|
||||
"i" : ShowInfo,
|
||||
"C" : JumpToCurrent,
|
||||
},
|
||||
),
|
||||
search: (
|
||||
|
@ -77,14 +79,14 @@
|
|||
),
|
||||
tabs: [
|
||||
(
|
||||
name: "Queue",
|
||||
border_type: None,
|
||||
pane: Pane(Queue),
|
||||
name : "Queue",
|
||||
border_type : None,
|
||||
pane : Pane(Queue),
|
||||
),
|
||||
(
|
||||
name: "Artists",
|
||||
border_type: None,
|
||||
pane: Pane(Artists),
|
||||
name : "Artists",
|
||||
border_type : None,
|
||||
pane : Pane(Artists),
|
||||
),
|
||||
],
|
||||
)
|
||||
|
|
|
@ -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
|
|
@ -1,6 +1,6 @@
|
|||
bar {
|
||||
position top
|
||||
font pango:JetBrains Mono, Font Awesome 6 Free 18
|
||||
font pango:JetBrains Mono SemiBold, Font Awesome 6 Free 22
|
||||
status_command i3status-rs
|
||||
colors {
|
||||
# Whole color settings
|
||||
|
|
|
@ -148,7 +148,7 @@ set-option -g status-left-length "80"
|
|||
set-option -g status-right-style none
|
||||
set-option -g status-right-length "80"
|
||||
set-window-option -g window-status-separator ""
|
||||
set-option -g status-left "#[bg=colour248,fg=colour237] #S #[bg=colour237,fg=colour241,nobold,noitalics,nounderscore]"
|
||||
set-option -g status-left "#[bg=colour248,fg=colour237] #S #[bg=colour237,fg=colour241,nobold,noitalics,nounderscore]"
|
||||
set-option -g status-right "#[bg=colour248,fg=colour237] %H:%M "
|
||||
set-window-option -g window-status-current-format "#[bg=colour214,fg=colour237,nobold,noitalics,nounderscore]#[bg=colour214,fg=colour239] #I #[bg=colour214,fg=colour239,bold] #W #[bg=colour237,fg=colour214,nobold,noitalics,nounderscore]"
|
||||
set-window-option -g window-status-format "#[bg=colour239,fg=colour237,noitalics]#[bg=colour239,fg=colour223] #I #[bg=colour239,fg=colour223] #W #[bg=colour237,fg=colour239,noitalics]"
|
||||
|
|
|
@ -4,5 +4,5 @@ tmuxp load -d personal
|
|||
tmuxp load -d gstreamer
|
||||
tmuxp load -d work
|
||||
tmuxp load -d audio-dev
|
||||
tmuxp load -d haskell
|
||||
tmuxp load -d rust
|
||||
tmuxp load -d code
|
||||
|
|
22
tmuxp/.config/tmuxp/code.yaml
Normal file
22
tmuxp/.config/tmuxp/code.yaml
Normal file
|
@ -0,0 +1,22 @@
|
|||
session_name: code
|
||||
windows:
|
||||
- window_name: Code-1
|
||||
start_directory: "~/GitSources"
|
||||
panes:
|
||||
-
|
||||
- window_name: Code-2
|
||||
start_directory: "~/GitSources"
|
||||
panes:
|
||||
-
|
||||
- window_name: Code-3
|
||||
start_directory: "~/GitSources"
|
||||
panes:
|
||||
-
|
||||
- window_name: Code-4
|
||||
start_directory: "~/GitSources"
|
||||
panes:
|
||||
-
|
||||
- window_name: Code-5
|
||||
start_directory: "~/GitSources"
|
||||
panes:
|
||||
-
|
|
@ -3,8 +3,7 @@ windows:
|
|||
- window_name: gstreamer
|
||||
start_directory: ~/GitSources/gstreamer
|
||||
panes:
|
||||
- shell_command:
|
||||
- nvim
|
||||
-
|
||||
- window_name: gstreamer
|
||||
start_directory: ~/GitSources/gstreamer
|
||||
panes:
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
session_name: Haskell
|
||||
windows:
|
||||
- window_name: Haskell-1
|
||||
start_directory: "~/GitSources/Haskell"
|
||||
panes:
|
||||
-
|
||||
- window_name: Haskell-2
|
||||
start_directory: "~/GitSources/Haskell"
|
||||
panes:
|
||||
-
|
||||
- window_name: Haskell-3
|
||||
start_directory: "~/GitSources/Haskell"
|
||||
panes:
|
||||
-
|
||||
- window_name: Haskell-4
|
||||
start_directory: "~/GitSources/Haskell"
|
||||
panes:
|
||||
-
|
||||
- window_name: Haskell-5
|
||||
start_directory: "~/GitSources/Haskell"
|
||||
panes:
|
||||
-
|
|
@ -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
|
Loading…
Reference in a new issue