Compare commits

...

5 Commits

Author SHA1 Message Date
Victor Timofei da1b6610cc
Migrate to lua_ls 2023-06-03 14:22:40 +03:00
Victor Timofei 4caf6e07cd
Update X monitor config 2023-06-03 14:21:19 +03:00
Victor Timofei 967843ec0e
Update p10k 2023-06-03 14:19:51 +03:00
Victor Timofei dd9f5a2d5d
Update .xinitrc 2023-06-03 14:18:42 +03:00
Victor Timofei 424ec3b86b
Tokyooo 2023-06-03 14:16:39 +03:00
6 changed files with 119 additions and 75 deletions

View File

@ -1,41 +1,74 @@
# Background opacity # Window opacity
background_opacity: 0.3 window:
opacity: 1
font: font:
normal: normal:
family: family: "MesloLGS NF"
"MesloLGS NF" # normal:
# normal: # family: " GoMono Nerd Font"
# family: " GoMono Nerd Font" # bold:
# bold: # family: "Noto Color Emoji"
# family: "Noto Color Emoji" # italic:
# italic: # family: "Noto Color Emoji"
# family: "Noto Color Emoji" size: 14
size: 8
colors:
# Default colors
primary:
background: '0x1a1b26'
foreground: '0xc0caf5'
# Normal colors
normal:
black: '0x15161E'
red: '0xf7768e'
green: '0x9ece6a'
yellow: '0xe0af68'
blue: '0x7aa2f7'
magenta: '0xbb9af7'
cyan: '0x7dcfff'
white: '0xa9b1d6'
# Bright colors
bright:
black: '0x414868'
red: '0xf7768e'
green: '0x9ece6a'
yellow: '0xe0af68'
blue: '0x7aa2f7'
magenta: '0xbb9af7'
cyan: '0x7dcfff'
white: '0xc0caf5'
indexed_colors:
- { index: 16, color: '0xff9e64' }
- { index: 17, color: '0xdb4b4b' }
# Colors (Panda) # Colors (Panda)
colors: # colors:
primary: # primary:
background: '#292A2B' # background: '#292A2B'
foreground: '#E6E6E6' # foreground: '#E6E6E6'
#
normal: # normal:
black: '#292A2B' # black: '#292A2B'
red: '#FF2C6D' # red: '#FF2C6D'
green: '#19f9d8' # green: '#19f9d8'
yellow: '#FFB86C' # yellow: '#FFB86C'
blue: '#45A9F9' # blue: '#45A9F9'
magenta: '#FF75B5' # magenta: '#FF75B5'
cyan: '#67d3c2' # cyan: '#67d3c2'
orange: '#B084EB' # orange: '#B084EB'
white: '#E6E6E6' # white: '#E6E6E6'
bright: # bright:
black: '#292A2B' # black: '#292A2B'
red: '#FF2C6D' # red: '#FF2C6D'
green: '#19f9d8' # green: '#19f9d8'
yellow: '#ffcc95' # yellow: '#ffcc95'
blue: '#6FC1FF' # blue: '#6FC1FF'
magenta: '#FF9AC1' # magenta: '#FF9AC1'
cyan: '#67d3c2' # cyan: '#67d3c2'
white: '#ffffff' # white: '#ffffff'
#

View File

@ -1,5 +1,5 @@
require('vtimofei.lsp.gopls') require('vtimofei.lsp.gopls')
require('vtimofei.lsp.rust_analyzer') require('vtimofei.lsp.rust_analyzer')
require('vtimofei.lsp.sumneko_lua') require('vtimofei.lsp.lua_ls')
require('vtimofei.lsp.tsserver') require('vtimofei.lsp.tsserver')
require('vtimofei.lsp.clangd') require('vtimofei.lsp.clangd')

View File

