Compare commits

..

80 Commits

Author SHA1 Message Date
09bb156e47 Merge stash 2025-12-07 00:46:32 +01:00
Robert Kmiec
1437d1826e Nvim: update config for lsp and add few minor plugins 2025-12-05 10:46:37 +00:00
Robert Kmieć
2aa4027f9d Nvim: add two new plugins hardtime, yadm 2025-06-28 23:55:49 +02:00
Robert Kmieć
704a095798 Nvim: add minuet and some other stuff 2025-06-12 22:43:41 +02:00
Robert Kmieć
04bdd470fd Git: Improve defaults 2025-06-12 22:43:41 +02:00
Robert Kmieć
3e2ee388e6 Awesome: add some minor adjustment to workflow 2025-06-12 22:43:41 +02:00
Robert Kmieć
ee2bbcf84f Nvim: add new shadow colorscheme 2025-04-23 21:56:21 +02:00
Robert Kmieć
c665c5ba37 Nvim: Update all plugins 2025-04-23 01:37:19 +02:00
Robert Kmieć
43e7fb01f5 Git: add gitmessage to gitignore 2025-04-23 01:32:05 +02:00
Robert Kmieć
6f0948c365 Nvim: improve blink and inlay hints, add heirline 2025-02-07 11:38:51 +01:00
Robert Kmieć
ec21773823 Nvim: add back codecompanion and add replace (Subvert) 2025-02-07 11:37:42 +01:00
Robert Kmieć
4ebfe540ad Nvim: use blink instead of cmp 2025-01-10 11:10:51 +01:00
Robert Kmieć
f6ecd9592c Nvim: use proper branches for colorschemes
disable image.nvim
2024-09-23 22:10:56 +02:00
Robert Kmieć
fcecb7f575 Nvim: update treesitter and use themify 2024-09-06 09:36:15 +02:00
Robert Kmieć
801ba0dfdf Nvim: new pugins + some disabled ones
Some experiments with AI
2024-08-06 23:55:21 +02:00
Robert Kmieć
0daaf4add5 Nvim: replace neodev with lazydev 2024-06-06 22:51:44 +02:00
Robert Kmieć
14cf97683d Nvim: minor tweaks for multiple plugins, better folds 2024-06-03 23:36:36 +02:00
Robert Kmieć
27eda40ccb Nvim: new plugins 2024-06-03 23:34:22 +02:00
Robert Kmieć
063a693f19 Nvim: switch from nvim-cmp to epo 2024-05-23 00:13:18 +02:00
Robert Kmieć
6cfad76308 Nvim: add git-dev 2024-05-22 23:49:24 +02:00
Robert Kmieć
6e13939c5b Nvim: minor cmake and telescope changes 2024-04-22 23:54:16 +02:00
Robert Kmieć
cd711ea4bf Nvim: add new note taking candidates 2024-04-22 23:52:55 +02:00
Robert Kmieć
388d2b0b30 Picom: sync config with mainstream 2024-03-29 09:34:37 +01:00
Robert Kmieć
687646da32 Nvim: many small changes around whole project 2024-03-29 09:33:27 +01:00
Robert Kmieć
a2832ed454 Nvim: add treesj and tmux
tmux integration doesn't work yet
2024-03-29 09:31:07 +01:00
Robert Kmieć
e67379b132 Nvim: use oil instead of nvim-tree, add screensaver 2024-03-29 09:25:49 +01:00
Robert Kmieć
157d72fe33 Fish: only load colors if they are defined 2024-03-03 23:43:43 +01:00
Robert Kmieć
d37d2c2493 Nvim: VeryLazy load telescope and which-key 2024-03-03 23:38:16 +01:00
Robert Kmieć
4bd5c09035 Nvim: add new plugins 2024-02-29 23:25:41 +01:00
Robert Kmieć
05e8624509 Gdb: ignore c++12 std 2024-02-26 12:58:15 +01:00
Robert Kmieć
fc417a90fd Git: moultiple improvements (mostly optimization) 2024-02-26 12:57:34 +01:00
Robert Kmieć
373581fd36 Vim: simplify config 2024-02-26 12:57:07 +01:00
Robert Kmieć
c55b301dc4 Nvim: update most of the plugins 2024-02-26 12:51:21 +01:00
Robert Kmieć
71f71cb3ce Alacritty: remove old yaml file 2024-02-26 12:49:40 +01:00
Robert Kmieć
0acc861edd Nvim: add dap, tshjkl bindings, working gitlinker 2023-11-28 23:23:34 +01:00
Robert Kmieć
dbc1095cb4 Nvim: update plugins with newer maintainers 2023-11-20 10:30:28 +01:00
Robert Kmieć
050795801f Nvim: csv and action preview 2023-10-29 23:16:16 +01:00
Robert Kmieć
c436875e4b Nvim: update all plugins to used ones, disable unused 2023-10-19 23:47:02 +02:00
Robert Kmieć
ec0ae0ee13 Nvim: add new plugins, optimize old 2023-09-23 01:21:02 +02:00
Robert Kmieć
48b7bcbf4f Fish: add bc alias 2023-09-23 01:19:25 +02:00
Robert Kmieć
8723c409b6 xbindkeys: remove chromium from ingore list 2023-09-23 01:09:06 +02:00
Robert Kmieć
3ceeb5b7fb Nvim: optimize config 2023-09-23 01:06:21 +02:00
Robert Kmieć
3729e67247 Git: add few bits to improve mergetool and diff 2023-08-17 23:44:27 +02:00
Robert Kmieć
89b4343ca1 Nvim: add missing files for various plugins 2023-08-17 23:43:39 +02:00
Robert Kmieć
0db7f3a9c2 Nvim: update clangd_extensions with new config format 2023-08-08 10:04:36 +02:00
Robert Kmieć
8e017728d2 Nvim: optimize startup time 2023-08-02 10:52:41 +02:00
Robert Kmieć
0bb033cca0 Nvim: add colorschemes file 2023-08-02 10:52:07 +02:00
Robert Kmieć
e254e6e313 Nvim: further cleanup 2023-07-24 11:01:08 +02:00
Robert Kmieć
55cc17b86a Nvim: remove unused modules, update configs 2023-07-24 11:00:32 +02:00
Robert Kmieć
9f04f73f5e Fish: fix completion path 2023-07-24 10:57:38 +02:00
Robert Kmieć
a1e245f38c Awesome: fix floating toggle 2023-07-24 10:56:09 +02:00
Robert Kmieć
d933a42841 Alacritty: sync list of themes 2023-07-24 10:55:20 +02:00
Robert Kmieć
64e3bfcf63 Nvim: enable neorg properly 2023-05-23 11:44:23 +02:00
Robert Kmieć
c4a1e560ed Nvim: disable silicon 2023-05-23 11:41:24 +02:00
Robert Kmieć
ebfb84e7fe Nvim: remove null-ls completion spell 2023-05-11 12:08:44 +02:00
Robert Kmieć
7253772baa Rofi: use new colorscheme 2023-05-09 23:20:49 +02:00
Robert Kmieć
90378c1a75 Nvim: update plugins config to 0.10.0 version 2023-05-09 23:20:03 +02:00
Robert Kmieć
44d1da2188 Fish: print directory content on cd 2023-05-09 23:19:30 +02:00
Robert Kmieć
00f8c3a002 alacritty/awesome: update fonts and colosrcheme 2023-05-09 23:18:53 +02:00
Robert Kmieć
08e34a3227 X: adjust font and colorscheme 2023-05-09 23:17:45 +02:00
Robert Kmieć
05c22419bd Nvim: navbuddy, menufacture (C-o), no virtual diag 2023-04-05 09:50:51 +02:00
Robert Kmieć
8dd3f1942b Nvim: add new plugins 2023-04-04 00:53:51 +02:00
Robert Kmieć
bff439a6c6 Awesome: first awesome config 2023-04-04 00:50:23 +02:00
Robert Kmieć
593d27f333 Nvim: add nvim-buddy 2023-04-02 23:16:37 +02:00
Robert Kmieć
2acb8c969d Fish: fix lsd aliases 2023-03-29 00:07:04 +02:00
Robert Kmieć
0b566445a1 Fish: switch from exa to lsd 2023-03-29 00:03:13 +02:00
Robert Kmieć
dd12fee249 Nvim: optimize config, change colorscheme to kanagawa 2023-03-23 09:00:08 +01:00
Robert Kmieć
f1e79ee50e Alacritty: sync with latest master branch 2023-03-23 09:00:08 +01:00
Robert Kmieć
a8dc526720 Fish: packer -> lazy small cleanup 2023-03-20 22:45:21 +01:00
Robert Kmieć
535acc9e4d Nvim: add init.lua file 2023-03-01 22:11:41 +01:00
Robert Kmieć
d1dbfe720d Nvim: initialize leap in lua script 2023-02-16 10:40:24 +01:00
Robert Kmieć
f327679ca9 nvim: move to lazy package manager 2023-02-14 14:43:11 +01:00
Robert Kmieć
cf374dbbb5 fix everything after merge 2023-01-24 00:24:24 +01:00
Robert Kmieć
d3168cf44e Nvim: luify config 2023-01-23 23:40:26 +01:00
Robert Kmieć
4ecf4cda2d Fish: use bat instead of cat if available 2023-01-23 23:38:07 +01:00
Robert Kmieć
8718d88f83 Alacritty: sync with latest upstream 2023-01-23 23:37:30 +01:00
Robert Kmieć
c9e0347a5d Fish: optionally add broot alias 2023-01-22 00:27:59 +01:00
Robert Kmieć
e702769f39 Nvim: switch to packer from Plug 2023-01-22 00:25:36 +01:00
Robert Kmieć
b240029029 Vim: remove coc from config 2022-12-30 11:53:20 +01:00
Robert Kmieć
6d2af89197 Nvim: move config to lua, first step 2022-12-30 11:52:52 +01:00
224 changed files with 5648 additions and 3728 deletions

View File

@@ -1,12 +1,17 @@
Xft.dpi: 96 Xft.dpi: 96
Xcursor.size: 16 Xcursor.size: 6
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.hintstyle: hintslight
! URxvt ! URxvt
URxvt.font:xft:IBM Plex Mono:size=8 URxvt.font:xft:iM WritingMonoS Nerd Font:size=12
URxvt.boldFont:xft:IBM Plex Mono:size=8 URxvt.boldFont:xft:iM WritingMonoS Nerd Font:size=12:style=bold
URxvt.italicFont:xft:IBM Plex Mono:size=8 URxvt.italicFont:xft:iM WritingMonoS Nerd Font:size=12:style=italic
URxvt.boldItalicFont:xft:IBM Plex Mono:size=8 URxvt.boldItalicFont:xft:iM WritingMonoS Nerd Font:size=12:style=bold italic
URxvt.secondaryScreen: 1 URxvt.secondaryScreen: 1
URxvt.secondaryScroll: 0 URxvt.secondaryScroll: 0
URxvt.letterSpace: -1
! General settings ! General settings
URxvt.iso14755 : false URxvt.iso14755 : false
@@ -36,43 +41,42 @@ URxvt.underlineURLs: True
URxvt.keysym.Shift-Control-C: perl:clipboard:copy URxvt.keysym.Shift-Control-C: perl:clipboard:copy
URxvt.keysym.Shift-Control-V: perl:clipboard:paste URxvt.keysym.Shift-Control-V: perl:clipboard:paste
! Font ! special
!URxvt.font: xft:Fantasque Sans Mono-10,xft:FontAwesome-10 *foreground: #fce8c3
!URxvt.boldFont: xft:Fantasque Sans Mono-10,xft:FontAwesome-10 *background: #1c1b19
URxvt.letterSpace: 0 *cursorColor: #fbb829
! Gruvbox theme ! black
URxvt.background: #282828 *color0: #1c1b19
URxvt.foreground: #ebdbb2 *color8: #918175
! Black + DarkGrey ! red
URxvt.color0: #282828 *color1: #ef2f27
URxvt.color8: #928374 *color9: #f75341
! DarkRed + Red
URxvt.color1: #cc241d
URxvt.color9: #fb4934
! DarkGreen + Green
URxvt.color2: #98971a
URxvt.color10: #b8bb26
! DarkYellow + Yellow
URxvt.color3: #d79921
URxvt.color11: #fabd2f
! DarkBlue + Blue
URxvt.color4: #458588
URxvt.color12: #83a598
! DarkMagenta + Magenta
URxvt.color5: #b16286
URxvt.color13: #d3869b
! DarkCyan + Cyan
URxvt.color6: #689d6a
URxvt.color14: #8ec07c
! LightGrey + White
URxvt.color7: #a89984
URxvt.color15: #ebdbb2
! Fading text on focus lost ! green
URxvt.fading: 30 *color2: #519f50
URxvt.cutchars: BACKSLASH '"'&()*,;<=>?@[]^{|}/ *color10: #98bc37
! yellow
*color3: #fbb829
*color11: #fed06e
! blue
*color4: #2c78bf
*color12: #68a8e4
! magenta
*color5: #e02c6d
*color13: #ff5c8f
! cyan
*color6: #0aaeb3
*color14: #2be4d0
! white
*color7: #baa67f
*color15: #fce8c3
! Xresources ! Xresources

View File

