From 282e697ad833973036f295755032ac098d9e271b Mon Sep 17 00:00:00 2001 From: Aleksander Cynarski Date: Sat, 25 Jul 2020 02:56:35 +0200 Subject: [PATCH] . --- .config/alacritty/alacritty.yml | 162 ++------------------- .config/i3/config | 7 +- .config/polybar/config | 12 +- .config/polybar/taskwarrior/taskwarrior.sh | 7 + nvim/init.vim | 9 ++ 5 files changed, 32 insertions(+), 165 deletions(-) create mode 100755 .config/polybar/taskwarrior/taskwarrior.sh diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index 5d516c0..00e4c30 100644 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -20,7 +20,7 @@ window: scrolling: history: 10000 - multiplier: 2 + multiplier: 3 # Font configuration font: @@ -76,170 +76,26 @@ colors: cyan: "#9F8D5E" white: "#dbcdac" -# 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) -# -# And optionally: -# -# - `mods` (see key bindings) mouse_bindings: - - { mouse: Middle, action: PasteSelection } + - { mouse: Middle, mods: Shift, action: PasteSelection } + - { mouse: Right, mods: Shift, action: Paste } + - { mouse: Middle, action: None } + - { mouse: Right, action: None } -#ToggleBlockSelection } - #- { key: V, mods: Alt, mode: Vi, action: ToggleSemanticSele -# - 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 -# - Copy -# - Paste -# - PasteSelection -# - IncreaseFontSize -# - DecreaseFontSize -# - ResetFontSize -# - ScrollPageUp -# - ScrollPageDown -# - ScrollLineUp -# - ScrollLineDown -# - ScrollToTop -# - ScrollToBottom -# - ClearHistory -# - Hide -# - Minimize -# - Quit -# - ToggleFullscreen -# - SpawnNewInstance -# - ClearLogNotice -# - ClearSelection -# - ReceiveChar -# - None -# -# (`mode: Vi` only): -# - Open -# - Up -# - Down -# - Left -# - Right -# - First -# - Last -# - FirstOccupied -# - High -# - Middle -# - Low -# - SemanticLeft -# - SemanticRight -# - SemanticLeftEnd -# - SemanticRightEnd -# - WordRight -# - WordLeft -# - WordRightEnd -# - WordLeftEnd -# - Bracket -# - ToggleNormalSelection -# - ToggleLineSelection -# - ToggleBlockSelection -# - ToggleSemanticSelection -# -# (macOS only): -# - ToggleSimpleFullscreen: Enters fullscreen without occupying another space -# -# (Linux/BSD only): -# - CopySelection: Copies into 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 -# - Alt -# -# 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 -# at once. key_bindings: - { key: Return, mods: Control|Shift, action: SpawnNewInstance } - { key: V, mods: Alt, action: Paste} - { key: J, mods: Alt, action: IncreaseFontSize } - { key: K, mods: Alt, action: DecreaseFontSize } - - { key: J, mods: Shift, action: ScrollLineUp} - - { key: K, mods: Shift, action: ScrollLineDown} + # - { key: J, mods: Shift, action: ScrollLineUp} + # - { key: K, mods: Shift, action: ScrollLineDown} # { mouse: Middle, action: PasteSelection } #- { key: Paste, action: Paste } #- { key: Copy, action: Copy } #- { key: L, mods: Control, action: ClearLogNotice } #- { key: L, mods: Control, mode: ~Vi, chars: "\x0c" } - #- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, } - #- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown } + - { key: PageUp, mods: Shift, action: ScrollPageUp, } + - { key: PageDown, mods: Shift, action: ScrollPageDown } #- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, } #- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom } diff --git a/.config/i3/config b/.config/i3/config index d528814..e87fe3c 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -169,12 +169,7 @@ bindsym $mod+r mode "resize" # startup exec_always --no-startup-id $HOME/.config/polybar/launch.sh -# Attach workspaces to displays -exec --no-startup-id i3-msg "workspace 1, move workspace to output eDP1" -exec --no-startup-id i3-msg "workspace 2, move workspace to output eDP1" -exec --no-startup-id i3-msg "workspace 3, move workspace to output HDMI" - -exec --no-startup-id i3-msg 'exec $TERMINAL; workspace 2; exec firefox;' +exec --no-startup-id i3-msg 'workspace 1; exec $TERMINAL; workspace 2; exec firefox;' exec --no-startup-id feh --bg-scale ~/Wallpapers/seneca.jpg exec --no-startup-id ~/bin/autoconfgure_display.sh exec --no-startup-id picom --config ~/.config/i3/picom.conf -b diff --git a/.config/polybar/config b/.config/polybar/config index 1e4f638..6722cac 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -103,7 +103,7 @@ font-3 - RobotoMono Nerd Font:antialias=true:size=18;0 ; modules-center = s4 filesystem s5 ; modules-right = s4 powermenu s1 pulseaudio s3 -modules-left = battery wlan weather arch +modules-left = battery wlan weather modules-center = mpd modules-right = @@ -559,11 +559,11 @@ exec = ~/.config/polybar/polybar-weather/openweathermap-detailed.sh format-background = ${colors.primary} format-prefix-foreground = ${colors.background} -[module/arch] -type = custom/script -exec = ~/.config/polybar/polybar-network-update/updates-arch-combined.sh -format-background = ${colors.primary} -format-prefix-foreground = ${colors.background} +#[module/arch] +#type = custom/script +#exec = ~/.config/polybar/polybar-network-update/updates-arch-combined.sh +#format-background = ${colors.primary} +#format-prefix-foreground = ${colors.background} [module/syngeos] type = custom/script diff --git a/.config/polybar/taskwarrior/taskwarrior.sh b/.config/polybar/taskwarrior/taskwarrior.sh new file mode 100755 index 0000000..555ff1b --- /dev/null +++ b/.config/polybar/taskwarrior/taskwarrior.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +most_urgent_desc=`task rc.verbose: rc.report.next.columns:description rc.report.next.labels:1 limit:1 next` +most_urgent_id=`task rc.verbose: rc.report.next.columns:id rc.report.next.labels:1 limit:1 next` +most_urgent_due=`task rc.verbose: rc.report.next.columns:due.relative rc.report.next.labels:1 limit:1 next` +echo "$most_urgent_id" > /tmp/tw_polybar_id +echo "$most_urgent_desc ·  $most_urgent_due" diff --git a/nvim/init.vim b/nvim/init.vim index 6574030..bbb53bb 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -141,6 +141,13 @@ Plug 'robertbasic/vim-hugo-helper' Plug 'ekalinin/Dockerfile.vim' + +" Use release branch (recommend) +Plug 'neoclide/coc.nvim', {'branch': 'release'} + +" Or build from source code by using yarn: https://yarnpkg.com +Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'} + call plug#end() " " ######################################################################## @@ -220,6 +227,8 @@ set foldnestmax=10 "let g:php_folding = 1 "let g:perl_fold = 1 +"set spell spelllang=pl + let g:SimpylFold_docstring_preview = 1 let g:startify_custom_header = []