@ -2,7 +2,7 @@ local capabilities = require('cmp_nvim_lsp').default_capabilities()
local remap = require('vtimofei.lsp.remap') local remap = require('vtimofei.lsp.remap')
local lsp_conf = require('lspconfig') local lsp_conf = require('lspconfig')
lsp_conf.sumneko_lua.setup{ lsp_conf.lua_ls.setup{
capabilities = capabilities, capabilities = capabilities,
on_attach = function() on_attach = function()
remap.hover() remap.hover()

View File

@ -1,16 +1,3 @@
Section "Monitor"
# Monitor Identify
Identifier "eDP1"
# Setting Resolution and Modes
Option "PreferredMode" "1366x768"
Option "TargetRefresh" "60"
Option "LeftOf" "HDMI1"
Option "Position" "0 1008"
EndSection
Section "Monitor" Section "Monitor"
# Monitor Identify # Monitor Identify
Identifier "HDMI1" Identifier "HDMI1"
@ -19,9 +6,22 @@ Section "Monitor"
Option "PreferredMode" "3840x2160" Option "PreferredMode" "3840x2160"
Option "TargetRefresh" "60" Option "TargetRefresh" "60"
Option "RightOf" "eDP1" Option "LeftOf" "eDP1"
Option "Position" "2049 0" Option "Position" "0 0"
EndSection
Section "Monitor"
# Monitor Identify
Identifier "eDP1"
# Setting Resolution and Modes
Option "PreferredMode" "1366x768"
Option "TargetRefresh" "60"
Option "RightOf" "HDMI1"
Option "Position" "3840 1008"
EndSection EndSection
## 1080p monitor ## 1080p monitor

View File

@ -1,8 +1,9 @@
# Generated by Powerlevel10k configuration wizard on 2021-07-13 at 19:38 EEST. # Generated by Powerlevel10k configuration wizard on 2022-05-25 at 09:37 EEST.
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 25238. # Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 23401.
# Wizard options: nerdfont-complete + powerline, small icons, rainbow, unicode, # Wizard options: nerdfont-complete + powerline, small icons, rainbow, unicode,
# 24h time, vertical separators, blurred heads, slanted tails, 2 lines, disconnected, # 24h time, vertical separators, blurred heads, flat tails, 2 lines, dotted, no frame,
# no frame, compact, many icons, concise, transient_prompt, instant_prompt=verbose. # darkest-ornaments, sparse, many icons, concise, transient_prompt,
# instant_prompt=verbose.
# Type `p10k configure` to generate another config. # Type `p10k configure` to generate another config.
# #
# Config for Powerlevel10k with powerline prompt style with colorful background. # Config for Powerlevel10k with powerline prompt style with colorful background.
@ -77,6 +78,7 @@
haskell_stack # haskell version from stack (https://haskellstack.org/) haskell_stack # haskell version from stack (https://haskellstack.org/)
kubecontext # current kubernetes context (https://kubernetes.io/) kubecontext # current kubernetes context (https://kubernetes.io/)
terraform # terraform workspace (https://www.terraform.io) terraform # terraform workspace (https://www.terraform.io)
# terraform_version # terraform version (https://www.terraform.io)
aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)
aws_eb_env # aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/) aws_eb_env # aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/)
azure # azure account name (https://docs.microsoft.com/en-us/cli/azure) azure # azure account name (https://docs.microsoft.com/en-us/cli/azure)
@ -130,7 +132,7 @@
typeset -g POWERLEVEL9K_ICON_BEFORE_CONTENT= typeset -g POWERLEVEL9K_ICON_BEFORE_CONTENT=
# Add an empty line before each prompt. # Add an empty line before each prompt.
typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=false typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
# Connect left prompt lines with these symbols. You'll probably want to use the same color # Connect left prompt lines with these symbols. You'll probably want to use the same color
# as POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND below. # as POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND below.
@ -146,13 +148,13 @@
# '─'. The last two make it easier to see the alignment between left and right prompt and to # '─'. The last two make it easier to see the alignment between left and right prompt and to
# separate prompt from command output. You might want to set POWERLEVEL9K_PROMPT_ADD_NEWLINE=false # separate prompt from command output. You might want to set POWERLEVEL9K_PROMPT_ADD_NEWLINE=false
# for more compact prompt if using using this option. # for more compact prompt if using using this option.
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR=' ' typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR='·'
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_BACKGROUND= typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_BACKGROUND=
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_GAP_BACKGROUND= typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_GAP_BACKGROUND=
if [[ $POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR != ' ' ]]; then if [[ $POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR != ' ' ]]; then
# The color of the filler. You'll probably want to match the color of POWERLEVEL9K_MULTILINE # The color of the filler. You'll probably want to match the color of POWERLEVEL9K_MULTILINE
# ornaments defined above. # ornaments defined above.
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND=242 typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND=238
# Start filler from the edge of the screen if there are no left segments on the first line. # Start filler from the edge of the screen if there are no left segments on the first line.
typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_FIRST_SEGMENT_END_SYMBOL='%{%}' typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_FIRST_SEGMENT_END_SYMBOL='%{%}'
# End filler on the edge of the screen if there are no right segments on the first line. # End filler on the edge of the screen if there are no right segments on the first line.
@ -172,9 +174,9 @@
# The left end of right prompt. # The left end of right prompt.
typeset -g POWERLEVEL9K_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='░▒▓' typeset -g POWERLEVEL9K_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='░▒▓'
# The left end of left prompt. # The left end of left prompt.
typeset -g POWERLEVEL9K_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL='\uE0BA' typeset -g POWERLEVEL9K_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL=''
# The right end of right prompt. # The right end of right prompt.
typeset -g POWERLEVEL9K_RIGHT_PROMPT_LAST_SEGMENT_END_SYMBOL='\uE0BC' typeset -g POWERLEVEL9K_RIGHT_PROMPT_LAST_SEGMENT_END_SYMBOL=''
# Left prompt terminator for lines without any segments. # Left prompt terminator for lines without any segments.
typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL= typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=
@ -1278,10 +1280,20 @@
typeset -g POWERLEVEL9K_TERRAFORM_OTHER_BACKGROUND=0 typeset -g POWERLEVEL9K_TERRAFORM_OTHER_BACKGROUND=0
# typeset -g POWERLEVEL9K_TERRAFORM_OTHER_VISUAL_IDENTIFIER_EXPANSION='⭐' # typeset -g POWERLEVEL9K_TERRAFORM_OTHER_VISUAL_IDENTIFIER_EXPANSION='⭐'
#############[ terraform_version: terraform version (https://www.terraform.io) ]##############
# Terraform version color.
typeset -g POWERLEVEL9K_TERRAFORM_VERSION_FOREGROUND=4
typeset -g POWERLEVEL9K_TERRAFORM_VERSION_BACKGROUND=0
# Custom icon.
# typeset -g POWERLEVEL9K_TERRAFORM_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
################[ terraform_version: It shows active terraform version (https://www.terraform.io) ]#################
typeset -g POWERLEVEL9K_TERRAFORM_VERSION_SHOW_ON_COMMAND='terraform|tf'
#############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]############# #############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
# Show kubecontext only when the the command you are typing invokes one of these tools. # Show kubecontext only when the the command you are typing invokes one of these tools.
# Tip: Remove the next line to always show kubecontext. # Tip: Remove the next line to always show kubecontext.
typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito|k9s|helmfile|fluxctl|stern' typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito|k9s|helmfile|flux|fluxctl|stern'
# Kubernetes context classes for the purpose of using different colors, icons and expansions with # Kubernetes context classes for the purpose of using different colors, icons and expansions with
# different contexts. # different contexts.

View File

@ -1,9 +1,8 @@
#!/bin/sh #!/bin/sh
# JetBrains IDE fix # Export some paths here that need to be picked up by
export _JAVA_AWT_WM_NONREPARENTING=1 # the dmenu
export AWT_TOOLKIT=MToolkit source ~/.config/path
wmname LG3D
userresources=$HOME/.Xresources userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap usermodmap=$HOME/.Xmodmap
@ -42,8 +41,8 @@ xset s noblank # don't blank the video device
xset s off # disable screensaver xset s off # disable screensaver
# Try to use the same scaling as my 4K monitor on my 768 laptop monitor # Try to use the same scaling as my 4K monitor on my 768 laptop monitor
xrandr --dpi 150 \ xrandr --dpi 163.2 \
--output eDP1 --scale 1.5x1.5 --output eDP1 --scale 1.615x1.615
# Restore my background # Restore my background
nitrogen --restore & nitrogen --restore &
@ -58,15 +57,15 @@ picom --experimental-backends &
# Load keybinds # Load keybinds
#xbindkeys #xbindkeys
setxkbmap us dvp
# Start dwmblocks # Start dwmblocks
dwmblocks & dwmblocks &
# Export some paths here that need to be picked up by # Disable the laptop keyboard & touchpad
# the dmenu /home/vtimofei/scripts/laptopkb-disable
source ~/.config/path /home/vtimofei/scripts/laptoptouch-disable
# Disable the laptop keyboard
# sleep 5; /home/vtimofei/scripts/laptopkb-disable &
# Finally exec my window manager # Finally exec my window manager
exec dwm exec dwm
# exec /home/vtimofei/desktop-apps/dwm/rwm/target/debug/rwm 2>/tmp/rwm.logs