@@ -1,956 +0,0 @@
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Import additional configuration files
#
# Imports are loaded in order, skipping all missing files, with the importing
# file being loaded last. If a field is already present in a previous import, it
# will be replaced.
#
# All imports must either be absolute paths starting with `/`, or paths relative
# to the user's home directory starting with `~/`.
#import:
# - /path/to/alacritty.yml
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
#env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
# check the local terminfo database and use `alacritty` if it is
# available, otherwise `xterm-256color` is used.
#TERM: alacritty
window:
# Window dimensions (changes require restart)
#
# Number of lines/columns (not pixels) in the terminal. Both lines and columns
# must be non-zero for this to take effect. The number of columns must be at
# least `2`, while using a value of `0` for columns and lines will fall back
# to the window manager's recommended size
#dimensions:
# columns: 0
# lines: 0
# Window position (changes require restart)
#
# Specified in number of pixels.
# If the position is not set, the window manager will handle the placement.
#position:
# x: 0
# y: 0
# Window padding (changes require restart)
#
# Blank space added around the window in pixels. This padding is scaled
# by DPI and the specified value is always added at both opposing sides.
padding:
x: 15
y: 15
# Spread additional padding evenly around the terminal content.
#dynamic_padding: false
# Window decorations
#
# Values for `decorations`:
# - full: Borders and title bar
# - none: Neither borders nor title bar
#
# Values for `decorations` (macOS only):
# - transparent: Title bar, transparent background and title bar buttons
# - buttonless: Title bar, transparent background and no title bar buttons
#decorations: full
# Background opacity
#
# Window opacity as a floating point number from `0.0` to `1.0`.
# The value `0.0` is completely transparent and `1.0` is opaque.
#opacity: 1.0
# Startup Mode (changes require restart)
#
# Values for `startup_mode`:
# - Windowed
# - Maximized
# - Fullscreen
#
# Values for `startup_mode` (macOS only):
# - SimpleFullscreen
#startup_mode: Windowed
# Window title
#title: Alacritty
# Allow terminal applications to change Alacritty's window title.
#dynamic_title: true
# Window class (Linux/BSD only):
#class:
# Application instance name
#instance: Alacritty
# General application class
#general: Alacritty
# Decorations theme variant (Linux/BSD only)
#
# Override the variant of the GTK theme/Wayland client side decorations.
# Commonly supported values are `dark` and `light`. Set this to `None` to use
# the default theme variant.
#decorations_theme_variant: None
#scrolling:
# Maximum number of lines in the scrollback buffer.
# Specifying '0' will disable scrolling.
#history: 10000
# Scrolling distance multiplier.
#multiplier: 3
# Font configuration
font:
# Normal (roman) font face
normal:
# Font family
#
# Default:
# - (macOS) Menlo
# - (Linux/BSD) monospace
# - (Windows) Consolas
family: IBM Plex Mono Text
# The `style` can be specified to pick a specific face.
style: Text
# Bold font face
bold:
# Font family
#
# If the bold family is not specified, it will fall back to the
# value specified for the normal font.
#family: monospace
# The `style` can be specified to pick a specific face.
style: Bold
# Italic font face
italic:
# Font family
#
# If the italic family is not specified, it will fall back to the
# value specified for the normal font.
#family: monospace
# The `style` can be specified to pick a specific face.
style: Italic
# Bold italic font face
bold_italic:
# Font family
#
# If the bold italic family is not specified, it will fall back to the
# value specified for the normal font.
#family:
# The `style` can be specified to pick a specific face.
style: Bold Italic
# Point size
size: 8.0
# Offset is the extra space around each character. `offset.y` can be thought
# of as modifying the line spacing, and `offset.x` as modifying the letter
# spacing.
#offset:
# x: 0
# y: 0
# Glyph offset determines the locations of the glyphs within their cells with
# the default being at the bottom. Increasing `x` moves the glyph to the
# right, increasing `y` moves the glyph upward.
#glyph_offset:
# x: 0
# y: 0
# Use built-in font for box drawing characters.
#
# If `true`, Alacritty will use a custom built-in font for box drawing
# characters (Unicode points 2500 - 259f).
#
#builtin_box_drawing: true
# If `true`, bold text is drawn using the bright color variants.
#draw_bold_text_with_bright_colors: false
# Colors (Tomorrow Night)
#colors:
# Default colors
#primary:
# background: '#1d1f21'
# foreground: '#c5c8c6'
# Bright and dim foreground colors
#
# The dimmed foreground color is calculated automatically if it is not
# present. If the bright foreground color is not set, or
# `draw_bold_text_with_bright_colors` is `false`, the normal foreground
# color will be used.
#dim_foreground: '#828482'
#bright_foreground: '#eaeaea'
# Cursor colors
#
# Colors which should be used to draw the terminal cursor.
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#cursor:
# text: CellBackground
# cursor: CellForeground
# Vi mode cursor colors
#
# Colors for the cursor when the vi mode is active.
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#vi_mode_cursor:
# text: CellBackground
# cursor: CellForeground
# Search colors
#
# Colors used for the search bar and match highlighting.
#search:
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#matches:
# foreground: '#000000'
# background: '#ffffff'
#focused_match:
# foreground: '#ffffff'
# background: '#000000'
# Keyboard hints
#hints:
# First character in the hint label
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#start:
# foreground: '#1d1f21'
# background: '#e9ff5e'
# All characters after the first one in the hint label
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#end:
# foreground: '#e9ff5e'
# background: '#1d1f21'
# Line indicator
#
# Color used for the indicator displaying the position in history during
# search and vi mode.
#
# By default, these will use the opposing primary color.
#line_indicator:
# foreground: None
# background: None
# Footer bar
#
# Color used for the footer bar on the bottom, used by search regex input,
# hyperlink URI preview, etc.
#
#footer_bar:
# background: '#c5c8c6'
# foreground: '#1d1f21'
# Selection colors
#
# Colors which should be used to draw the selection area.
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#selection:
# text: CellBackground
# background: CellForeground
# Normal colors
#normal:
# black: '#1d1f21'
# red: '#cc6666'
# green: '#b5bd68'
# yellow: '#f0c674'
# blue: '#81a2be'
# magenta: '#b294bb'
# cyan: '#8abeb7'
# white: '#c5c8c6'
# Bright colors
#bright:
# black: '#666666'
# red: '#d54e53'
# green: '#b9ca4a'
# yellow: '#e7c547'
# blue: '#7aa6da'
# magenta: '#c397d8'
# cyan: '#70c0b1'
# white: '#eaeaea'
# Dim colors
#
# If the dim colors are not set, they will be calculated automatically based
# on the `normal` colors.
#dim:
# black: '#131415'
# red: '#864343'
# green: '#777c44'
# yellow: '#9e824c'
# blue: '#556a7d'
# magenta: '#75617b'
# cyan: '#5b7d78'
# white: '#828482'
# Indexed Colors
#
# The indexed colors include all colors from 16 to 256.
# When these are not set, they're filled with sensible defaults.
#
# Example:
# `- { index: 16, color: '#ff00ff' }`
#
#indexed_colors: []
# Transparent cell backgrounds
#
# Whether or not `window.opacity` applies to all cell backgrounds or only to
# the default background. When set to `true` all cells will be transparent
# regardless of their background color.
#transparent_background_colors: false
# Bell
#
# The bell is rung every time the BEL control character is received.
#bell:
# Visual Bell Animation
#
# Animation effect for flashing the screen when the visual bell is rung.
#
# Values for `animation`:
# - Ease
# - EaseOut
# - EaseOutSine
# - EaseOutQuad
# - EaseOutCubic
# - EaseOutQuart
# - EaseOutQuint
# - EaseOutExpo
# - EaseOutCirc
# - Linear
#animation: EaseOutExpo
# Duration of the visual bell flash in milliseconds. A `duration` of `0` will
# disable the visual bell animation.
#duration: 0
# Visual bell animation color.
#color: '#ffffff'
# Bell Command
#
# This program is executed whenever the bell is rung.
#
# When set to `command: None`, no command will be executed.
#
# Example:
# command:
# program: notify-send
# args: ["Hello, World!"]
#
#command: None
#selection:
# This string contains all characters that are used as separators for
# "semantic words" in Alacritty.
#semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
# When set to `true`, selected text will be copied to the primary clipboard.
#save_to_clipboard: false
#cursor:
# Cursor style
#style:
# Cursor shape
#
# Values for `shape`:
# - ▇ Block
# - _ Underline
# - | Beam
#shape: Block
# Cursor blinking state
#
# Values for `blinking`:
# - Never: Prevent the cursor from ever blinking
# - Off: Disable blinking by default
# - On: Enable blinking by default
# - Always: Force the cursor to always blink
#blinking: Off
# Vi mode cursor style
#
# If the vi mode cursor style is `None` or not specified, it will fall back to
# the style of the active value of the normal cursor.
#
# See `cursor.style` for available options.
#vi_mode_style: None
# Cursor blinking interval in milliseconds.
#blink_interval: 750
# Time after which cursor stops blinking, in seconds.
#
# Specifying '0' will disable timeout for blinking.
#blink_timeout: 5
# If this is `true`, the cursor will be rendered as a hollow box when the
# window is not focused.
#unfocused_hollow: true
# Thickness of the cursor relative to the cell width as floating point number
# from `0.0` to `1.0`.
#thickness: 0.15
# Live config reload (changes require restart)
#live_config_reload: true
# Shell
#
# You can set `shell.program` to the path of your favorite shell, e.g.
# `/bin/fish`. Entries in `shell.args` are passed unmodified as arguments to the
# shell.
#
# Default:
# - (Linux/BSD/macOS) `$SHELL` or the user's login shell, if `$SHELL` is unset
# - (Windows) powershell
#shell:
# program: /bin/bash
# args:
# - --login
# Startup directory
#
# Directory the shell is started in. If this is unset, or `None`, the working
# directory of the parent process will be used.
#working_directory: None
# Send ESC (\x1b) before characters when alt is pressed.
#alt_send_esc: true
# Offer IPC using `alacritty msg` (unix only)
#ipc_socket: true
#mouse:
# Click settings
#
# The `double_click` and `triple_click` settings control the time
# alacritty should wait for accepting multiple clicks as one double
# or triple click.
#double_click: { threshold: 300 }
#triple_click: { threshold: 300 }
# If this is `true`, the cursor is temporarily hidden when typing.
#hide_when_typing: false
# Hints
#
# Terminal hints can be used to find text or hyperlink in the visible part of
# the terminal and pipe it to other applications.
hints:
# Keys used for the hint labels.
#alphabet: "jfkdls;ahgurieowpq"
# List with all available hints
#
# Each hint must have any of `regex` or `hyperlinks` field and either an
# `action` or a `command` field. The fields `mouse`, `binding` and
# `post_processing` are optional.
#
# The `hyperlinks` option will cause OSC 8 escape sequence hyperlinks to be
# highlighted.
#
# The fields `command`, `binding.key`, `binding.mods`, `binding.mode` and
# `mouse.mods` accept the same values as they do in the `key_bindings` section.
#
# The `mouse.enabled` field controls if the hint should be underlined while
# the mouse with all `mouse.mods` keys held or the vi mode cursor is above it.
#
# If the `post_processing` field is set to `true`, heuristics will be used to
# shorten the match if there are characters likely not to be part of the hint
# (e.g. a trailing `.`). This is most useful for URIs and applies only to
# `regex` matches.
#
# Values for `action`:
# - Copy
# Copy the hint's text to the clipboard.
# - Paste
# Paste the hint's text to the terminal or search.
# - Select
# Select the hint's text.
# - MoveViModeCursor
# Move the vi mode cursor to the beginning of the hint.
enabled:
- regex: "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
[^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+"
hyperlinks: true
command: xdg-open
post_processing: true
mouse:
enabled: true
mods: Control
# binding:
# key: U
# mods: Control|Shift
# Mouse bindings
#
# Mouse bindings are specified as a list of objects, much like the key
# bindings further below.
#
# To trigger mouse bindings when an application running within Alacritty
# captures the mouse, the `Shift` modifier is automatically added as a
# requirement.
#
# Each mouse binding will specify a:
#
# - `mouse`:
#
# - Middle
# - Left
# - Right
# - Numeric identifier such as `5`
#
# - `action` (see key bindings for actions not exclusive to mouse mode)
#
# - Mouse exclusive actions:
#
# - ExpandSelection
# Expand the selection to the current mouse cursor location.
#
# And optionally:
#
# - `mods` (see key bindings)
#mouse_bindings:
# - { mouse: Right, action: ExpandSelection }
# - { mouse: Right, mods: Control, action: ExpandSelection }
# - { mouse: Middle, mode: ~Vi, action: PasteSelection }
# Key bindings
#
# Key bindings are specified as a list of objects. For example, this is the
# default paste binding:
#
# `- { key: V, mods: Control|Shift, action: Paste }`
#
# Each key binding will specify a:
#
# - `key`: Identifier of the key pressed
#
# - A-Z
# - F1-F24
# - Key0-Key9
#
# A full list with available key codes can be found here:
# https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants
#
# Instead of using the name of the keys, the `key` field also supports using
# the scancode of the desired key. Scancodes have to be specified as a
# decimal number. This command will allow you to display the hex scancodes
# for certain keys:
#
# `showkey --scancodes`.
#
# Then exactly one of:
#
# - `chars`: Send a byte sequence to the running application
#
# The `chars` field writes the specified string to the terminal. This makes
# it possible to pass escape sequences. To find escape codes for bindings
# like `PageUp` (`"\x1b[5~"`), you can run the command `showkey -a` outside
# of tmux. Note that applications use terminfo to map escape sequences back
# to keys. It is therefore required to update the terminfo when changing an
# escape sequence.
#
# - `action`: Execute a predefined action
#
# - ToggleViMode
# - SearchForward
# Start searching toward the right of the search origin.
# - SearchBackward
# Start searching toward the left of the search origin.
# - Copy
# - Paste
# - IncreaseFontSize
# - DecreaseFontSize
# - ResetFontSize
# - ScrollPageUp
# - ScrollPageDown
# - ScrollHalfPageUp
# - ScrollHalfPageDown
# - ScrollLineUp
# - ScrollLineDown
# - ScrollToTop
# - ScrollToBottom
# - ClearHistory
# Remove the terminal's scrollback history.
# - Hide
# Hide the Alacritty window.
# - Minimize
# Minimize the Alacritty window.
# - Quit
# Quit Alacritty.
# - ToggleFullscreen
# - SpawnNewInstance
# Spawn a new instance of Alacritty.
# - CreateNewWindow
# Create a new Alacritty window from the current process.
# - ClearLogNotice
# Clear Alacritty's UI warning and error notice.
# - ClearSelection
# Remove the active selection.
# - ReceiveChar
# - None
#
# - Vi mode exclusive actions:
#
# - Open
# Perform the action of the first matching hint under the vi mode cursor
# with `mouse.enabled` set to `true`.
# - ToggleNormalSelection
# - ToggleLineSelection
# - ToggleBlockSelection
# - ToggleSemanticSelection
# Toggle semantic selection based on `selection.semantic_escape_chars`.
# - CenterAroundViCursor
# Center view around vi mode cursor
#
# - Vi mode exclusive cursor motion actions:
#
# - Up
# One line up.
# - Down
# One line down.
# - Left
# One character left.
# - Right
# One character right.
# - First
# First column, or beginning of the line when already at the first column.
# - Last
# Last column, or beginning of the line when already at the last column.
# - FirstOccupied
# First non-empty cell in this terminal row, or first non-empty cell of
# the line when already at the first cell of the row.
# - High
# Top of the screen.
# - Middle
# Center of the screen.
# - Low
# Bottom of the screen.
# - SemanticLeft
# Start of the previous semantically separated word.
# - SemanticRight
# Start of the next semantically separated word.
# - SemanticLeftEnd
# End of the previous semantically separated word.
# - SemanticRightEnd
# End of the next semantically separated word.
# - WordLeft
# Start of the previous whitespace separated word.
# - WordRight
# Start of the next whitespace separated word.
# - WordLeftEnd
# End of the previous whitespace separated word.
# - WordRightEnd
# End of the next whitespace separated word.
# - Bracket
# Character matching the bracket at the cursor's location.
# - SearchNext
# Beginning of the next match.
# - SearchPrevious
# Beginning of the previous match.
# - SearchStart
# Start of the match to the left of the vi mode cursor.
# - SearchEnd
# End of the match to the right of the vi mode cursor.
#
# - Search mode exclusive actions:
# - SearchFocusNext
# Move the focus to the next search match.
# - SearchFocusPrevious
# Move the focus to the previous search match.
# - SearchConfirm
# - SearchCancel
# - SearchClear
# Reset the search regex.
# - SearchDeleteWord
# Delete the last word in the search regex.
# - SearchHistoryPrevious
# Go to the previous regex in the search history.
# - SearchHistoryNext
# Go to the next regex in the search history.
#
# - macOS exclusive actions:
# - ToggleSimpleFullscreen
# Enter fullscreen without occupying another space.
#
# - Linux/BSD exclusive actions:
#
# - CopySelection
# Copy from the selection buffer.
# - PasteSelection
# Paste from the selection buffer.
#
# - `command`: Fork and execute a specified command plus arguments
#
# The `command` field must be a map containing a `program` string and an
# `args` array of command line parameter strings. For example:
# `{ program: "alacritty", args: ["-e", "vttest"] }`
#
# And optionally:
#
# - `mods`: Key modifiers to filter binding actions
#
# - Command
# - Control
# - Option
# - Super
# - Shift
# - Alt
#
# Multiple `mods` can be combined using `|` like this:
# `mods: Control|Shift`.
# Whitespace and capitalization are relevant and must match the example.
#
# - `mode`: Indicate a binding for only specific terminal reported modes
#
# This is mainly used to send applications the correct escape sequences
# when in different modes.
#
# - AppCursor
# - AppKeypad
# - Search
# - Alt
# - Vi
#
# A `~` operator can be used before a mode to apply the binding whenever
# the mode is *not* active, e.g. `~Alt`.
#
# Bindings are always filled by default, but will be replaced when a new
# binding with the same triggers is defined. To unset a default binding, it can
# be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for
# a no-op if you do not wish to receive input characters for that binding.
#
# If the same trigger is assigned to multiple actions, all of them are executed
# in the order they were defined in.
key_bindings:
- { key: N, mods: Control|Shift, action: SpawnNewInstance }
#- { key: Paste, action: Paste }
#- { key: Copy, action: Copy }
#- { key: L, mods: Control, action: ClearLogNotice }
#- { key: L, mods: Control, mode: ~Vi|~Search, chars: "\x0c" }
#- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp }
#- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown }
#- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop }
#- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom }
# Vi Mode
#- { key: Space, mods: Shift|Control, mode: ~Search, action: ToggleViMode }
#- { key: Space, mods: Shift|Control, mode: Vi|~Search, action: ScrollToBottom }
#- { key: Escape, mode: Vi|~Search, action: ClearSelection }
#- { key: I, mode: Vi|~Search, action: ToggleViMode }
#- { key: I, mode: Vi|~Search, action: ScrollToBottom }
#- { key: C, mods: Control, mode: Vi|~Search, action: ToggleViMode }
#- { key: Y, mods: Control, mode: Vi|~Search, action: ScrollLineUp }
#- { key: E, mods: Control, mode: Vi|~Search, action: ScrollLineDown }
#- { key: G, mode: Vi|~Search, action: ScrollToTop }
#- { key: G, mods: Shift, mode: Vi|~Search, action: ScrollToBottom }
#- { key: B, mods: Control, mode: Vi|~Search, action: ScrollPageUp }
#- { key: F, mods: Control, mode: Vi|~Search, action: ScrollPageDown }
#- { key: U, mods: Control, mode: Vi|~Search, action: ScrollHalfPageUp }
#- { key: D, mods: Control, mode: Vi|~Search, action: ScrollHalfPageDown }
#- { key: Y, mode: Vi|~Search, action: Copy }
#- { key: Y, mode: Vi|~Search, action: ClearSelection }
#- { key: Copy, mode: Vi|~Search, action: ClearSelection }
#- { key: V, mode: Vi|~Search, action: ToggleNormalSelection }
#- { key: V, mods: Shift, mode: Vi|~Search, action: ToggleLineSelection }
#- { key: V, mods: Control, mode: Vi|~Search, action: ToggleBlockSelection }
#- { key: V, mods: Alt, mode: Vi|~Search, action: ToggleSemanticSelection }
#- { key: Return, mode: Vi|~Search, action: Open }
#- { key: Z, mode: Vi|~Search, action: CenterAroundViCursor }
#- { key: K, mode: Vi|~Search, action: Up }
#- { key: J, mode: Vi|~Search, action: Down }
#- { key: H, mode: Vi|~Search, action: Left }
#- { key: L, mode: Vi|~Search, action: Right }
#- { key: Up, mode: Vi|~Search, action: Up }
#- { key: Down, mode: Vi|~Search, action: Down }
#- { key: Left, mode: Vi|~Search, action: Left }
#- { key: Right, mode: Vi|~Search, action: Right }
#- { key: Key0, mode: Vi|~Search, action: First }
#- { key: Key4, mods: Shift, mode: Vi|~Search, action: Last }
#- { key: Key6, mods: Shift, mode: Vi|~Search, action: FirstOccupied }
#- { key: H, mods: Shift, mode: Vi|~Search, action: High }
#- { key: M, mods: Shift, mode: Vi|~Search, action: Middle }
#- { key: L, mods: Shift, mode: Vi|~Search, action: Low }
#- { key: B, mode: Vi|~Search, action: SemanticLeft }
#- { key: W, mode: Vi|~Search, action: SemanticRight }
#- { key: E, mode: Vi|~Search, action: SemanticRightEnd }
#- { key: B, mods: Shift, mode: Vi|~Search, action: WordLeft }
#- { key: W, mods: Shift, mode: Vi|~Search, action: WordRight }
#- { key: E, mods: Shift, mode: Vi|~Search, action: WordRightEnd }
#- { key: Key5, mods: Shift, mode: Vi|~Search, action: Bracket }
#- { key: Slash, mode: Vi|~Search, action: SearchForward }
#- { key: Slash, mods: Shift, mode: Vi|~Search, action: SearchBackward }
#- { key: N, mode: Vi|~Search, action: SearchNext }
#- { key: N, mods: Shift, mode: Vi|~Search, action: SearchPrevious }
# Search Mode
#- { key: Return, mode: Search|Vi, action: SearchConfirm }
#- { key: Escape, mode: Search, action: SearchCancel }
#- { key: C, mods: Control, mode: Search, action: SearchCancel }
#- { key: U, mods: Control, mode: Search, action: SearchClear }
#- { key: W, mods: Control, mode: Search, action: SearchDeleteWord }
#- { key: P, mods: Control, mode: Search, action: SearchHistoryPrevious }
#- { key: N, mods: Control, mode: Search, action: SearchHistoryNext }
#- { key: Up, mode: Search, action: SearchHistoryPrevious }
#- { key: Down, mode: Search, action: SearchHistoryNext }
#- { key: Return, mode: Search|~Vi, action: SearchFocusNext }
#- { key: Return, mods: Shift, mode: Search|~Vi, action: SearchFocusPrevious }
# (Windows, Linux, and BSD only)
#- { key: V, mods: Control|Shift, mode: ~Vi, action: Paste }
#- { key: C, mods: Control|Shift, action: Copy }
#- { key: F, mods: Control|Shift, mode: ~Search, action: SearchForward }
#- { key: B, mods: Control|Shift, mode: ~Search, action: SearchBackward }
#- { key: C, mods: Control|Shift, mode: Vi|~Search, action: ClearSelection }
#- { key: Insert, mods: Shift, action: PasteSelection }
#- { key: Key0, mods: Control, action: ResetFontSize }
#- { key: Equals, mods: Control, action: IncreaseFontSize }
#- { key: Plus, mods: Control, action: IncreaseFontSize }
#- { key: NumpadAdd, mods: Control, action: IncreaseFontSize }
#- { key: Minus, mods: Control, action: DecreaseFontSize }
#- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize }
# (Windows only)
#- { key: Return, mods: Alt, action: ToggleFullscreen }
# (macOS only)
#- { key: K, mods: Command, mode: ~Vi|~Search, chars: "\x0c" }
#- { key: K, mods: Command, mode: ~Vi|~Search, action: ClearHistory }
#- { key: Key0, mods: Command, action: ResetFontSize }
#- { key: Equals, mods: Command, action: IncreaseFontSize }
#- { key: Plus, mods: Command, action: IncreaseFontSize }
#- { key: NumpadAdd, mods: Command, action: IncreaseFontSize }
#- { key: Minus, mods: Command, action: DecreaseFontSize }
#- { key: NumpadSubtract, mods: Command, action: DecreaseFontSize }
#- { key: V, mods: Command, action: Paste }
#- { key: C, mods: Command, action: Copy }
#- { key: C, mods: Command, mode: Vi|~Search, action: ClearSelection }
#- { key: H, mods: Command, action: Hide }
#- { key: H, mods: Command|Alt, action: HideOtherApplications }
#- { key: M, mods: Command, action: Minimize }
#- { key: Q, mods: Command, action: Quit }
#- { key: W, mods: Command, action: Quit }
#- { key: N, mods: Command, action: SpawnNewInstance }
#- { key: F, mods: Command|Control, action: ToggleFullscreen }
#- { key: F, mods: Command, mode: ~Search, action: SearchForward }
#- { key: B, mods: Command, mode: ~Search, action: SearchBackward }
#debug:
# Display the time it takes to redraw each frame.
#render_timer: false
# Keep the log file after quitting Alacritty.
#persistent_logging: false
# Log level
#
# Values for `log_level`:
# - Off
# - Error
# - Warn
# - Info
# - Debug
# - Trace
#log_level: Warn
# Print all received window events.
#print_events: false
# Highlight window damage information.
#highlight_damage: false
import:
# - ~/various/alacritty-theme/themes/afterglow.yaml
# - ~/various/alacritty-theme/themes/argonaut.yaml
# - ~/various/alacritty-theme/themes/atom_one_light.yaml
# - ~/various/alacritty-theme/themes/ayu_dark.yaml
# - ~/various/alacritty-theme/themes/base16_default_dark.yaml
# - ~/various/alacritty-theme/themes/blood_moon.yaml
# - ~/various/alacritty-theme/themes/breeze.yaml
# - ~/various/alacritty-theme/themes/campbell.yaml # A good one
# - ~/various/alacritty-theme/themes/challenger_deep.yaml
# - ~/various/alacritty-theme/themes/Cobalt2.yaml
# - ~/various/alacritty-theme/themes/cyber_punk_neon.yaml # Quite good one
# - ~/various/alacritty-theme/themes/darcula.yaml
# - ~/various/alacritty-theme/themes/dark_pastels.yaml
# - ~/various/alacritty-theme/themes/doom_one.yml
# - ~/various/alacritty-theme/themes/dracula.yaml
- ~/various/alacritty-theme/themes/falcon.yaml
#- ~/various/alacritty-theme/themes/flat_remix.yml
# - ~/various/alacritty-theme/themes/gotham.yaml
# - ~/various/alacritty-theme/themes/gruvbox_dark.yaml
# - ~/various/alacritty-theme/themes/gruvbox_light.yaml
# - ~/various/alacritty-theme/themes/gruvbox_material.yml
# - ~/various/alacritty-theme/themes/high_contrast.yaml
# - ~/various/alacritty-theme/themes/horizon-dark.yaml
# - ~/various/alacritty-theme/themes/hyper.yaml
# - ~/various/alacritty-theme/themes/iterm.yaml
# - ~/various/alacritty-theme/themes/konsole_linux.yaml
# - ~/various/alacritty-theme/themes/low_contrast.yaml
# - ~/various/alacritty-theme/themes/material_theme_mod.yaml
# - ~/various/alacritty-theme/themes/material_theme.yaml
# - ~/various/alacritty-theme/themes/monokai_pro.yaml
# - ~/various/alacritty-theme/themes/moonlight_ii_vscode.yaml
# - ~/various/alacritty-theme/themes/night_owlish_light.yaml
# - ~/various/alacritty-theme/themes/nord.yaml
# - ~/various/alacritty-theme/themes/oceanic_next.yaml
# - ~/various/alacritty-theme/themes/omni.yml
# - ~/various/alacritty-theme/themes/one_dark.yaml
# - ~/various/alacritty-theme/themes/palenight.yml
# - ~/various/alacritty-theme/themes/papercolor_dark.yaml
# - ~/various/alacritty-theme/themes/papercolor_light.yaml
# - ~/various/alacritty-theme/themes/papertheme.yaml
# - ~/various/alacritty-theme/themes/pencil_dark.yaml
# - ~/various/alacritty-theme/themes/pencil_light.yaml
# - ~/various/alacritty-theme/themes/remedy_dark.yaml
# - ~/various/alacritty-theme/themes/seashells.yaml
# - ~/various/alacritty-theme/themes/smoooooth.yml
# - ~/various/alacritty-theme/themes/snazzy.yaml
# - ~/various/alacritty-theme/themes/solarized_dark.yaml
# - ~/various/alacritty-theme/themes/solarized_light.yaml
# - ~/various/alacritty-theme/themes/taerminal.yaml
# - ~/various/alacritty-theme/themes/tango_dark.yaml
# - ~/various/alacritty-theme/themes/tender.yaml
# - ~/various/alacritty-theme/themes/terminal_app.yaml
# - ~/various/alacritty-theme/themes/thelovelace.yaml
# - ~/various/alacritty-theme/themes/tokyo-night-storm.yaml
# - ~/various/alacritty-theme/themes/tokyo-night.yaml
# - ~/various/alacritty-theme/themes/tomorrow_night_bright.yaml
# - ~/various/alacritty-theme/themes/tomorrow_night.yaml
# - ~/various/alacritty-theme/themes/wombat.yaml
#- ~/various/alacritty-theme/themes/xterm.yaml

View File

@@ -0,0 +1 @@
themes/srcery.lua

641
.config/awesome/rc.lua Normal file
View File

@@ -0,0 +1,641 @@
-- If LuaRocks is installed, make sure that packages installed through it are
-- found (e.g. lgi). If LuaRocks is not installed, do nothing.
pcall(require, "luarocks.loader")
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
local naughty = require("naughty")
-- Declarative object management
local ruled = require("ruled")
local menubar = require("menubar")
local hotkeys_popup = require("awful.hotkeys_popup")
-- Enable hotkeys help widget for VIM and other apps
-- when client with a matching name is opened:
require("awful.hotkeys_popup.keys")
-- {{{ Error handling
-- Check if awesome encountered an error during startup and fell back to
-- another config (This code will only ever execute for the fallback config)
naughty.connect_signal("request::display_error", function(message, startup)
naughty.notification {
urgency = "critical",
title = "Oops, an error happened"..(startup and " during startup!" or "!"),
message = message
}
end)
-- }}}
-- {{{ Variable definitions
-- Themes define colours, icons, font and wallpapers.
beautiful.init(gears.filesystem.get_configuration_dir() .. "my_theme.lua")
-- This is used later as the default terminal and editor to run.
terminal = "/home/rkmiec/.cargo/bin/alacritty"
editor = os.getenv("EDITOR") or "neovide"
editor_cmd = terminal .. " -e " .. editor
-- Default modkey.
-- Usually, Mod4 is the key with a logo between Control and Alt.
-- If you do not like this or do not have such a key,
-- I suggest you to remap Mod4 to another key using xmodmap or other tools.
-- However, you can use another modifier like Mod1, but it may interact with others.
modkey = "Mod4"
-- }}}
-- {{{ Menu
-- Create a launcher widget and a main menu
myawesomemenu = {
{ "hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end },
{ "manual", terminal .. " -e man awesome" },
{ "edit config", editor_cmd .. " " .. awesome.conffile },
{ "restart", awesome.restart },
{ "quit", function() awesome.quit() end },
}
local menu_awesome = { "awesome", myawesomemenu, beautiful.awesome_icon }
local menu_terminal = { "open terminal", terminal }
mymainmenu = awful.menu({
items = {
menu_awesome,
menu_terminal,
}
})
mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
menu = mymainmenu })
-- Menubar configuration
menubar.utils.terminal = terminal -- Set the terminal for applications that require it
-- }}}
-- {{{ Tag layout
-- Table of layouts to cover with awful.layout.inc, order matters.
tag.connect_signal("request::default_layouts", function()
awful.layout.append_default_layouts({
awful.layout.suit.floating,
awful.layout.suit.tile,
awful.layout.suit.tile.left,
-- awful.layout.suit.tile.bottom,
-- awful.layout.suit.tile.top,
-- awful.layout.suit.fair,
-- awful.layout.suit.fair.horizontal,
-- awful.layout.suit.spiral,
-- awful.layout.suit.spiral.dwindle,
awful.layout.suit.max,
awful.layout.suit.max.fullscreen,
-- awful.layout.suit.magnifier,
-- awful.layout.suit.corner.nw,
})
end)
-- }}}
-- {{{ Wallpaper
screen.connect_signal("request::wallpaper", function(s)
-- awful.wallpaper {
-- screen = s,
-- widget = {
-- {
-- image = beautiful.wallpaper,
-- upscale = true,
-- downscale = true,
-- widget = wibox.widget.imagebox,
-- },
-- valign = "center",
-- halign = "center",
-- tiled = false,
-- widget = wibox.container.tile,
-- }
-- }
awful.spawn.single_instance("feh --bg-scale /home/rkmiec/Downloads/a45eca3302b5d07d7f95b57f1df52f96.webp")
end)
-- }}}
-- {{{ Wibar
-- Keyboard map indicator and switcher
mykeyboardlayout = awful.widget.keyboardlayout()
-- Create a textclock widget
mytextclock = wibox.widget {
format = "%a %y %m %_d - %_H %M %S",
refresh = 5,
widget = wibox.widget.textclock
}
screen.connect_signal("request::desktop_decoration", function(s)
-- Each screen has its own tag table.
if s.index == 1 then
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[3])
else
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[2])
end
-- Create a promptbox for each screen
s.mypromptbox = awful.widget.prompt()
-- Create an imagebox widget which will contain an icon indicating which layout we're using.
-- We need one layoutbox per screen.
s.mylayoutbox = awful.widget.layoutbox {
screen = s,
buttons = {
awful.button({ }, 1, function () awful.layout.inc( 1) end),
awful.button({ }, 3, function () awful.layout.inc(-1) end),
awful.button({ }, 4, function () awful.layout.inc(-1) end),
awful.button({ }, 5, function () awful.layout.inc( 1) end),
}
}
-- Create a taglist widget
s.mytaglist = awful.widget.taglist {
screen = s,
filter = awful.widget.taglist.filter.all,
--widget = wibox.container.rotate,
buttons = {
awful.button({ }, 1, function(t) t:view_only() end),
awful.button({ modkey }, 1, function(t)
if client.focus then
client.focus:move_to_tag(t)
end
end),
awful.button({ }, 3, awful.tag.viewtoggle),
awful.button({ modkey }, 3, function(t)
if client.focus then
client.focus:toggle_tag(t)
end
end),
awful.button({ }, 4, function(t) awful.tag.viewprev(t.screen) end),
awful.button({ }, 5, function(t) awful.tag.viewnext(t.screen) end),
}
}
-- Create a tasklist widget
s.mytasklist = awful.widget.tasklist {
screen = s,
filter = awful.widget.tasklist.filter.currenttags,
buttons = {
awful.button({ }, 1, function (c)
c:activate { context = "tasklist", action = "toggle_minimization" }
end),
awful.button({ }, 3, function() awful.menu.client_list { theme = { width = 250 } } end),
awful.button({ }, 4, function() awful.client.focus.byidx(-1) end),
awful.button({ }, 5, function() awful.client.focus.byidx( 1) end),
}
}
-- Create the wibox
if s.index == 2 then
s.mywibox = awful.wibar({ position = "right", screen = s })
s.rotation = "west"
else
s.mywibox = awful.wibar({ position = "left", screen = s })
s.rotation = "east"
end
s.tasklist = wibox.container {
awful.widget.tasklist {
screen = s,
filter = awful.widget.tasklist.filter.currenttags,
buttons = tasklist_buttons,
},
direction = s.rotation,
widget = wibox.container.rotate
}
s.systray = wibox.container {
wibox.widget.systray(),
direction = s.rotation,
widget = wibox.container.rotate
}
-- Add widgets to the wibox
s.mywibox:setup {
layout = wibox.layout.align.vertical,
{ -- Left widgets
layout = wibox.layout.fixed.vertical,
s.mylayoutbox,
mylauncher,
s.mytaglist,
s.mypromptbox,
},
s.tasklist,
{ -- Right widgets
layout = wibox.layout.fixed.vertical,
mykeyboardlayout,
s.systray,
mytextclock,
},
}
end)
-- }}}
-- {{{ Mouse bindings
awful.mouse.append_global_mousebindings({
awful.button({ }, 3, function () mymainmenu:toggle() end),
awful.button({ }, 4, awful.tag.viewprev),
awful.button({ }, 5, awful.tag.viewnext),
})
-- }}}
-- {{{ Key bindings
-- General Awesome keys
awful.keyboard.append_global_keybindings({
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
{description="show help", group="awesome"}),
awful.key({ modkey, }, "w", function () mymainmenu:show() end,
{description = "show main menu", group = "awesome"}),
awful.key({ modkey, "Control" }, "r", awesome.restart,
{description = "reload awesome", group = "awesome"}),
awful.key({ modkey, "Shift" }, "c", awesome.quit,
{description = "quit awesome", group = "awesome"}),
-- awful.key({ modkey }, "y",
-- function ()
-- awful.prompt.run {
-- prompt = "Run Lua code: ",
-- textbox = awful.screen.focused().mypromptbox.widget,
-- exe_callback = awful.util.eval,
-- history_path = awful.util.get_cache_dir() .. "/history_eval"
-- }
-- end,
-- {description = "lua execute prompt", group = "awesome"}),
awful.key({ modkey, }, "Return", function () awful.spawn(terminal) end,
{description = "open a terminal", group = "launcher"}),
-- awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
-- {description = "run prompt", group = "launcher"}),
awful.key({ modkey, }, "d", function () awful.spawn(terminal) end,
{description = "open a terminal", group = "launcher"}),
awful.key({ modkey }, "p", function() menubar.show() end,
{description = "show the menubar", group = "launcher"}),
})
-- Tags related keybindings
awful.keyboard.append_global_keybindings({
awful.key({ modkey, }, "Left", awful.tag.viewprev,
{description = "view previous", group = "tag"}),
awful.key({ modkey, }, "Right", awful.tag.viewnext,
{description = "view next", group = "tag"}),
awful.key({ modkey, }, "Escape", awful.tag.history.restore,
{description = "go back", group = "tag"}),
})
-- Focus related keybindings
awful.keyboard.append_global_keybindings({
awful.key({ modkey, }, "j",
function ()
awful.client.focus.byidx( 1)
end,
{description = "focus next by index", group = "client"}
),
awful.key({ modkey, }, "k",
function ()
awful.client.focus.byidx(-1)
end,
{description = "focus previous by index", group = "client"}
),
awful.key({ modkey, }, "Tab",
function ()
awful.client.focus.history.previous()
if client.focus then
client.focus:raise()
end
end,
{description = "go back", group = "client"}),
awful.key({ modkey, "Control" }, "h", function () awful.screen.focus_relative( 1) end,
{description = "focus the next screen", group = "screen"}),
awful.key({ modkey, "Control" }, "l", function () awful.screen.focus_relative(-1) end,
{description = "focus the previous screen", group = "screen"}),
awful.key({ modkey, "Control" }, "n",
function ()
local c = awful.client.restore()
-- Focus restored client
if c then
c:activate { raise = true, context = "key.unminimize" }
end
end,
{description = "restore minimized", group = "client"}),
})
-- Layout related keybindings
awful.keyboard.append_global_keybindings({
awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end,
{description = "swap with next client by index", group = "client"}),
awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end,
{description = "swap with previous client by index", group = "client"}),
awful.key({ modkey, }, "u", awful.client.urgent.jumpto,
{description = "jump to urgent client", group = "client"}),
awful.key({ modkey, "Control" }, "j", function () awful.tag.incmwfact( 0.05) end,
{description = "increase master width factor", group = "layout"}),
awful.key({ modkey, "Control" }, "k", function () awful.tag.incmwfact(-0.05) end,
{description = "decrease master width factor", group = "layout"}),
awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1, nil, true) end,
{description = "increase the number of master clients", group = "layout"}),
awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1, nil, true) end,
{description = "decrease the number of master clients", group = "layout"}),
awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1, nil, true) end,
{description = "increase the number of columns", group = "layout"}),
awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1, nil, true) end,
{description = "decrease the number of columns", group = "layout"}),
awful.key({ modkey, }, "space", function () awful.layout.inc( 1) end,
{description = "select next", group = "layout"}),
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(-1) end,
{description = "select previous", group = "layout"}),
})
awful.keyboard.append_global_keybindings({
awful.key {
modifiers = { modkey },
keygroup = "numrow",
description = "only view tag",
group = "tag",
on_press = function (index)
local screen = awful.screen.focused()
local tag = screen.tags[index]
if tag then
tag:view_only()
end
end,
},
awful.key {
modifiers = { modkey, "Control" },
keygroup = "numrow",
description = "toggle tag",
group = "tag",
on_press = function (index)
local screen = awful.screen.focused()
local tag = screen.tags[index]
if tag then
awful.tag.viewtoggle(tag)
end
end,
},
awful.key {
modifiers = { modkey, "Shift" },
keygroup = "numrow",
description = "move focused client to tag",
group = "tag",
on_press = function (index)
if client.focus then
local tag = client.focus.screen.tags[index]
if tag then
client.focus:move_to_tag(tag)
end
end
end,
},
awful.key {
modifiers = { modkey, "Control", "Shift" },
keygroup = "numrow",
description = "toggle focused client on tag",
group = "tag",
on_press = function (index)
if client.focus then
local tag = client.focus.screen.tags[index]
if tag then
client.focus:toggle_tag(tag)
end
end
end,
},
awful.key {
modifiers = { modkey },
keygroup = "numpad",
description = "select layout directly",
group = "layout",
on_press = function (index)
local t = awful.screen.focused().selected_tag
if t then
t.layout = t.layouts[index] or t.layout
end
end,
}
})
client.connect_signal("request::default_mousebindings", function()
awful.mouse.append_client_mousebindings({
awful.button({ }, 1, function (c)
c:activate { context = "mouse_click" }
end),
awful.button({ modkey }, 1, function (c)
c:activate { context = "mouse_click", action = "mouse_move" }
end),
awful.button({ modkey }, 3, function (c)
c:activate { context = "mouse_click", action = "mouse_resize"}
end),
})
end)
client.connect_signal("request::default_keybindings", function()
awful.keyboard.append_client_keybindings({
awful.key({ modkey, }, "f",
function (c)
c.fullscreen = not c.fullscreen
c:raise()
end,
{description = "toggle fullscreen", group = "client"}),
awful.key({ modkey, }, "q", function (c) c:kill() end,
{description = "close", group = "client"}),
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ,
{description = "toggle floating", group = "client"}),
awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end,
{description = "move to master", group = "client"}),
awful.key({ modkey, }, "o", function (c) c:move_to_screen() end,
{description = "move to screen", group = "client"}),
awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end,
{description = "toggle keep on top", group = "client"}),
awful.key({ modkey, }, "n",
function (c)
-- The client currently has the input focus, so it cannot be
-- minimized, since minimized clients can't have the focus.
c.minimized = true
end ,
{description = "minimize", group = "client"}),
awful.key({ modkey, }, "m",
function (c)
c.maximized = not c.maximized
c:raise()
end ,
{description = "(un)maximize", group = "client"}),
awful.key({ modkey, "Control" }, "m",
function (c)
c.maximized_vertical = not c.maximized_vertical
c:raise()
end ,
{description = "(un)maximize vertically", group = "client"}),
awful.key({ modkey, "Shift" }, "m",
function (c)
c.maximized_horizontal = not c.maximized_horizontal
c:raise()
end ,
{description = "(un)maximize horizontally", group = "client"}),
})
end)
-- }}}
-- {{{ Rules
-- Rules to apply to new clients.
ruled.client.connect_signal("request::rules", function()
-- All clients will match this rule.
ruled.client.append_rule {
id = "global",
rule = { },
properties = {
focus = awful.client.focus.filter,
raise = true,
screen = awful.screen.preferred,
placement = awful.placement.no_overlap+awful.placement.no_offscreen
}
}
-- Floating clients.
ruled.client.append_rule {
id = "floating",
rule_any = {
instance = {
"DTA", -- Firefox addon DownThemAll.
"copyq", -- Includes session name in class.
"pinentry", },
class = {
"Arandr", "Blueman-manager", "Gpick", "Sxiv",
"Tor Browser", "Wpa_gui", "veromix", "xtightvncviewer"
},
-- Note that the name property shown in xprop might be set slightly after creation of the client
-- and the name shown there might not match defined rules here.
name = {
"Event Tester", -- xev.
},
role = {
"AlarmWindow", -- Thunderbird's calendar.
"ConfigManager", -- Thunderbird's about:config.
"pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
}
},
properties = { floating = true }
}
-- Add titlebars to normal clients and dialogs
ruled.client.append_rule {
id = "titlebars",
rule_any = { type = { "normal", "dialog" } },
properties = { titlebars_enabled = false }
}
-- Set Firefox to always map on the tag named "1" on screen 1 and disable
-- title for that window
--{ rule = { class = "Firefox" },
-- properties = { screen = 1, tag = "1", titlebars_enabled = false } },
--{ rule = { class = "firefox" },
-- properties = { screen = 1, tag = "1", titlebars_enabled = false } },
--{ rule = { class = "Google-chrome-beta" },
-- properties = { screen = 1, tag = "1", titlebars_enabled = false } },
end)
-- }}}
-- {{{ Titlebars
-- Add a titlebar if titlebars_enabled is set to true in the rules.
client.connect_signal("request::titlebars", function(c)
-- buttons for the titlebar
local buttons = {
awful.button({ }, 1, function()
c:activate { context = "titlebar", action = "mouse_move" }
end),
awful.button({ }, 3, function()
c:activate { context = "titlebar", action = "mouse_resize"}
end),
}
awful.titlebar(c).widget = {
{ -- Left
awful.titlebar.widget.iconwidget(c),
buttons = buttons,
layout = wibox.layout.fixed.horizontal
},
{ -- Middle
{ -- Title
halign = "center",
widget = awful.titlebar.widget.titlewidget(c)
},
buttons = buttons,
layout = wibox.layout.flex.horizontal
},
{ -- Right
awful.titlebar.widget.floatingbutton (c),
awful.titlebar.widget.maximizedbutton(c),
awful.titlebar.widget.stickybutton (c),
awful.titlebar.widget.ontopbutton (c),
awful.titlebar.widget.closebutton (c),
layout = wibox.layout.fixed.horizontal()
},
layout = wibox.layout.align.horizontal
}
end)
-- }}}
-- {{{ Notifications
ruled.notification.connect_signal('request::rules', function()
-- All notifications will match this rule.
ruled.notification.append_rule {
rule = { },
properties = {
screen = awful.screen.preferred,
implicit_timeout = 5,
}
}
end)
naughty.connect_signal("request::display", function(n)
naughty.layout.box { notification = n }
end)
-- }}}
-- Enable sloppy focus, so that focus follows mouse.
client.connect_signal("mouse::enter", function(c)
c:activate { context = "mouse_enter", raise = false }
end)
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
awful.spawn.with_shell(
'if (xrdb -query | grep -q "^awesome\\.started:\\s*true$"); then exit; fi;' ..
'echo "awesome.started:true" | xrdb -merge ; ' ..
-- list each of your autostart commands, followed by ; inside single quotes, followed by ..
'dex --environment Awesome --autostart --search-paths "$XDG_CONFIG_DIRS/autostart:$XDG_CONFIG_HOME/autostart"' -- https://github.com/jceb/dex
)
do
local cmds_once =
{
"xset b off",
"xdotool key --clearmodifiers Num_Lock",
--"autorandr -c",
"pasystray -m 100",
--"cbatticon",
--"barrierc --disable-crypto 192.168.10.2:24800",
"xbindkeys -f /home/rkmiec/.config/xbindkeysrc",
}
for _,i in ipairs(cmds_once) do
awful.spawn(i)
end
--"dunst -config /home/kmcr/.config/i3/dunst_config",
local cmds_single_instance =
{
--"nm-applet",
"blueman-applet",
"flameshot",
"feh --bg-scale /home/rkmiec/Downloads/a45eca3302b5d07d7f95b57f1df52f96.webp",
}
for _,i in ipairs(cmds_single_instance) do
awful.spawn.single_instance(i)
end
end

View File

Before

Width:  |  Height:  |  Size: 520 KiB

After

Width:  |  Height:  |  Size: 520 KiB

View File

@@ -0,0 +1,151 @@
---------------------------
-- Default awesome theme --
---------------------------
local theme_assets = require("beautiful.theme_assets")
local xresources = require("beautiful.xresources")
local dpi = xresources.apply_dpi
local gfs = require("gears.filesystem")
local themes_path = gfs.get_themes_dir()
local theme = {}
theme.font = "sans 8"
local falcon_colors = {}
falcon_colors.black = "#000004"
falcon_colors.red = "#ff3600"
falcon_colors.green = "#859933"
falcon_colors.yellow = "#ffc552"
falcon_colors.blue = "#635196"
falcon_colors.magenta = "#ff761a"
falcon_colors.cyan = "#34bfa4"
falcon_colors.white = "#b4b4b9"
falcon_colors.brightblack = "#020221"
falcon_colors.brightred = "#ff8e78"
falcon_colors.brightgreen = "#b2bc55"
falcon_colors.brightyellow = "#ffd392"
falcon_colors.brightblue = "#99a4bc"
falcon_colors.brightmagenta = "#ffb07b"
falcon_colors.brightcyan = "#8bccbf"
falcon_colors.brightwhite = "#f8f8ff"
-- Theme setting.
theme.bg_normal = falcon_colors.brightblack
theme.bg_focus = falcon_colors.blue
theme.bg_urgent = falcon_colors.brightred
theme.bg_minimize = falcon_colors.black
theme.bg_systray = theme.bg_normal
theme.fg_normal = falcon_colors.white
theme.fg_focus = falcon_colors.brightwhite
theme.fg_urgent = falcon_colors.brightwhite
theme.fg_minimize = falcon_colors.brightwhite
theme.useless_gap = dpi(0)
theme.border_width = dpi(2)
theme.border_normal = falcon_colors.black
theme.border_focus = falcon_colors.blue
theme.border_marked = falcon_colors.magenta
-- There are other variable sets
-- overriding the default one when
-- defined, the sets are:
-- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile]
-- tasklist_[bg|fg]_[focus|urgent]
-- titlebar_[bg|fg]_[normal|focus]
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
-- mouse_finder_[color|timeout|animate_timeout|radius|factor]
-- prompt_[fg|bg|fg_cursor|bg_cursor|font]
-- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font]
-- Example:
--theme.taglist_bg_focus = "#ff0000"
-- Generate taglist squares:
local taglist_square_size = dpi(5)
theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
taglist_square_size, theme.fg_normal
)
theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
taglist_square_size, theme.fg_normal
)
-- Variables set for theming notifications:
-- notification_font
-- notification_[bg|fg]
-- notification_[width|height|margin]
-- notification_[border_color|border_width|shape|opacity]
-- Variables set for theming the menu:
-- menu_[bg|fg]_[normal|focus]
-- menu_[border_color|border_width]
theme.menu_submenu_icon = themes_path.."default/submenu.png"
theme.menu_height = dpi(20)
theme.menu_width = dpi(100)
-- You can add as many variables as
-- you wish and access them by using
-- beautiful.variable in your rc.lua
--theme.bg_widget = "#cc0000"
-- Define the image to load
theme.titlebar_close_button_normal = themes_path.."default/titlebar/close_normal.png"
theme.titlebar_close_button_focus = themes_path.."default/titlebar/close_focus.png"
theme.titlebar_minimize_button_normal = themes_path.."default/titlebar/minimize_normal.png"
theme.titlebar_minimize_button_focus = themes_path.."default/titlebar/minimize_focus.png"
theme.titlebar_ontop_button_normal_inactive = themes_path.."default/titlebar/ontop_normal_inactive.png"
theme.titlebar_ontop_button_focus_inactive = themes_path.."default/titlebar/ontop_focus_inactive.png"
theme.titlebar_ontop_button_normal_active = themes_path.."default/titlebar/ontop_normal_active.png"
theme.titlebar_ontop_button_focus_active = themes_path.."default/titlebar/ontop_focus_active.png"
theme.titlebar_sticky_button_normal_inactive = themes_path.."default/titlebar/sticky_normal_inactive.png"
theme.titlebar_sticky_button_focus_inactive = themes_path.."default/titlebar/sticky_focus_inactive.png"
theme.titlebar_sticky_button_normal_active = themes_path.."default/titlebar/sticky_normal_active.png"
theme.titlebar_sticky_button_focus_active = themes_path.."default/titlebar/sticky_focus_active.png"
theme.titlebar_floating_button_normal_inactive = themes_path.."default/titlebar/floating_normal_inactive.png"
theme.titlebar_floating_button_focus_inactive = themes_path.."default/titlebar/floating_focus_inactive.png"
theme.titlebar_floating_button_normal_active = themes_path.."default/titlebar/floating_normal_active.png"
theme.titlebar_floating_button_focus_active = themes_path.."default/titlebar/floating_focus_active.png"
theme.titlebar_maximized_button_normal_inactive = themes_path.."default/titlebar/maximized_normal_inactive.png"
theme.titlebar_maximized_button_focus_inactive = themes_path.."default/titlebar/maximized_focus_inactive.png"
theme.titlebar_maximized_button_normal_active = themes_path.."default/titlebar/maximized_normal_active.png"
theme.titlebar_maximized_button_focus_active = themes_path.."default/titlebar/maximized_focus_active.png"
theme.wallpaper = themes_path.."default/background.jpg"
-- You can use your own layout icons like this:
theme.layout_fairh = themes_path.."default/layouts/fairhw.png"
theme.layout_fairv = themes_path.."default/layouts/fairvw.png"
theme.layout_floating = themes_path.."default/layouts/floatingw.png"
theme.layout_magnifier = themes_path.."default/layouts/magnifierw.png"
theme.layout_max = themes_path.."default/layouts/maxw.png"
theme.layout_fullscreen = themes_path.."default/layouts/fullscreenw.png"
theme.layout_tilebottom = themes_path.."default/layouts/tilebottomw.png"
theme.layout_tileleft = themes_path.."default/layouts/tileleftw.png"
theme.layout_tile = themes_path.."default/layouts/tilew.png"
theme.layout_tiletop = themes_path.."default/layouts/tiletopw.png"
theme.layout_spiral = themes_path.."default/layouts/spiralw.png"
theme.layout_dwindle = themes_path.."default/layouts/dwindlew.png"
theme.layout_cornernw = themes_path.."default/layouts/cornernww.png"
theme.layout_cornerne = themes_path.."default/layouts/cornernew.png"
theme.layout_cornersw = themes_path.."default/layouts/cornersww.png"
theme.layout_cornerse = themes_path.."default/layouts/cornersew.png"
-- Generate Awesome icon:
theme.awesome_icon = theme_assets.awesome_icon(
theme.menu_height, theme.bg_focus, theme.fg_focus
)
-- Define the icon theme for application icons. If not set then the icons
-- from /usr/share/icons and /usr/share/icons/kicolor will be used.
theme.icon_theme = nil
return theme
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80

View File

@@ -0,0 +1,150 @@
---------------------------
-- Default awesome theme --
---------------------------
local theme_assets = require("beautiful.theme_assets")
local xresources = require("beautiful.xresources")
local dpi = xresources.apply_dpi
local gfs = require("gears.filesystem")
local themes_path = gfs.get_themes_dir()
local theme = {}
theme.font = "iM WritingMonoS Nerd Font 8"
local srcery_colors = {}
srcery_colors.black = "#1C1B19"
srcery_colors.red = "#EF2F27"
srcery_colors.green = "#519F50"
srcery_colors.yellow = "#FBB829"
srcery_colors.blue = "#2C78BF"
srcery_colors.magenta = "#E02C6D"
srcery_colors.cyan = "#0AAEB3"
srcery_colors.white = "#D0BFA1"
srcery_colors.brightblack = "#918175"
srcery_colors.brightred = "#F75341"
srcery_colors.brightgreen = "#98BC37"
srcery_colors.brightyellow = "#FED06E"
srcery_colors.brightblue = "#68A8E4"
srcery_colors.brightmagenta = "#FF5C8F"
srcery_colors.brightcyan = "#2BE4D0"
srcery_colors.brightwhite = "#FCE8C3"
-- Theme setting.
theme.bg_normal = srcery_colors.brightblack
theme.bg_focus = srcery_colors.white
theme.bg_urgent = srcery_colors.brightred
theme.bg_minimize = srcery_colors.black
theme.bg_systray = theme.bg_normal
theme.fg_normal = srcery_colors.black
theme.fg_focus = srcery_colors.blue
theme.fg_urgent = srcery_colors.magenta
theme.fg_minimize = srcery_colors.white
theme.useless_gap = dpi(1)
theme.border_width = dpi(1)
theme.border_normal = srcery_colors.brightblack
theme.border_focus = srcery_colors.white
theme.border_marked = srcery_colors.brightred
-- There are other variable sets
-- overriding the default one when
-- defined, the sets are:
-- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile]
-- tasklist_[bg|fg]_[focus|urgent]
-- titlebar_[bg|fg]_[normal|focus]
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
-- mouse_finder_[color|timeout|animate_timeout|radius|factor]
-- prompt_[fg|bg|fg_cursor|bg_cursor|font]
-- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font]
-- Example:
--theme.taglist_bg_focus = "#ff0000"
-- Generate taglist squares:
local taglist_square_size = dpi(4)
theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
taglist_square_size, theme.fg_normal
)
theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
taglist_square_size, theme.fg_normal
)
-- Variables set for theming notifications:
-- notification_font
-- notification_[bg|fg]
-- notification_[width|height|margin]
-- notification_[border_color|border_width|shape|opacity]
-- Variables set for theming the menu:
-- menu_[bg|fg]_[normal|focus]
-- menu_[border_color|border_width]
theme.menu_submenu_icon = themes_path.."default/submenu.png"
theme.menu_height = dpi(20)
theme.menu_width = dpi(100)
-- You can add as many variables as
-- you wish and access them by using
-- beautiful.variable in your rc.lua
--theme.bg_widget = "#cc0000"
-- Define the image to load
theme.titlebar_close_button_normal = themes_path.."default/titlebar/close_normal.png"
theme.titlebar_close_button_focus = themes_path.."default/titlebar/close_focus.png"
theme.titlebar_minimize_button_normal = themes_path.."default/titlebar/minimize_normal.png"
theme.titlebar_minimize_button_focus = themes_path.."default/titlebar/minimize_focus.png"
theme.titlebar_ontop_button_normal_inactive = themes_path.."default/titlebar/ontop_normal_inactive.png"
theme.titlebar_ontop_button_focus_inactive = themes_path.."default/titlebar/ontop_focus_inactive.png"
theme.titlebar_ontop_button_normal_active = themes_path.."default/titlebar/ontop_normal_active.png"
theme.titlebar_ontop_button_focus_active = themes_path.."default/titlebar/ontop_focus_active.png"
theme.titlebar_sticky_button_normal_inactive = themes_path.."default/titlebar/sticky_normal_inactive.png"
theme.titlebar_sticky_button_focus_inactive = themes_path.."default/titlebar/sticky_focus_inactive.png"
theme.titlebar_sticky_button_normal_active = themes_path.."default/titlebar/sticky_normal_active.png"
theme.titlebar_sticky_button_focus_active = themes_path.."default/titlebar/sticky_focus_active.png"
theme.titlebar_floating_button_normal_inactive = themes_path.."default/titlebar/floating_normal_inactive.png"
theme.titlebar_floating_button_focus_inactive = themes_path.."default/titlebar/floating_focus_inactive.png"
theme.titlebar_floating_button_normal_active = themes_path.."default/titlebar/floating_normal_active.png"
theme.titlebar_floating_button_focus_active = themes_path.."default/titlebar/floating_focus_active.png"
theme.titlebar_maximized_button_normal_inactive = themes_path.."default/titlebar/maximized_normal_inactive.png"
theme.titlebar_maximized_button_focus_inactive = themes_path.."default/titlebar/maximized_focus_inactive.png"
theme.titlebar_maximized_button_normal_active = themes_path.."default/titlebar/maximized_normal_active.png"
theme.titlebar_maximized_button_focus_active = themes_path.."default/titlebar/maximized_focus_active.png"
theme.wallpaper = themes_path.."default/background.jpg"
-- You can use your own layout icons like this:
theme.layout_fairh = themes_path.."default/layouts/fairhw.png"
theme.layout_fairv = themes_path.."default/layouts/fairvw.png"
theme.layout_floating = themes_path.."default/layouts/floatingw.png"
theme.layout_magnifier = themes_path.."default/layouts/magnifierw.png"
theme.layout_max = themes_path.."default/layouts/maxw.png"
theme.layout_fullscreen = themes_path.."default/layouts/fullscreenw.png"
theme.layout_tilebottom = themes_path.."default/layouts/tilebottomw.png"
theme.layout_tileleft = themes_path.."default/layouts/tileleftw.png"
theme.layout_tile = themes_path.."default/layouts/tilew.png"
theme.layout_tiletop = themes_path.."default/layouts/tiletopw.png"
theme.layout_spiral = themes_path.."default/layouts/spiralw.png"
theme.layout_dwindle = themes_path.."default/layouts/dwindlew.png"
theme.layout_cornernw = themes_path.."default/layouts/cornernww.png"
theme.layout_cornerne = themes_path.."default/layouts/cornernew.png"
theme.layout_cornersw = themes_path.."default/layouts/cornersww.png"
theme.layout_cornerse = themes_path.."default/layouts/cornersew.png"
-- Generate Awesome icon:
theme.awesome_icon = theme_assets.awesome_icon(
theme.menu_height, theme.bg_focus, theme.fg_focus
)
-- Define the icon theme for application icons. If not set then the icons
-- from /usr/share/icons and /usr/share/icons/kicolor will be used.
theme.icon_theme = nil
return theme
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80

View File

@@ -7,14 +7,23 @@ alias .5='cd ../../../../..'
alias v='nvim' alias v='nvim'
alias n='nnn -e' alias n='nnn -e'
alias pdf='zathura' alias pdf='zathura'
alias bc='bc -q'
if type -q exa if type -q lsd
alias lsl="exa -l -g --icons" alias lsl="lsd -l"
alias ls="exa -g --icons" alias ls="lsd"
alias lss="exa --sort=oldest" alias lsa="lsd -a"
alias lst="exa -F -g --icons -T" alias lss="lsd -ltr"
end end
if type -q xcp if type -q xcp
alias cp="xcp" alias cp="xcp"
end end
if type -q broot
alias tree="broot"
end
if type -q bat
alias cat="bat"
end

View File

@@ -1,11 +1,12 @@
set -x EDITOR nvim set -x EDITOR nvim
set -x PAGER less set -x PAGER less
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'" #set -x MANPAGER 'sh -c \'col -bx | bat -l man -p\''
set -x fish_prompt_pwd_dir_length 1 set -x fish_prompt_pwd_dir_length 1
set -x fish_greeting '' set -x fish_greeting ''
set fish_complete_path $fish_complete_path /usr/share/fish/competions set fish_complete_path $fish_complete_path /usr/share/fish/completions
set -x JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64 set -x JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
set -x JIRA_API_TOKEN NDE2ODEyOTM5OTI2Ontw1zkanbJ8sAFMDUI1Y0QxOH7d set -x JIRA_API_TOKEN NDE2ODEyOTM5OTI2Ontw1zkanbJ8sAFMDUI1Y0QxOH7d
set -x PATH $PATH /home/kmcr/.codon
# This file is run by all fish instances. # This file is run by all fish instances.
# To include configuration only for login shells, use # To include configuration only for login shells, use
@@ -20,4 +21,12 @@ set -x JIRA_API_TOKEN NDE2ODEyOTM5OTI2Ontw1zkanbJ8sAFMDUI1Y0QxOH7d
#if status is-interactive #if status is-interactive
# cat ~/.cache/wal/sequences # cat ~/.cache/wal/sequences
#end #end
source ~/.config/nvim/plugins/falcon/exa/EXA_COLORS if test -e ~/.local/share/nvim/lazy/falcon/exa/EXA_COLORS
source ~/.local/share/nvim/lazy/falcon/exa/EXA_COLORS
end
if status is-interactive
function list_dir --on-variable PWD
ls
end
end

View File

@@ -1,2 +1,3 @@
.ackrc .ackrc
.notags .notags
.gitmessage

View File

@@ -1,29 +0,0 @@
# start a terminal
bindsym Mod4+t exec ~/.cargo/bin/alacritty
# Use pulseaudio-ctl to adjust volume in PulseAudio.
bindsym XF86AudioRaiseVolume exec pulseaudio-ctl up && $refresh_i3status
bindsym XF86AudioLowerVolume exec pulseaudio-ctl down && $refresh_i3status
bindsym XF86AudioMute exec pulseaudio-ctl mute && $refresh_i3status
bindsym XF86AudioMicMute exec pulseaudio-ctl mute-input
bindsym XF86AudioPlay exec playerctl --ignore-player=chromium play-pause
bindsym XF86AudioPause exec playerctl --ignore-player=chromium play-pause
bindsym XF86AudioStop exec playerctl --ignore-player=chromium stop
bindsym XF86AudioNext exec playerctl --ignore-player=chromium next
bindsym XF86AudioPrev exec playerctl --ignore-player=chromium previous
bindsym XF86Calculator exec --no-startup-id gnome-calculator
# System state management
bindsym Pause exec systemctl suspend
bindsym Mod4+z exec i3lock -c 151515 -e -f
# Screen brightness controls
bindsym Mod1+Up exec brightnessctl s 5\%+
bindsym Mod1+Down exec brightnessctl s 5\%-
# start rofi (a program launcher)
bindsym Mod4+d exec --no-startup-id "rofi -show run"
bindsym Mod4+Shift+d exec --no-startup-id "rofi -show window"
bindsym Mod1+Tab exec --no-startup-id "rofi -show window"
bindsym Mod4+ctrl+d exec rofi-pass

View File

@@ -1,28 +0,0 @@
# Start XDG autostart .desktop files using dex. See also
# https://wiki.archlinux.org/index.php/XDG_Autostart
exec --no-startup-id dex --autostart --environment i3
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
# they are included here as an example. Modify as you see fit.
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
exec --no-startup-id nm-applet
exec setxkbmap pl
exec --no-startup-id dunst -config ~/.config/i3/dunst_config
exec --no-startup-id pasystray -m 100
exec --no-startup-id blueman-applet
exec --no-startup-id xset b off
exec --no-startup-id flameshot
exec --no-startup-id autorandr -c
exec --no-startup-id wal -n -i ~/.config/i3/wallpaper.jpg
exec --no-startup-id feh --no-xinerama --bg-scale ~/.config/i3/wallpaper.jpg
exec --no-startup-id xdotool key --clearmodifiers Num_Lock
#exec --no-startup-id unclutter # generates some issues on work laptop
#exec --no-startup-id barriers -c ~/.config/barrier.conf --screen-change-script ~/.local/bin/switch_pc.sh
exec --no-startup-id barrierc 192.168.10.2:24800

View File

@@ -1,14 +1,8 @@
# i3 config file (v4) # i3 config file (v4)
# #
# Please see https://i3wm.org/docs/userguide.html for a complete reference! # Please see https://i3wm.org/docs/userguide.html for a complete reference!
#
# This config file uses keycodes (bindsym) and was written for the QWERTY
# layout.
#
# To get a config file with the same key positions, but for your current
# layout, use the i3-config-wizard
#
set $mod Mod4
set_from_resource $main_color i3wm.color1 #fdff00 set_from_resource $main_color i3wm.color1 #fdff00
set_from_resource $secondary_color i3wm.color0 #98d1ce set_from_resource $secondary_color i3wm.color0 #98d1ce
set_from_resource $bg_color i3wm.color4 #0c1014 set_from_resource $bg_color i3wm.color4 #0c1014
@@ -18,14 +12,14 @@ set $refresh_i3status killall -SIGUSR1 i3status-rs
# Font for window titles. Will also be used by the bar unless a different font # Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below. # is used in the bar {} block below.
font Monoid Nerd Font 9 font pango:CommitMonotuned 9
# This font is widely installed, provides lots of unicode glyphs, right-to-left # This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango). # text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8 #font pango:DejaVu Sans Mono 8
include conf.d/exec.conf include exec.conf
include conf.d/binds.conf #include binds.conf
# use these keys for focus, movement, and resize directions when reaching for # use these keys for focus, movement, and resize directions when reaching for
# the arrows is not convenient # the arrows is not convenient
@@ -34,68 +28,84 @@ set $down j
set $up k set $up k
set $right l set $right l
# use Mouse+Mod4 to drag floating windows to their wanted position # use Mouse+$mod to drag floating windows to their wanted position
floating_modifier Mod4 floating_modifier $mod
# move tiling windows via drag & drop by left-clicking into the title bar,
# or left-clicking anywhere into the window while holding the floating modifier.
tiling_drag modifier titlebar
# start a terminal
set $TERMINAL ~/.cargo/bin/wezterm
bindsym $mod+t exec $TERMINAL
# kill focused window # kill focused window
bindsym Mod4+Shift+q kill bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id dmenu_run
# A more modern dmenu replacement is rofi:
# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
# There also is i3-dmenu-desktop which only displays applications shipping a
# .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
# change focus # change focus
bindsym Mod4+$left focus left bindsym $mod+$left focus left
bindsym Mod4+$down focus down bindsym $mod+$down focus down
bindsym Mod4+$up focus up bindsym $mod+$up focus up
bindsym Mod4+$right focus right bindsym $mod+$right focus right
# alternatively, you can use the cursor keys: # alternatively, you can use the cursor keys:
bindsym Mod4+Left focus left bindsym $mod+Left focus left
bindsym Mod4+Down focus down bindsym $mod+Down focus down
bindsym Mod4+Up focus up bindsym $mod+Up focus up
bindsym Mod4+Right focus right bindsym $mod+Right focus right
# move focused window # move focused window
bindsym Mod4+Shift+$left move left bindsym $mod+Shift+$left move left
bindsym Mod4+Shift+$down move down bindsym $mod+Shift+$down move down
bindsym Mod4+Shift+$up move up bindsym $mod+Shift+$up move up
bindsym Mod4+Shift+$right move right bindsym $mod+Shift+$right move right
# alternatively, you can use the cursor keys: # alternatively, you can use the cursor keys:
bindsym Mod4+Shift+Left move left bindsym $mod+Shift+Left move left
bindsym Mod4+Shift+Down move down bindsym $mod+Shift+Down move down
bindsym Mod4+Shift+Up move up bindsym $mod+Shift+Up move up
bindsym Mod4+Shift+Right move right bindsym $mod+Shift+Right move right
# split in horizontal orientation # split in horizontal orientation
bindsym Mod4+b split h bindsym $mod+semicolon split h
# split in vertical orientation # split in vertical orientation
bindsym Mod4+v split v bindsym $mod+v split v
# enter fullscreen mode for the focused container # enter fullscreen mode for the focused container
bindsym Mod4+f fullscreen toggle bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split) # change container layout (stacked, tabbed, toggle split)
bindsym Mod4+q layout stacking bindsym $mod+q layout stacking
bindsym Mod4+w layout tabbed bindsym $mod+w layout tabbed
bindsym Mod4+e layout toggle split bindsym $mod+e layout toggle split
# toggle tiling / floating # toggle tiling / floating
bindsym Mod4+Shift+space floating toggle bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows # change focus between tiling / floating windows
bindsym Mod4+space focus mode_toggle bindsym $mod+space focus mode_toggle
# focus the parent container # focus the parent container
bindsym Mod4+a focus parent bindsym $mod+a focus parent
# focus the child container # focus the child container
#bindsym Mod4+d focus child #bindsym $mod+d focus child
# move the currently focused window to the scratchpad # move the currently focused window to the scratchpad
bindsym Mod4+m move scratchpad bindsym $mod+m move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window. # Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them. # If there are multiple scratchpad windows, this command cycles through them.
bindsym Mod4+s scratchpad show bindsym $mod+s scratchpad show
# Define names for default workspaces for which we configure key bindings later on. # Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places. # We use variables to avoid repeating the names in multiple places.
@@ -109,90 +119,38 @@ set $ws7 " 7 "
set $ws8 " 8 " set $ws8 " 8 "
set $ws9 " 9 " set $ws9 " 9 "
set $ws10 " 10 " set $ws10 " 10 "
set $ws11 " 11 "
set $ws12 " 12 "
set $ws13 " 13 "
set $ws14 " 14 "
set $ws15 " 15 "
set $ws16 " 16 "
set $ws17 " 17 "
set $ws18 " 18 "
set $ws19 " 19 "
set $ws20 " 20 "
workspace $ws1 output $output_main
workspace $ws2 output $output_main
workspace $ws3 output $output_main
workspace $ws4 output $output_main
workspace $ws5 output $output_main
workspace $ws6 output $output_main
workspace $ws7 output $output_main
workspace $ws8 output $output_main
workspace $ws9 output $output_main
workspace $ws10 output $output_main
workspace $ws11 output $output_secondary
workspace $ws12 output $output_secondary
workspace $ws13 output $output_secondary
workspace $ws14 output $output_secondary
workspace $ws15 output $output_secondary
workspace $ws16 output $output_secondary
workspace $ws17 output $output_secondary
workspace $ws18 output $output_secondary
workspace $ws19 output $output_secondary
workspace $ws20 output $output_secondary
# switch to workspace # switch to workspace
bindsym Mod4+1 workspace number $ws1 bindsym $mod+1 workspace number $ws1
bindsym Mod4+2 workspace number $ws2 bindsym $mod+2 workspace number $ws2
bindsym Mod4+3 workspace number $ws3 bindsym $mod+3 workspace number $ws3
bindsym Mod4+4 workspace number $ws4 bindsym $mod+4 workspace number $ws4
bindsym Mod4+5 workspace number $ws5 bindsym $mod+5 workspace number $ws5
bindsym Mod4+6 workspace number $ws6 bindsym $mod+6 workspace number $ws6
bindsym Mod4+7 workspace number $ws7 bindsym $mod+7 workspace number $ws7
bindsym Mod4+8 workspace number $ws8 bindsym $mod+8 workspace number $ws8
bindsym Mod4+9 workspace number $ws9 bindsym $mod+9 workspace number $ws9
bindsym Mod4+0 workspace number $ws10 bindsym $mod+0 workspace number $ws10
bindsym Mod1+1 workspace number $ws11
bindsym Mod1+2 workspace number $ws12
bindsym Mod1+3 workspace number $ws13
bindsym Mod1+4 workspace number $ws14
bindsym Mod1+5 workspace number $ws15
bindsym Mod1+6 workspace number $ws16
bindsym Mod1+7 workspace number $ws17
bindsym Mod1+8 workspace number $ws18
bindsym Mod1+9 workspace number $ws19
bindsym Mod1+0 workspace number $ws20
# move focused container to workspace # move focused container to workspace
bindsym Mod4+Shift+1 move container to workspace number $ws1 bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym Mod4+Shift+2 move container to workspace number $ws2 bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym Mod4+Shift+3 move container to workspace number $ws3 bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym Mod4+Shift+4 move container to workspace number $ws4 bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym Mod4+Shift+5 move container to workspace number $ws5 bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym Mod4+Shift+6 move container to workspace number $ws6 bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym Mod4+Shift+7 move container to workspace number $ws7 bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym Mod4+Shift+8 move container to workspace number $ws8 bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym Mod4+Shift+9 move container to workspace number $ws9 bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym Mod4+Shift+0 move container to workspace number $ws10 bindsym $mod+Shift+0 move container to workspace number $ws10
bindsym Mod1+Shift+1 move container to workspace number $ws11 bindsym $mod+n exec i3-new-workspace
bindsym Mod1+Shift+2 move container to workspace number $ws12
bindsym Mod1+Shift+3 move container to workspace number $ws13
bindsym Mod1+Shift+4 move container to workspace number $ws14
bindsym Mod1+Shift+5 move container to workspace number $ws15
bindsym Mod1+Shift+6 move container to workspace number $ws16
bindsym Mod1+Shift+7 move container to workspace number $ws17
bindsym Mod1+Shift+8 move container to workspace number $ws18
bindsym Mod1+Shift+9 move container to workspace number $ws19
bindsym Mod1+Shift+0 move container to workspace number $ws20
bindsym Mod4+n exec i3-new-workspace
# reload the configuration file # reload the configuration file
bindsym Mod4+Shift+c reload bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym Mod4+Shift+r restart bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session) # exit i3 (logs you out of your X session)
bindsym Mod4+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
# resize window (you can also use the mouse for that) # resize window (you can also use the mouse for that)
mode "resize" { mode "resize" {
@@ -208,29 +166,26 @@ mode "resize" {
bindsym $right resize grow width 10 px or 10 ppt bindsym $right resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys # same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt bindsym Left resize shrink width 5 px or 5 ppt
bindsym Down resize grow height 10 px or 10 ppt bindsym Down resize grow height 5 px or 5 ppt
bindsym Up resize shrink height 10 px or 10 ppt bindsym Up resize shrink height 5 px or 5 ppt
bindsym Right resize grow width 10 px or 10 ppt bindsym Right resize grow width 5 px or 5 ppt
# back to normal: Enter or Escape or Mod4+r # back to normal: Enter or Escape or $mod+r
bindsym Return mode "default" bindsym Return mode "default"
bindsym Escape mode "default" bindsym Escape mode "default"
bindsym Mod4+r mode "default" bindsym $mod+r mode "default"
} }
bindsym Mod4+r mode "resize" bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status # Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available) # finds out, if available)
bar { bar {
font pango:Monoid Nerd Font 9 mode hide
status_command ~/.cargo/bin/i3status-rs ~/.config/i3/i3status-rs.toml status_command i3status-rs ~/.config/i3/i3status-rs.toml
mode dock modifier $mod
modifier Mod4 font pango:CommitMonotuned 9
tray_padding 0
tray_output primary
colors { colors {
separator #268bd2 separator #268bd2
background $bg_color background $bg_color
@@ -255,8 +210,8 @@ for_window [title="Figure *"] move container to workspace $ws10 floating enable
assign [class="com-mathworks-util-PostVMInit" title="^Fig"] $ws10 assign [class="com-mathworks-util-PostVMInit" title="^Fig"] $ws10
#without borders #without borders
new_window pixel 1 default_border pixel 2
new_float pixel 3 default_floating_border pixel 3
hide_edge_borders smart hide_edge_borders smart
#focus_on_window_activation focus #focus_on_window_activation focus
focus_on_window_activation urgent focus_on_window_activation urgent

View File

@@ -1,40 +1,52 @@
theme = "solarized-dark" [icons]
icons = "awesome" icons = "awesome"
[[block]] [theme]
block = "custom" theme = "solarized-dark"
command = "echo vpn:(vpn | head -1 | cut -d: -f 2)"
interval = 5
[[block]] [[block]]
block = "disk_space" block = "disk_space"
path = "/home" path = "/home"
alias = "~"
info_type = "available" info_type = "available"
unit = "GB" alert_unit = "GB"
interval = 20 interval = 20
warning = 20.0 warning = 20.0
alert = 10.0 alert = 10.0
format = " $icon home: $available.eng(w:2) "
[[block]]
block = "disk_space"
path = "/"
info_type = "available"
alert_unit = "GB"
interval = 20
warning = 20.0
alert = 10.0
format = " $icon root: $available.eng(w:2) "
[[block]] [[block]]
block = "memory" block = "memory"
display_type = "memory" format = " $icon $mem_total_used_percents.eng(w:2) "
format_mem = "{mem_total_used_percents}" format_alt = " $icon_swap $swap_used_percents.eng(w:2) "
format_swap = "{swap_used_percents}"
[[block]]
block = "amd_gpu"
format = " $icon $utilization "
format_alt = " $icon MEM: $vram_used_percents ($vram_used/$vram_total) "
interval = 1
[[block]] [[block]]
block = "cpu" block = "cpu"
interval = 1 info_cpu = 20
warning_cpu = 50
critical_cpu = 90
[[block]] [[block]]
block = "load" block = "load"
interval = 1 interval = 1
format = "{1m}" format = " $icon 1min avg: $1m.eng(w:4) "
[[block]]
block = "sound"
[[block]] [[block]]
block = "time" block = "time"
interval = 60 interval = 5
format = "%a %d.%m %R" format = " $timestamp.datetime(f:'%a %F %T') "

View File

@@ -1,5 +0,0 @@
vim.g.airline_theme = 'minimalist'
vim.g.airline_powerline_fonts = 1
vim.g.airline_stl_path_style = 'short'
vim.g.airline_highlighting_cache = 1
vim.g.airline#extensions#searchcount#enabled = 0

View File

@@ -1,18 +0,0 @@
require('boole').setup{
mappings = {
increment = '<C-a>',
decrement = '<C-x>'
},
-- User defined loops
additions = {
{'Foo', 'Bar'},
{'tic', 'tac', 'toe'},
{'light', 'dark'},
{'phaseOne', 'phaseTwo', 'phaseThree'},
{'PhaseOne', 'PhaseTwo', 'PhaseThree'},
{'Enable', 'Disable'},
{'ENABLE', 'DISABLE'},
{'enable', 'disable'},
{'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'},
},
}

View File

@@ -1 +0,0 @@
require('Comment').setup()

View File

@@ -1,35 +0,0 @@
-- " Configuration for context.vim
-- "" Disable context.vim on json files
-- ""let g:context_filetype_blacklist = ["json", "log"]
require'treesitter-context'.setup{
enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
throttle = true, -- Throttles plugin updates (may improve performance)
max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit.
patterns = { -- Match patterns for TS nodes. These get wrapped to match at word boundaries.
-- For all filetypes
-- Note that setting an entry here replaces all other patterns for this entry.
-- By setting the 'default' entry below, you can control which nodes you want to
-- appear in the context window.
default = {
'class',
'function',
'method',
'for',
'while',
'if',
'switch',
-- 'case',
},
-- Example for a specific filetype.
-- If a pattern is missing, *open a PR* so everyone can benefit.
rust = {
'impl_item',
},
},
exact_patterns = {
-- Example for a specific filetype with Lua patterns
-- Treat patterns.rust as a Lua pattern (i.e "^impl_item$" will
-- exactly match "impl_item" only)
rust = true,
}
}

View File

@@ -1 +0,0 @@
require('crates').setup()

View File

@@ -1 +0,0 @@
require('debugprint').setup()

View File

@@ -1 +0,0 @@
inoremap <C-k><C-k> <Cmd>lua require'better-digraphs'.digraphs("i")<CR>

View File

@@ -1,159 +0,0 @@
require('dressing').setup({
input = {
-- Set to false to disable the vim.ui.input implementation
enabled = true,
-- Default prompt string
default_prompt = "Input:",
-- Can be 'left', 'right', or 'center'
prompt_align = "left",
-- When true, <Esc> will close the modal
insert_only = true,
-- When true, input will start in insert mode.
start_in_insert = true,
-- These are passed to nvim_open_win
anchor = "SW",
border = "rounded",
-- 'editor' and 'win' will default to being centered
relative = "cursor",
-- These can be integers or a float between 0 and 1 (e.g. 0.4 for 40%)
prefer_width = 40,
width = nil,
-- min_width and max_width can be a list of mixed types.
-- min_width = {20, 0.2} means "the greater of 20 columns or 20% of total"
max_width = { 140, 0.9 },
min_width = { 20, 0.2 },
buf_options = {},
win_options = {
-- Window transparency (0-100)
winblend = 10,
-- Disable line wrapping
wrap = false,
},
-- Set to `false` to disable
mappings = {
n = {
["<Esc>"] = "Close",
["<CR>"] = "Confirm",
},
i = {
["<C-c>"] = "Close",
["<CR>"] = "Confirm",
["<Up>"] = "HistoryPrev",
["<Down>"] = "HistoryNext",
},
},
override = function(conf)
-- This is the config that will be passed to nvim_open_win.
-- Change values here to customize the layout
return conf
end,
-- see :help dressing_get_config
get_config = nil,
},
select = {
-- Set to false to disable the vim.ui.select implementation
enabled = true,
-- Priority list of preferred vim.select implementations
backend = { "telescope", "fzf_lua", "fzf", "builtin", "nui" },
-- Trim trailing `:` from prompt
trim_prompt = true,
-- Options for telescope selector
-- These are passed into the telescope picker directly. Can be used like:
-- telescope = require('telescope.themes').get_ivy({...})
telescope = nil,
-- Options for fzf selector
fzf = {
window = {
width = 0.5,
height = 0.4,
},
},
-- Options for fzf_lua selector
fzf_lua = {
winopts = {
width = 0.5,
height = 0.4,
},
},
-- Options for nui Menu
nui = {
position = "50%",
size = nil,
relative = "editor",
border = {
style = "rounded",
},
buf_options = {
swapfile = false,
filetype = "DressingSelect",
},
win_options = {
winblend = 10,
},
max_width = 80,
max_height = 40,
min_width = 40,
min_height = 10,
},
-- Options for built-in selector
builtin = {
-- These are passed to nvim_open_win
anchor = "NW",
border = "rounded",
-- 'editor' and 'win' will default to being centered
relative = "editor",
buf_options = {},
win_options = {
-- Window transparency (0-100)
winblend = 10,
},
-- These can be integers or a float between 0 and 1 (e.g. 0.4 for 40%)
-- the min_ and max_ options can be a list of mixed types.
-- max_width = {140, 0.8} means "the lesser of 140 columns or 80% of total"
width = nil,
max_width = { 140, 0.8 },
min_width = { 40, 0.2 },
height = nil,
max_height = 0.9,
min_height = { 10, 0.2 },
-- Set to `false` to disable
mappings = {
["<Esc>"] = "Close",
["<C-c>"] = "Close",
["<CR>"] = "Confirm",
},
override = function(conf)
-- This is the config that will be passed to nvim_open_win.
-- Change values here to customize the layout
return conf
end,
},
-- Used to override format_item. See :help dressing-format
format_item_override = {},
-- see :help dressing_get_config
get_config = nil,
},
})

View File

@@ -1 +0,0 @@
require('femaco').setup()

View File

@@ -1,45 +0,0 @@
require'FTerm'.setup({
-- Filetype of the terminal buffer
ft = 'FTerm',
-- Command to run inside the terminal. It could be a `string` or `table`
cmd = os.getenv('SHELL'),
-- Neovim's native window border. See `:h nvim_open_win` for more configuration options.
border = 'double',
-- Close the terminal as soon as shell/command exits.
-- Disabling this will mimic the native terminal behaviour.
auto_close = true,
-- Highlight group for the terminal. See `:h winhl`
hl = 'Normal',
-- Transparency of the floating window. See `:h winblend`
blend = 0,
-- Object containing the terminal window dimensions.
-- The value for each field should be between `0` and `1`
dimensions = {
height = 0.9, -- Height of the terminal window
width = 0.9, -- Width of the terminal window
x = 0.5, -- X axis of the terminal window
y = 0.5, -- Y axis of the terminal window
},
-- Callback invoked when the terminal exits.
-- See `:h jobstart-options`
on_exit = nil,
-- Callback invoked when the terminal emits stdout data.
-- See `:h jobstart-options`
on_stdout = nil,
-- Callback invoked when the terminal emits stderr data.
-- See `:h jobstart-options`
on_stderr = nil,
})
-- Example keybindings
vim.keymap.set('n', '<leader>i', '<CMD>lua require("FTerm").toggle()<CR>')
vim.keymap.set('t', '<leader>i', '<CMD>lua require("FTerm").toggle()<CR>')

View File

@@ -1,104 +0,0 @@
require('gitsigns').setup {
signs = {
add = {hl = 'GitSignsAdd' , text = '', numhl='GitSignsAddNr' , linehl='GitSignsAddLn'},
change = {hl = 'GitSignsChange', text = '', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'},
delete = {hl = 'GitSignsDelete', text = '_', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'},
topdelete = {hl = 'GitSignsDelete', text = '', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'},
changedelete = {hl = 'GitSignsChange', text = '~', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'},
},
signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
numhl = true, -- Toggle with `:Gitsigns toggle_numhl`
linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff`
--keymaps = {
-- -- Default keymap options
-- noremap = true,
-- ['n ]c'] = { expr = true, "&diff ? ']c' : '<cmd>Gitsigns next_hunk<CR>'"},
-- ['n [c'] = { expr = true, "&diff ? '[c' : '<cmd>Gitsigns prev_hunk<CR>'"},
-- ['n <leader>hs'] = '<cmd>Gitsigns stage_hunk<CR>',
-- ['v <leader>hs'] = '<cmd>Gitsigns stage_hunk<CR>',
-- ['n <leader>hu'] = '<cmd>Gitsigns undo_stage_hunk<CR>',
-- ['n <leader>hr'] = '<cmd>Gitsigns reset_hunk<CR>',
-- ['v <leader>hr'] = '<cmd>:Gitsigns reset_hunk<CR>',
-- ['n <leader>hR'] = '<cmd>Gitsigns reset_buffer<CR>',
-- ['n <leader>hp'] = '<cmd>Gitsigns preview_hunk<CR>',
-- ['n <leader>hb'] = '<cmd>lua require"gitsigns".blame_line{full=true}<CR>',
-- ['n <leader>hS'] = '<cmd>Gitsigns stage_buffer<CR>',
-- ['n <leader>hU'] = '<cmd>Gitsigns reset_buffer_index<CR>',
-- -- Text objects
-- ['o ih'] = '<cmd><C-U>Gitsigns select_hunk<CR>',
-- ['x ih'] = '<cmd><C-U>Gitsigns select_hunk<CR>'
--},
on_attach = function(bufnr)
local gs = package.loaded.gitsigns
local function map(mode, l, r, opts)
opts = opts or {}
opts.buffer = bufnr
vim.keymap.set(mode, l, r, opts)
end
-- Navigation
map('n', ']c', function()
if vim.wo.diff then return ']c' end
vim.schedule(function() gs.next_hunk() end)
return '<Ignore>'
end, {expr=true})
map('n', '[c', function()
if vim.wo.diff then return '[c' end
vim.schedule(function() gs.prev_hunk() end)
return '<Ignore>'
end, {expr=true})
-- Actions
map({'n', 'v'}, '<leader>hs', '<cmd>Gitsigns stage_hunk<CR>')
map({'n', 'v'}, '<leader>hr', '<cmd>Gitsigns reset_hunk<CR>')
map('n', '<leader>hS', gs.stage_buffer)
map('n', '<leader>hu', gs.undo_stage_hunk)
map('n', '<leader>hR', gs.reset_buffer)
map('n', '<leader>hp', gs.preview_hunk)
map('n', '<leader>hb', function() gs.blame_line{full=true} end)
map('n', '<leader>tb', gs.toggle_current_line_blame)
map('n', '<leader>hd', gs.diffthis)
map('n', '<leader>hD', function() gs.diffthis('~') end)
map('n', '<leader>td', gs.toggle_deleted)
-- Text object
map({'o', 'x'}, 'ih', ':<C-U>Gitsigns select_hunk<CR>')
end,
watch_gitdir = {
interval = 1000,
follow_files = true
},
attach_to_untracked = true,
current_line_blame = true, -- Toggle with `:Gitsigns toggle_current_line_blame`
current_line_blame_opts = {
virt_text = true,
virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'
delay = 1000,
ignore_whitespace = true,
},
current_line_blame_formatter_opts = {
relative_time = false
},
sign_priority = 6,
update_debounce = 100,
status_formatter = nil, -- Use default
max_file_length = 40000,
preview_config = {
-- Options passed to nvim_open_win
border = 'single',
style = 'minimal',
relative = 'cursor',
row = 0,
col = 1
},
yadm = {
enable = true
},
}

View File

@@ -1,11 +0,0 @@
"noremap <silent> n <Cmd>execute('normal! ' . v:count1 . 'n')<CR>
" \<Cmd>lua require('hlslens').start()<CR>
"noremap <silent> N <Cmd>execute('normal! ' . v:count1 . 'N')<CR>
" \<Cmd>lua require('hlslens').start()<CR>
"noremap * *<Cmd>lua require('hlslens').start()<CR>
"noremap # #<Cmd>lua require('hlslens').start()<CR>
"noremap g* g*<Cmd>lua require('hlslens').start()<CR>
"noremap g# g#<Cmd>lua require('hlslens').start()<CR>
"
"" use : instead of <Cmd>
"nnoremap <silent> <leader>l :noh<CR>

View File

@@ -1,5 +0,0 @@
require("icon-picker")
local opts = { noremap = true, silent = true }
vim.keymap.set("n", "<leader>o", "<cmd>PickIcons<cr>", opts)

View File

@@ -1,42 +0,0 @@
--require('illuminate').configure({
-- large_file_cutoff = 3000
--})
HIGHLIGHT = 'highlight'
vim.api.nvim_create_augroup(HIGHLIGHT, { clear = true })
require('murmur').setup {
cursor_rgb = 'darkgreen', -- default to '#393939'
max_len = 80, -- maximum word-length to highlight
-- disable_on_lines = 2000, -- to prevent lagging on large files. Default to 2000 lines.
exclude_filetypes = {'log'},
callbacks = {
-- to trigger the close_events of vim.diagnostic.open_float.
function ()
-- Close floating diag. and make it triggerable again.
vim.cmd('doautocmd InsertEnter')
vim.w.diag_shown = false
end,
}
}
vim.api.nvim_create_autocmd('CursorHold', {
group = HIGHLIGHT,
pattern = '*',
callback = function ()
-- skip when a float-win already exists.
if vim.w.diag_shown then return end
-- open float-win when hovering on a cursor-word.
if vim.w.cursor_word ~= '' then
vim.diagnostic.open_float(nil, {
focusable = true,
close_events = { 'InsertEnter' },
border = 'rounded',
source = 'always',
prefix = ' ',
scope = 'cursor',
})
vim.w.diag_shown = true
end
end
})

View File

@@ -1,22 +0,0 @@
--require("indent_blankline").setup {
-- char = "",
-- show_current_context = true,
-- --show_current_context_start = true,
-- space_char_blankline = " ",
-- char_highlight_list = {
-- "IndentBlanklineIndent1",
-- "IndentBlanklineIndent2",
-- "IndentBlanklineIndent3",
-- "IndentBlanklineIndent4",
-- "IndentBlanklineIndent5",
-- "IndentBlanklineIndent6",
-- },
-- space_char_highlight_list = {
-- "IndentBlanklineIndent1",
-- "IndentBlanklineIndent2",
-- "IndentBlanklineIndent3",
-- "IndentBlanklineIndent4",
-- "IndentBlanklineIndent5",
-- "IndentBlanklineIndent6",
-- },
--}

View File

@@ -1,5 +0,0 @@
require('iswap').setup{}
local opts = { noremap=true, silent=true }
vim.api.nvim_set_keymap('n', 'ta', '<cmd>ISwapWith<cr>', opts)
vim.api.nvim_set_keymap('n', 'tn', '<cmd>ISwap<cr>', opts)

View File

@@ -1,29 +0,0 @@
local gknapsettings = {
htmloutputext = "html",
htmltohtml = "touch %outputfile%",
htmltohtmlviewerlaunch = "google-chrome-beta %outputfile%",
htmltohtmlviewerrefresh = "none",
mdoutputext = "html",
mdtohtml = "pandoc --standalone %docroot% -o %outputfile%",
mdtohtmlviewerlaunch = "google-chrome-beta %outputfile%",
mdtohtmlviewerrefresh = "none",
mdtopdf = "pandoc %docroot% -o %outputfile%",
mdtopdfviewerlaunch = "sioyek %outputfile%",
mdtopdfviewerrefresh = "none",
markdownoutputext = "html",
markdowntohtml = "pandoc --standalone %docroot% -o %outputfile%",
markdowntohtmlviewerlaunch = "google-chrome-beta %outputfile%",
markdowntohtmlviewerrefresh = "none",
markdowntopdf = "pandoc %docroot% -o %outputfile%",
markdowntopdfviewerlaunch = "sioyek %outputfile%",
markdowntopdfviewerrefresh = "none",
texoutputext = "pdf",
textopdf = "pdflatex -interaction=batchmode -halt-on-error -synctex=1 %docroot%",
textopdfviewerlaunch = "sioyek --inverse-search 'nvim --headless -es --cmd \"lua require('\"'\"'knaphelper'\"'\"').relayjump('\"'\"'%servername%'\"'\"','\"'\"'%1'\"'\"',%2,%3)\"' --reuse-instance %outputfile%",
textopdfviewerrefresh = "none",
textopdfforwardjump = "sioyek --inverse-search 'nvim --headless -es --cmd \"lua require('\"'\"'knaphelper'\"'\"').relayjump('\"'\"'%servername%'\"'\"','\"'\"'%1'\"'\"',%2,%3)\"' --reuse-instance --forward-search-file %srcfile% --forward-search-line %line% %outputfile%",
textopdfshorterror = "A=%outputfile% ; LOGFILE=\"${A%.pdf}.log\" ; rubber-info \"$LOGFILE\" 2>&1 | head -n 1",
delay = 250
}
vim.g.knap_settings = gknapsettings

View File

@@ -1,20 +0,0 @@
local leap = require('leap')
leap.setup {
case_insensitive = true,
-- Leaving the appropriate list empty effectively disables "smart" mode,
-- and forces auto-jump to be on or off.
--safe_labels = { . . . },
--labels = { . . . },
-- These keys are captured directly by the plugin at runtime.
special_keys = {
repeat_search = '<enter>',
next_match = '<enter>',
prev_match = '<tab>',
next_group = '<space>',
prev_group = '<tab>',
eol = '<space>',
},
}
leap.set_default_keymaps()

View File

@@ -1,150 +0,0 @@
local nvim_lsp = require('lspconfig')
local clangd_extensions = require('clangd_extensions')
local lsp_signature = require('lsp_signature')
-- Mappings.
local opts = { noremap=true, silent=true }
vim.api.nvim_set_keymap('n', '<leader>e', '<cmd>lua vim.diagnostic.open_float()<CR>', opts)
vim.api.nvim_set_keymap('n', '[d', '<cmd>lua vim.diagnostic.goto_prev()<CR>', opts)
vim.api.nvim_set_keymap('n', ']d', '<cmd>lua vim.diagnostic.goto_next()<CR>', opts)
vim.api.nvim_set_keymap('n', '<leader>E', '<cmd>lua vim.diagnostic.set_loclist()<CR>', opts)
vim.api.nvim_set_keymap("n", "<leader>q", "<cmd>lua vim.lsp.buf.format{ async = true }<CR>", opts)
-- Use an on_attach function to only map the following keys
-- after the language server attaches to the current buffer
local on_attach = function(client, bufnr)
--Enable completion triggered by <c-x><c-o>
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
---- See `:help vim.lsp.*` for documentation on any of the below functions
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts)
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<F6>', '<cmd>ClangdSwitchSourceHeader<cr>', opts)
-- require'illuminate'.on_attach(client)
require'virtualtypes'.on_attach()
require'lsp_signature'.on_attach({
floating_window = true,
floating_window_above_cur_line = false,
floating_window_off_x = 500,
floating_window_off_y = -5,
})
end
local signs = {
{ name = "DiagnosticSignError", text = "" },
{ name = "DiagnosticSignWarn", text = "" },
{ name = "DiagnosticSignHint", text = "" },
{ name = "DiagnosticSignInfo", text = "" },
}
for _, sign in ipairs(signs) do
vim.fn.sign_define(sign.name, { texthl = sign.name, text = sign.text, numhl = "" })
end
--vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
-- vim.lsp.diagnostic.on_publish_diagnostics, {
-- signs = {
-- active = signs,
-- --severity_limit = 'info',
-- },
-- severity_sort = true,
-- underline = false,
-- update_in_insert = false,
-- --virtual_text = {
-- -- spacing = 40,
-- -- severity_limit = 'Warning',
-- --},
-- virtual_text = false,
-- }
--)
--
local capabilities = require('cmp_nvim_lsp').default_capabilities()
nvim_lsp.groovyls.setup({
cmd = { "java", "-jar", "/home/kmcr/tools/groovy-language-server/build/libs/groovy-language-server-all.jar" },
on_attach = on_attach,
--on_publish_diagnostics = diagnostic_handler,
capabilities = capabilities
})
-- nvim_lsp.ccls.setup(
-- coq.lsp_ensure_capabilities({
-- init_options = {
-- compilationDatabaseDirectory = ".";
-- index = {
-- threads = 0;
-- },
-- clang = {
-- excludeArgs = { "-frounding-math"} ;
-- },
-- },
-- root_dir = nvim_lsp.util.root_pattern("compile_commands.json"),
-- on_attach = on_attach,
-- on_publish_diagnostics = diagnostic_handler,
-- flags = {
-- debounce_text_changes = 150,
-- }}
-- )
-- )
clangd_extensions.setup({
server = {
on_attach = on_attach,
root_pattern = {
'.clangd',
'.clang-tidy',
'.clang-format',
'compile_commands.json',
'compile_flags.txt',
'configure.ac',
},
capabilities = capabilities
},
inlay_hints = {
max_len_align = true,
max_len_align_padding = 3,
right_align = true,
}
})
nvim_lsp.pylsp.setup({
settings = {
pylint = {
enabled = false
},
pyflakes = {
enabled = false,
},
},
-- flags = {
-- debounce_text_changes = 150,
-- },
on_attach = on_attach,
capabilities = capabilities
--on_publish_diagnostics = diagnostic_handler,
})
-- Use a loop to conveniently call 'setup' on multiple servers and
-- map buffer local keybindings when the language server attaches
local servers = { "cmake", "rust_analyzer", "bashls", "marksman" }
for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup({
on_attach = on_attach,
--on_publish_diagnostics = diagnostic_handler,
capabilities = capabilities,
-- flags = {
-- debounce_text_changes = 150,
-- }
})
end

View File

@@ -1,222 +0,0 @@
-- Eviline config for lualine
-- Author: shadmansaleh
-- Credit: glepnir
local lualine = require('lualine')
-- Color table for highlights
-- stylua: ignore
local colors = {
bg = '#202328',
fg = '#bbc2cf',
yellow = '#ECBE7B',
cyan = '#008080',
darkblue = '#081633',
green = '#98be65',
orange = '#FF8800',
violet = '#a9a1e1',
magenta = '#c678dd',
blue = '#51afef',
red = '#ec5f67',
}
local conditions = {
buffer_not_empty = function()
return vim.fn.empty(vim.fn.expand('%:t')) ~= 1
end,
hide_in_width = function()
return vim.fn.winwidth(0) > 80
end,
check_git_workspace = function()
local filepath = vim.fn.expand('%:p:h')
local gitdir = vim.fn.finddir('.git', filepath .. ';')
return gitdir and #gitdir > 0 and #gitdir < #filepath
end,
}
-- Config
local config = {
options = {
-- Disable sections and component separators
component_separators = '',
section_separators = '',
theme = {
-- We are going to use lualine_c an lualine_x as left and
-- right section. Both are highlighted by c theme . So we
-- are just setting default looks o statusline
normal = { c = { fg = colors.fg, bg = colors.bg } },
inactive = { c = { fg = colors.fg, bg = colors.bg } },
},
},
sections = {
-- these are to remove the defaults
lualine_a = {},
lualine_b = {},
lualine_y = {},
lualine_z = {},
-- These will be filled later
lualine_c = {},
lualine_x = {},
},
inactive_sections = {
-- these are to remove the defaults
lualine_a = {},
lualine_b = {},
lualine_y = {},
lualine_z = {},
lualine_c = {},
lualine_x = {},
},
}
-- Inserts a component in lualine_c at left section
local function ins_left(component)
table.insert(config.sections.lualine_c, component)
end
-- Inserts a component in lualine_x ot right section
local function ins_right(component)
table.insert(config.sections.lualine_x, component)
end
ins_left {
function()
return ''
end,
color = { fg = colors.blue }, -- Sets highlighting of component
padding = { left = 0, right = 1 }, -- We don't need space before this
}
ins_left {
-- mode component
function()
return ''
end,
color = function()
-- auto change color according to neovims mode
local mode_color = {
n = colors.red,
i = colors.green,
v = colors.blue,
[''] = colors.blue,
V = colors.blue,
c = colors.magenta,
no = colors.red,
s = colors.orange,
S = colors.orange,
[''] = colors.orange,
ic = colors.yellow,
R = colors.violet,
Rv = colors.violet,
cv = colors.red,
ce = colors.red,
r = colors.cyan,
rm = colors.cyan,
['r?'] = colors.cyan,
['!'] = colors.red,
t = colors.red,
}
return { fg = mode_color[vim.fn.mode()] }
end,
padding = { right = 1 },
}
ins_left {
-- filesize component
'filesize',
cond = conditions.buffer_not_empty,
}
ins_left {
'filename',
cond = conditions.buffer_not_empty,
color = { fg = colors.magenta, gui = 'bold' },
}
ins_left { 'location' }
ins_left { 'progress', color = { fg = colors.fg, gui = 'bold' } }
ins_left {
'diagnostics',
sources = { 'nvim_diagnostic' },
symbols = { error = '', warn = '', info = '' },
diagnostics_color = {
color_error = { fg = colors.red },
color_warn = { fg = colors.yellow },
color_info = { fg = colors.cyan },
},
}
-- Insert mid section. You can make any number of sections in neovim :)
-- for lualine it's any number greater then 2
ins_left {
function()
return '%='
end,
}
ins_left {
-- Lsp server name .
function()
local msg = 'No Active Lsp'
local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
local clients = vim.lsp.get_active_clients()
if next(clients) == nil then
return msg
end
for _, client in ipairs(clients) do
local filetypes = client.config.filetypes
if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
return client.name
end
end
return msg
end,
icon = ' LSP:',
color = { fg = '#ffffff', gui = 'bold' },
}
-- Add components to right sections
ins_right {
'o:encoding', -- option component same as &encoding in viml
fmt = string.upper, -- I'm not sure why it's upper case either ;)
cond = conditions.hide_in_width,
color = { fg = colors.green, gui = 'bold' },
}
ins_right {
'fileformat',
fmt = string.upper,
icons_enabled = true, -- I think icons are cool but Eviline doesn't have them. sigh
color = { fg = colors.green, gui = 'bold' },
}
ins_right {
'branch',
icon = '',
color = { fg = colors.violet, gui = 'bold' },
}
ins_right {
'diff',
-- Is it me or the symbol for modified us really weird
symbols = { added = '', modified = '', removed = '' },
diff_color = {
added = { fg = colors.green },
modified = { fg = colors.orange },
removed = { fg = colors.red },
},
cond = conditions.hide_in_width,
}
ins_right {
function()
return ''
end,
color = { fg = colors.blue },
padding = { left = 1 },
}
-- Now don't forget to initialize lualine
lualine.setup(config)

View File

@@ -1 +0,0 @@
let g:mkdp_filetypes = ['markdown', 'plantuml']

View File

@@ -1,4 +0,0 @@
local codewindow = require('codewindow')
codewindow.setup()
codewindow.apply_default_keybinds()

View File

@@ -1,88 +0,0 @@
require('mkdnflow').setup({
modules = {
bib = true,
buffers = true,
conceal = true,
cursor = true,
folds = true,
links = true,
lists = true,
maps = true,
paths = true,
tables = true
},
filetypes = {md = true, rmd = true, markdown = true},
create_dirs = true,
perspective = {
priority = 'first',
fallback = 'current',
root_tell = false,
nvim_wd_heel = true
},
wrap = false,
bib = {
default_path = nil,
find_in_root = true
},
silent = false,
links = {
style = 'markdown',
conceal = false,
implicit_extension = nil,
transform_implicit = false,
transform_explicit = function(text)
text = text:gsub(" ", "-")
text = text:lower()
text = os.date('%Y-%m-%d_')..text
return(text)
end
},
to_do = {
symbols = {' ', '-', 'X'},
update_parents = true,
not_started = ' ',
in_progress = '-',
complete = 'X'
},
tables = {
trim_whitespace = true,
format_on_move = true,
auto_extend_rows = false,
auto_extend_cols = false
},
mappings = {
MkdnEnter = {{'n', 'v'}, '<CR>'},
MkdnTab = false,
MkdnSTab = false,
MkdnNextLink = {'n', '<Tab>'},
MkdnPrevLink = {'n', '<S-Tab>'},
MkdnNextHeading = {'n', ']]'},
MkdnPrevHeading = {'n', '[['},
MkdnGoBack = {'n', '<BS>'},
MkdnGoForward = {'n', '<Del>'},
MkdnFollowLink = false, -- see MkdnEnter
MkdnDestroyLink = {'n', '<M-CR>'},
MkdnTagSpan = {'v', '<M-CR>'},
MkdnMoveSource = {'n', '<F2>'},
MkdnYankAnchorLink = {'n', 'ya'},
MkdnYankFileAnchorLink = {'n', 'yfa'},
MkdnIncreaseHeading = {'n', '+'},
MkdnDecreaseHeading = {'n', '-'},
MkdnToggleToDo = {{'n', 'v'}, '<C-Space>'},
MkdnNewListItem = false,
MkdnNewListItemBelowInsert = {'n', 'o'},
MkdnNewListItemAboveInsert = {'n', 'O'},
MkdnExtendList = false,
MkdnUpdateNumbering = {'n', '<leader>nn'},
MkdnTableNextCell = {'i', '<Tab>'},
MkdnTablePrevCell = {'i', '<S-Tab>'},
MkdnTableNextRow = false,
MkdnTablePrevRow = {'i', '<M-CR>'},
MkdnTableNewRowBelow = {'n', '<leader>ir'},
MkdnTableNewRowAbove = {'n', '<leader>iR'},
MkdnTableNewColAfter = {'n', '<leader>ic'},
MkdnTableNewColBefore = {'n', '<leader>iC'},
MkdnFoldSection = {'n', '<leader>f'},
MkdnUnfoldSection = {'n', '<leader>F'}
}
})

View File

@@ -1,14 +0,0 @@
require('neorg').setup {
load = {
["core.defaults"] = {},
["core.norg.dirman"] = {
config = {
workspaces = {
work = "~/notes/work",
home = "~/notes/home",
}
}
},
["core.norg.concealer"] = {},
}
}

View File

@@ -1,13 +0,0 @@
-- require('neoscroll').setup({
-- -- All these keys will be mapped to their corresponding default scrolling animation
-- mappings = {'<C-u>', '<C-d>', '<C-b>', '<C-f>',
-- '<C-y>', '<C-e>', 'zt', 'zz', 'zb'},
-- hide_cursor = true, -- Hide cursor while scrolling
-- stop_eof = true, -- Stop at <EOF> when scrolling downwards
-- use_local_scrolloff = false, -- Use the local scope of scrolloff instead of the global scope
-- respect_scrolloff = false, -- Stop scrolling when the cursor reaches the scrolloff margin of the file
-- cursor_scrolls_alone = true, -- The cursor will keep on scrolling even if the window cannot scroll further
-- easing_function = nil, -- Default easing function
-- pre_hook = nil, -- Function to run before the scrolling animation starts
-- post_hook = nil, -- Function to run after the scrolling animation ends
-- })

View File

@@ -1,68 +0,0 @@
local cmp = require'cmp'
cmp.setup({
snippet = {
expand = function(args)
require('snippy').expand_snippet(args.body)
end,
},
window = {
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
},
mapping = cmp.mapping.preset.insert({
['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.abort(),
['<CR>'] = cmp.mapping.confirm({ select = false }),
}),
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
{ name = 'path' },
{ name = 'snippy' },
{ name = 'calc' },
{ name = 'cmp_matlab' },
{ name = 'cmp_git' },
}, {
{ name = 'buffer', keyword_length = 5, max_item_count = 10, priority = -5 },
}),
sorting = {
comparators = {
cmp.config.compare.offset,
cmp.config.compare.exact,
cmp.config.compare.recently_used,
require("clangd_extensions.cmp_scores"),
cmp.config.compare.kind,
cmp.config.compare.sort_text,
cmp.config.compare.length,
cmp.config.compare.order,
},
},
})
cmp.setup.cmdline({'/', '?'}, {
mapping = cmp.mapping.preset.cmdline(),
sources = {
{ name = 'buffer' }
}
})
cmp.setup.cmdline(':', {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
{ name = 'path' }
}, {
{ name = 'cmdline' }
})
})
cmp.setup.filetype('gitcommit', {
sources = cmp.config.sources({
{name = 'cmp_git' },
}, {
{name = 'buffer' }
})
})
require("cmp_git").setup()

View File

@@ -1,132 +0,0 @@
local opts = { noremap = true, silent = true }
vim.keymap.set("n", "<leader>tt", "<cmd>NvimTreeToggle<cr>", opts)
vim.keymap.set("n", "<leader>tf", "<cmd>NvimTreeFindFile<cr>", opts)
vim.g.nvim_tree_refresh_wait = 1000
-- following options are the default
-- each of these are documented in `:help nvim-tree.OPTION_NAME`
require'nvim-tree'.setup {
disable_netrw = true,
hijack_netrw = true,
open_on_setup = true,
ignore_ft_on_setup = {},
open_on_tab = false,
hijack_cursor = true,
update_cwd = false,
create_in_closed_folder = false,
hijack_unnamed_buffer_when_opening = true,
sync_root_with_cwd = true,
reload_on_bufenter = true,
respect_buf_cwd = false,
hijack_directories = {
enable = true,
auto_open = true,
},
diagnostics = {
enable = false,
icons = {
hint = "",
info = "",
warning = "",
error = "",
}
},
update_focused_file = {
enable = true,
update_cwd = false,
ignore_list = {}
},
system_open = {
cmd = nil,
args = {}
},
filters = {
dotfiles = false,
custom = {}
},
git = {
enable = true,
ignore = false,
timeout = 500,
},
view = {
width = 35,
hide_root_folder = true,
side = 'left',
mappings = {
custom_only = false,
list = {}
},
number = false,
relativenumber = false,
signcolumn = "no"
},
trash = {
cmd = "trash",
require_confirm = true
},
actions = {
open_file = {
quit_on_open = false,
window_picker = {
exclude = {
filetype = { "notify", "packer", "qf" },
buftype = { "terminal" },
},
},
},
change_dir = {
global = true,
},
},
renderer = {
indent_markers = {
enable = true -- this option shows indent markers when folders are open
},
icons = {
show = {
git = true,
folder = true,
file = true,
folder_arrow = false,
},
glyphs = {
default = '',
symlink = '',
git = {
unstaged = "",
staged = "",
unmerged = "",
renamed = "",
untracked = "",
deleted = "",
ignored = ""
},
folder = {
arrow_open = "",
arrow_closed = "",
default = "",
open = "",
empty = "",
empty_open = "",
symlink = "",
symlink_open = "",
}
},
padding = ' ',
symlink_arrow = ' -> ',
},
group_empty = true,
add_trailing = true,
highlight_git = true,
highlight_opened_files = 'icon',
root_folder_modifier = ':~',
special_files = {
'README.md',
'Makefile',
'MAKEFILE'
},
},
}

View File

@@ -1,67 +0,0 @@
-- Plug 'rgroli/other.nvim'
require("other-nvim").setup({
mappings = {
-- custom mapping
{
pattern = "/src/(.*).cpp$",
target = "/include/%1.hpp",
transformer = "lowercase",
context = "header"
},
{
pattern = "/src/(.*).cpp$",
target = "/include/%1.h",
transformer = "lowercase",
context = "header"
},
{
pattern = "/src/(.*).hpp$",
target = "/include/%1.cpp",
transformer = "lowercase",
context = "source"
},
{
pattern = "/include/(.*).hpp$",
target = "/src/%1.cpp",
transformer = "lowercase",
context = "source"
},
{
pattern = "/include/(.*).h$",
target = "/src/%1.cpp",
transformer = "lowercase",
context = "source"
}
},
transformers = {
-- defining a custom transformer
lowercase = function (inputString)
return inputString:lower()
end
},
style = {
-- How the plugin paints its window borders
-- Allowed values are none, single, double, rounded, solid and shadow
border = "solid",
-- Column seperator for the window
seperator = "|",
-- width of the window in percent. e.g. 0.5 is 50%, is 100%
width = 0.7,
-- min height in rows.
-- when more columns are needed this value is extended automatically
minHeight = 2
},
})
vim.api.nvim_set_keymap("n", "<leader>ll", "<cmd>:Other<CR>", { noremap = true, silent = true })
vim.api.nvim_set_keymap("n", "<leader>lp", "<cmd>:OtherSplit<CR>", { noremap = true, silent = true })
vim.api.nvim_set_keymap("n", "<leader>lv", "<cmd>:OtherVSplit<CR>", { noremap = true, silent = true })
vim.api.nvim_set_keymap("n", "<leader>lc", "<cmd>:OtherClear<CR>", { noremap = true, silent = true })
-- Context specific bindings
vim.api.nvim_set_keymap("n", "<leader>lt", "<cmd>:Other test<CR>", { noremap = true, silent = true })
vim.api.nvim_set_keymap("n", "<leader>ls", "<cmd>:Other scss<CR>", { noremap = true, silent = true })

View File

@@ -1,34 +0,0 @@
-- default config:
require('peek').setup({
auto_load = true, -- whether to automatically load preview when
-- entering another markdown buffer
close_on_bdelete = true, -- close preview window on buffer delete
syntax = true, -- enable syntax highlighting, affects performance
theme = 'dark', -- 'dark' or 'light'
update_on_change = true,
-- relevant if update_on_change is true
throttle_at = 200000, -- start throttling when file exceeds this
-- amount of bytes in size
throttle_time = 'auto', -- minimum amount of time in milliseconds
-- that has to pass before starting new render
})
local peek = require('peek')
vim.api.nvim_create_user_command('PeekOpen', function()
if not peek.is_open() and vim.bo[vim.api.nvim_get_current_buf()].filetype == 'markdown' then
vim.fn.system('i3-msg split horizontal')
peek.open()
end
end, {})
vim.api.nvim_create_user_command('PeekClose', function()
if peek.is_open() then
peek.close()
vim.fn.system('i3-msg move left')
end
end, {})

View File

@@ -1,43 +0,0 @@
--Plug 'nvim-lua/plenary.nvim'
--Plug 'narutoxy/silicon.lua'
-- Not working well
-- silicon = require('silicon')
-- silicon.setup(
-- {
-- theme = "auto",
-- output = "SILICON_${year}-${month}-${date}_${time}.png", -- auto generate file name based on time (absolute or relative to cwd)
-- bgColor = vim.g.terminal_color_5,
-- bgImage = "", -- path to image, must be png
-- roundCorner = true,
-- windowControls = true,
-- lineNumber = true,
-- font = "monospace",
-- lineOffset = 1, -- from where to start line number
-- linePad = 2, -- padding between lines
-- padHoriz = 80, -- Horizontal padding
-- padVert = 100, -- vertical padding
-- shadowBlurRadius = 10,
-- shadowColor = "#555555",
-- shadowOffsetX = 8,
-- shadowOffsetY = 8,
-- gobble = false, -- enable lsautogobble like feature
-- debug = true, -- enable debug output
-- }
-- )
--
-- -- Generate image of lines in a visual selection
-- vim.keymap.set('v', '<Leader>s', function() silicon.visualise_api({to_clip = false, show_buf = false}) end )
-- -- Generate image of a whole buffer, with lines in a visual selection highlighted
-- vim.keymap.set('v', '<Leader>bs', function() silicon.visualise_api({to_clip = false, show_buf = true}) end )
-- -- Generate visible portion of a buffer
-- --vim.keymap.set('n', '<Leader>s', function() silicon.visualise_api({to_clip = true, visible = true}) end )
-- -- Generate current buffer line in normal mode
-- --vim.keymap.set('n', '<Leader>s', function() silicon.visualise_api({to_clip = true}) end )
-- Time for silicon.nvim
require('silicon').setup({
font = 'FantasqueSansMono Nerd Font=16',
theme = 'Monokai Extended',
})

View File

@@ -1,2 +0,0 @@
let g:vim_search_pulse_mode = 'pattern'
let g:vim_search_pulse_duration = 400

View File

@@ -1,11 +0,0 @@
require('snippy').setup({
mappings = {
is = {
['<Tab>'] = 'expand_or_advance',
['<S-Tab>'] = 'previous',
},
nx = {
['<leader>x'] = 'cut_text',
},
},
})

View File

@@ -1 +0,0 @@
let g:startify_custom_header = ''

View File

@@ -1,30 +0,0 @@
lua << EOF
-- require('telescope').load_extension('ultisnips')
require('telescope').load_extension('undo')
EOF
" Using Lua functions
nnoremap <leader>f <cmd>lua require('telescope.builtin').find_files()<cr>
nnoremap <leader>a <cmd>lua require('telescope.builtin').grep_string()<cr>
nnoremap <leader>A <cmd>lua require('telescope.builtin').live_grep()<cr>
nnoremap <leader>b <cmd>lua require('telescope.builtin').buffers()<cr>
nnoremap <leader>r <cmd>lua require('telescope.builtin').resume()<cr>
"nnoremap <leader>fh <cmd>lua require('telescope.builtin').help_tags()<cr>
nnoremap <leader>tc <cmd>lua require('telescope.builtin').commands()<cr>
nnoremap <leader>t: <cmd>lua require('telescope.builtin').command_history()<cr>
nnoremap <leader>t/ <cmd>lua require('telescope.builtin').search_history()<cr>
nnoremap <leader>tr <cmd>lua require('telescope.builtin').registers()<cr>
" Neovim lsp pickers
nnoremap <leader>tr <cmd>lua require('telescope.builtin').lsp_references()<cr>
nnoremap <leader>td <cmd>lua require('telescope.builtin').lsp_definitions()<cr>
" git pickers
nnoremap <leader>gc <cmd>lua require('telescope.builtin').git_commits()<cr>
nnoremap <leader>gC <cmd>lua require('telescope.builtin').git_bcommits()<cr>
nnoremap <leader>gb <cmd>lua require('telescope.builtin').git_branches()<cr>
" nnoremap <leader>s <cmd>lua require('telescope').extensions.ultisnips.ultisnips()<cr>
nnoremap <leader>u <cmd>lua require('telescope').extensions.undo.undo()<cr>

View File

@@ -1,11 +0,0 @@
--require("themer").setup({
-- colorscheme = "scery",
-- enable_installer = true,
-- styles = {
-- ["function"] = { style = 'italic' },
-- functionbuiltin = { style = 'italic' },
-- variable = { style = 'italic' },
-- variableBuiltIn = { style = 'italic' },
-- parameter = { style = 'italic' },
-- },
--})

View File

@@ -1,9 +0,0 @@
require('nvim-toggler').setup({
inverses = {
['vim'] = 'emacs'
},
-- removes the default <leader>i keymap
remove_default_keybinds = true,
})
vim.keymap.set({'n', 'v'}, 'gt', require('nvim-toggler').toggle)

View File

@@ -1,58 +0,0 @@
-- Tree-sitter configuration
ts = require'nvim-treesitter.configs'
ts.setup {
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
ensure_installed = {
"bash",
"c",
"cmake",
"cpp",
"fish",
"lua",
"rust",
},
-- disabled, since it mostly shifts to four characters
--indent = {
-- enable = true,
--},
incremental_selection = {
enable = true,
keymaps = {
init_selection = "ti",
node_incremental = "ti",
scope_incremental = "ts",
node_decremental = "td",
},
},
rainbow = {
enable = true,
-- disable = { "jsx", "cpp" }, list of languages you want to disable the plugin for
extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean
max_file_lines = 10000, -- Do not enable for files with more than n lines, int
-- colors = {}, -- table of hex strings
-- termcolors = {} -- table of colour name strings
},
--textobjects = {
-- swap = {
-- enable = true,
-- swap_next = {
-- ["tan"] = "@parameter.inner",
-- },
-- swap_previous = {
-- ["tap"] = "@parameter.inner",
-- },
-- },
--},
matchup = {
enable = true,
-- disable = { "c", "ruby" },
include_match_words
},
}
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"

View File

@@ -1,12 +0,0 @@
vim.wo.foldcolumn = '1'
vim.wo.foldlevel = 99 -- feel free to decrease the value
vim.wo.foldenable = true
-- tell the sever the capability of foldingRange
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.foldingRange = {
dynamicRegistration = false,
lineFoldingOnly = true
}
--require('ufo').setup()

View File

@@ -1,30 +0,0 @@
"let g:cmake_build_options = [ "-j10" ]
"
"let g:cmake_root_markers = ['.svn']
"
"
"let g:cmake_jump_on_error = 0 " We do not want to focus the console
"augroup vim-cmake-group
"autocmd User CMakeBuildFailed :cfirst
"augroup END
"
"augroup vim-cmake-group
"autocmd! User CMakeBuildSucceeded CMakeClose
"augroup END
lua << EOF
require("cmake-tools").setup {
cmake_command = "cmake",
cmake_build_directory = "build",
cmake_generate_options = { "-D", "CMAKE_EXPORT_COMPILE_COMMANDS=1" },
cmake_build_options = {},
cmake_console_size = 10, -- cmake output window height
cmake_show_console = "always", -- "always", "only_on_error"
cmake_dap_configuration = { name = "cpp", type = "codelldb", request = "launch" }, -- dap configuration, optional
--cmake_dap_open_command = require("dap").repl.open, -- optional
cmake_variants_message = {
short = { show = true },
long = { show = true, max_length = 40 }
}
}
EOF

View File

@@ -1,7 +0,0 @@
"nmap <silent> <leader>tn :TestNearest<CR>
"nmap <silent> <leader>tf :TestFile<CR>
"nmap <silent> <leader>ts :TestSuite<CR>
"nmap <silent> <leader>tl :TestLast<CR>
"nmap <silent> <leader>tv :TestVisit<CR>
"
"let test#strategy = "floaterm"

View File

@@ -1,5 +0,0 @@
require("which-key").setup {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}

View File

@@ -1,8 +0,0 @@
require('nvim-window').setup({
chars = {
'j', 'k', 'l', 'f', 'd', 's', 'g', 'h', 'i', 'e', 'a', 'b', 'm', 'n', 'o',
'p', 'q', 'r', 'c', 't', 'u', 'v', 'w', 'x', 'y', 'z'
},
})
vim.api.nvim_set_keymap('n', '<leader>j', '<cmd>lua require("nvim-window").pick()<cr>', {silent=true, noremap = true})

View File

@@ -1,8 +0,0 @@
vim.o.winwidth = 10
vim.o.winminwidth = 10
require("windows").setup()
vim.keymap.set('n', '<C-w>z', "<cmd> WindowsMaximize<cr>")
vim.keymap.set('n', '<C-w>_', "<cmd> WindowsMaximizeVertically<cr>")
vim.keymap.set('n', '<C-w>|', "<cmd> WindowsMaximizeHorizontally<cr>")
vim.keymap.set('n', '<C-w>=', "<cmd WindowsEqualize<cr>")

View File

@@ -1 +0,0 @@
../spell.vim

View File

@@ -1,3 +0,0 @@
setlocal spell
" Undo changes when switching to different buffer
"let b:undo_ftplugin .= '|setlocal spell<'

View File

@@ -1 +0,0 @@
../spell.vim

View File

@@ -1 +0,0 @@
../available/boole.rc.lua

View File

@@ -1 +0,0 @@
../available/comment.rc.lua

View File

@@ -1 +0,0 @@
../available/context.rc.lua

View File

@@ -1 +0,0 @@
../available/crates.rc.lua

View File

@@ -1 +0,0 @@
../available/debugprint.rc.lua

View File

@@ -1 +0,0 @@
../available/digraphs.rc.vim

View File

@@ -1 +0,0 @@
../available/dressing.rc.lua

View File

@@ -1 +0,0 @@
../available/femaco.rc.lua

View File

@@ -1 +0,0 @@
../available/fterm.rc.lua

View File

@@ -1 +0,0 @@
../available/gitsigns.rc.lua

View File

@@ -1 +0,0 @@
../available/hlslens.rc.vim

View File

@@ -1 +0,0 @@
../available/icons.rc.lua

View File

@@ -1 +0,0 @@
../available/illuminate.rc.lua

View File

@@ -1 +0,0 @@
../available/indent.rc.lua

View File

@@ -1 +0,0 @@
../available/iswap.rc.lua

View File

@@ -1 +0,0 @@
../available/knap.rc.lua

View File

@@ -1 +0,0 @@
../available/lspconfig.rc.lua

View File

@@ -1 +0,0 @@
../available/lualine.rc.lua

View File

@@ -1 +0,0 @@
../available/md-preview.rc.vim

View File

@@ -1 +0,0 @@
../available/minimap.rc.lua

View File

@@ -1 +0,0 @@
../available/mkdnflow.rc.lua

View File

@@ -1 +0,0 @@
../available/neogen.rc.lua

View File

@@ -1 +0,0 @@
../available/neorg.rc.lua

View File

@@ -1 +0,0 @@
../available/neoscroll.rc.lua

View File

@@ -1 +0,0 @@
../available/nvim-cmp.rc.lua

View File

@@ -1 +0,0 @@
../available/nvim-dap.rc.lua

View File

@@ -1 +0,0 @@
../available/nvim-tree.rc.lua

View File

@@ -1 +0,0 @@
../available/peek.rc.lua

View File

@@ -1 +0,0 @@
../available/screenshot.rc.lua

View File

@@ -1 +0,0 @@
../available/search-pulse.rc.vim

View File

@@ -1 +0,0 @@
../available/snippets.rc.lua

View File

@@ -1 +0,0 @@
../available/startify.rc.vim

View File

@@ -1 +0,0 @@
../available/telescope.rc.vim

View File

@@ -1 +0,0 @@
../available/themer.rc.lua

View File

@@ -1 +0,0 @@
../available/treesitter.rc.lua

View File

@@ -1 +0,0 @@
../available/ufo.rc.lua

View File

@@ -1 +0,0 @@
../available/vim-cmake.rc.vim

View File

@@ -1 +0,0 @@
../available/vim-test.rc.vim

Some files were not shown because too many files have changed in this diff Show More