Browse Source

Update dotfiles: Aug 03 2021

ALI Hamza 3 months ago
parent
commit
6f33bd4fd9
Signed by: hamza GPG Key ID: 22473A32291F8CB6
  1. 1
      .gitignore
  2. 96
      i3/config
  3. 249
      i3/config.tmp
  4. 1296
      kitty/kitty.conf
  5. 22
      nvim/.netrwhist
  6. 2801
      nvim/autoload/plug.vim
  7. 22
      nvim/coc-settings.json
  8. 296
      nvim/init.vim
  9. 12
      nvim/nvim/.netrwhist
  10. 9
      nvim/nvim/coc-settings.json
  11. 256
      nvim/nvim/init.vim
  12. 32
      nvim/nvim/plugins.vim
  13. 11
      nvim/nvim/spell/en.utf-8.add
  14. BIN
      nvim/nvim/spell/en.utf-8.add.spl
  15. 18
      nvim/nvim/word_processing.vim
  16. 36
      nvim/plugins.vim
  17. 2
      polybar/colors.ini
  18. 7
      polybar/config.ini
  19. 2
      polybar/fonts.ini
  20. 11
      polybar/modules/cpu.ini
  21. 6
      polybar/modules/i3.ini
  22. 7
      polybar/modules/memory.ini
  23. 3
      polybar/modules/network.ini
  24. 2
      polybar/modules/pulseaudio.ini
  25. 18
      polybar/modules/updates.ini
  26. 2
      polybar/modules/xworkspaces.ini
  27. 9
      scripts/killcompton
  28. 3
      scripts/logout
  29. 12
      scripts/start-polybar
  30. 27
      scripts/workspace
  31. 65
      termite/config

1
.gitignore

@ -0,0 +1 @@
nvim/plugged

96
i3/config

@ -15,48 +15,35 @@ set $mod Mod4
# is used in the bar {} block below.
font pango:"Jetbrains Mono Regular" 12
# SCRIPTS
# SCRIPTS
set $scripts_dir ~/.config/scripts
exec --no-startup-id "picom"
exec feh --bg-scale ~/.config/bg-1.jpg ~/.config/bg-2.jpg
exec --no-startup-id "$scripts_dir/start-polybar"
exec --no-startup-id mpd
# background image(s)
exec --no-startup-id feh --bg-scale ~/.config/bg-1.png ~/.config/bg-2.png
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
# shortcut daemon
exec --no-startup-id sxhkd
# 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
# setup stuff for french
exec setxkbmap -option compose:ralt
bindsym $mod+Shift+e exec setxkbmap -option compose:ralt
# screenshot
bindsym $mod+p exec flameshot gui
bindsym $mod+m exec notify-send "DUNST_COMMAND_TOGGLE"
# wacom tablet defaults
exec xsetwacom --set "Wacom Intuos Pro M Finger touch" touch off
exec xsetwacom --set "Wacom Intuos Pro M Pen stylus" Rotate half
exec xsetwacom --set "Wacom Intuos Pro M Pen stylus" MapToOutput HDMI-A-0
exec xsetwacom --set "Wacom Intuos Pro M Pen eraser" MapToOutput HDMI-A-0
# set mouse speed
exec xinput set-prop "USB OPTICAL MOUSE " "libinput Accel Speed" "-0.75"
exec xinput set-prop "Logitech M545/M546" "libinput Accel Speed" "-0.85"
bindsym $mod+p exec flameshot gui
# 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 barrier
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
@ -64,42 +51,31 @@ bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
# Media player controls
bindsym $mod+F1 exec playerctl previous
bindsym $mod+F2 exec playerctl play-pause
bindsym $mod+F3 exec playerctl next
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Shift+b exec brave
# Applications
bindsym $mod+Return exec kitty
bindsym $mod+Shift+b exec firefox
bindsym $mod+z exec zoom
bindsym $mod+n exec nautilus
bindsym $mod+Shift+m exec discord-canary
bindsym $mod+Shift+m exec rambox
bindsym $mod+x exec xournalpp
bindsym $mod+i exec audacious
bindsym $mod+i exec LD_PRELOAD=/usr/lib/spotify-adblock.so spotify
# Media player controls
bindsym $mod+F1 exec playerctl previous
bindsym $mod+F2 exec playerctl play-pause
bindsym $mod+F3 exec playerctl next
# kill focused window
bindsym Mod1+q kill
focus_follows_mouse no
# start dmenu (a program launcher)
#bindsym $mod+d exec --no-startup-id dmenu_run
bindsym $mod+d exec ~/.config/rofi/bin/launcher_ribbon
focus_follows_mouse no
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
@ -112,7 +88,13 @@ bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
@ -199,8 +181,7 @@ workspace $ws9 output $monitor_left
workspace $ws10 output $monitor_right
bindsym Mod1+Tab workspace back_and_forth
bindsym $mod+Shift+l exec betterlockscreen -t "Access denied. Please login." --lock
bindsym $mod+Tab workspace back_and_forth
# reload the configuration file
bindsym $mod+Shift+c reload
@ -210,10 +191,19 @@ bindsym $mod+Shift+r restart
default_border pixel 1
for_window [class=".*"] border pixel 0
hide_edge_borders smart
gaps outer 10
gaps inner 10
gaps outer 5
gaps inner 5
gaps top 40
# Workspace assignments
assign [class="spotify"] 9
assign [class="Spotify"] 9
assign [class="rambox"] 1
assign [class="Rambox"] 1
assign [class="RamBox"] 1
assign [class="zoom"] 4
mouse_warping none
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode

249
i3/config.tmp

@ -0,0 +1,249 @@
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:"Jetbrains Mono Regular" 12
# SCRIPTS
set $scripts_dir ~/.config/scripts
exec --no-startup-id "picom"
exec feh --bg-scale ~/.config/bg-1.jpg ~/.config/bg-2.jpg
exec --no-startup-id "$scripts_dir/start-polybar"
exec --no-startup-id mpd
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
# 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
# setup stuff for french
exec setxkbmap -option compose:ralt
bindsym $mod+Shift+e exec setxkbmap -option compose:ralt && xinput set-prop "USB OPTICAL MOUSE " "libinput Accel Speed" "-0.75"
# screenshot
bindsym $mod+p exec flameshot gui
# 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
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# Applications
bindsym $mod+Return exec kitty
bindsym $mod+Shift+b exec firefox
bindsym $mod+z exec zoom
bindsym $mod+n exec nautilus
bindsym $mod+Shift+m exec discord
bindsym $mod+x exec xournalpp
bindsym $mod+i exec LD_PRELOAD=/usr/lib/spotify-adblock.so spotify
# Media player controls
bindsym $mod+F1 exec playerctl previous
bindsym $mod+F2 exec playerctl play-pause
bindsym $mod+F3 exec playerctl next
# kill focused window
bindsym Mod1+q kill
focus_follows_mouse no
# start dmenu (a program launcher)
#bindsym $mod+d exec --no-startup-id dmenu_run
bindsym $mod+d exec ~/.config/rofi/bin/launcher_ribbon
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
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"
# switch to workspace
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10
#monitors
set $monitor_left DisplayPort-2
#set $monitor_left HDMI-A-0
set $monitor_right HDMI-A-0
# Setup workspaces
workspace $ws1 output $monitor_left
workspace $ws2 output $monitor_left
workspace $ws3 output $monitor_left
workspace $ws4 output $monitor_left
workspace $ws5 output $monitor_left
workspace $ws6 output $monitor_left
workspace $ws7 output $monitor_left
workspace $ws8 output $monitor_left
workspace $ws9 output $monitor_left
#workspace $ws10 output $monitor_right
#workspace $ws11 output $monitor_right
#workspace $ws12 output $monitor_right
#workspace $ws13 output $monitor_right
#workspace $ws14 output $monitor_right
#workspace $ws15 output $monitor_right
#workspace $ws16 output $monitor_right
#workspace $ws18 output $monitor_right
#bindsym Mod1+Tab workspace back_and_forth
#bindsym $mod+Tab workspace back_and_forth
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
default_border pixel 1
for_window [class=".*"] border pixel 0
hide_edge_borders smart
gaps outer 10
gaps inner 10
gaps top 40
# Workspace assignments
assign [class="spotify"] 9
assign [class="Spotify"] 9
assign [class="discord"] 1
assign [class="zoom"] 4
mouse_warping none
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym semicolon resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape or $mod+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"

1296
kitty/kitty.conf

File diff suppressed because it is too large

22
nvim/.netrwhist

@ -1,12 +1,12 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhistcnt =8
let g:netrw_dirhist_8='/home/hamza/.config/rofi/launchers/ribbon/styles'
let g:netrw_dirhist_7='/home/hamza/.cabal/logs/ghc-8.10.2'
let g:netrw_dirhist_6='/home/hamza/.cabal/logs'
let g:netrw_dirhist_5='/home/hamza/code/gotrix/_examples/pingpong'
let g:netrw_dirhist_4='/home/hamza/khanindo'
let g:netrw_dirhist_3='/home/hamza/.cache/spotify'
let g:netrw_dirhist_2='/home/hamza/.cache/spotify/Storage'
let g:netrw_dirhist_1='/home/hamza/.cache/spotify/Storage/f1'
let g:netrw_dirhist_0='/home/hamza/.cache/spotify/Storage'
let g:netrw_dirhist_9='/home/hamza/.cache/spotify/Storage/fa'
let g:netrw_dirhistcnt =1
let g:netrw_dirhist_1='/home/h/.config/nvim'
let g:netrw_dirhist_0='/home/hamza/code/misc/docker-images/postgres'
let g:netrw_dirhist_9='/var/log/journal/a5b543d1988a42b0888fef190018dc1f'
let g:netrw_dirhist_8='/home/hamza/Videos'
let g:netrw_dirhist_7='/home/hamza/code/web/factory-calculator'
let g:netrw_dirhist_6='/home/hamza/.config/nvim'
let g:netrw_dirhist_5='/home/hamza/code/misc/coverage/cmd/server'
let g:netrw_dirhist_4='/home/hamza/code/misc/coverage/cmd'
let g:netrw_dirhist_3='/home/hamza/code/misc/coverage/cmd/ci'
let g:netrw_dirhist_2='/home/hamza/.config/nvim'

2801
nvim/autoload/plug.vim

File diff suppressed because it is too large

22
nvim/coc-settings.json

@ -0,0 +1,22 @@
{
"codeLens.enable": true,
"languageserver": {
"golang": {
"command": "gopls",
"rootPatterns": ["go.mod", ".vim/", ".git/", ".hg/"],
"filetypes": ["go"]
}
},
"go.goplsOptions": {
"completeUnimported": true,
"gofumpt": true,
"hoverKind": "SynopsisDocumentation",
"linksInHover": false
},
"java": {
"referencesCodeLens.enabled": true,
"jdt": {
"ls.vmargs": "-javaagent:/usr/local/share/lombok/lombok.jar -Xbootclasspath/a:/usr/local/share/lombok/lombok.jar"
}
}
}

296
nvim/init.vim

@ -1,17 +1,38 @@
set nocompatible
so ~/.config/nvim/plugins.vim
so ~/.config/nvim/word_processing.vim
autocmd BufRead *.md silent WP
"so ~/.config/nvim/word_processing.vim
let g:go_fmt_command = "goimports"
" --Plugin Configurations
let g:go_metalinter_enabled = [
\'bodyclose', 'deadcode', 'errcheck', 'goconst', 'gocritic', 'gocyclo', 'golint', 'gomnd', 'gosimple', 'govet',
\'ineffassign', 'interfacer', 'lll', 'misspell', 'prealloc', 'staticcheck', 'structcheck', 'typecheck', 'unconvert',
\'unparam', 'unused', 'varcheck'
\]
let g:go_highlight_build_constraints = 1
let g:go_highlight_extra_types = 1
let g:go_highlight_fields = 1
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_operators = 1
let g:go_highlight_structs = 1
let g:go_highlight_types = 1
let g:go_def_mapping_enabled = 0
let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1
let g:svelte_indent_script = 0
let g:svelte_indent_style = 0
set title "Update title of the terminal
set number "Display line numbers
set relativenumber
set ruler "Display cursor position
set wrap "Wrap lines when they are long
set scrolloff=3 "Display 3 lines around the cursor when scrolling
set clipboard+=unnamedplus " use system clipboard
set guicursor+=a:blinkon0
filetype on
filetype plugin on
filetype plugin indent on
@ -24,41 +45,262 @@ set smartcase "Just in case I still want case sensitive search
set incsearch "Incremental search
set hlsearch "Highlight search results
noremap // :nohls<RETURN>
noremap ; :
"--Beep
set noerrorbells "Vim is annoying
set shiftwidth=2
set tabstop=2
set shiftwidth=4
set tabstop=4
set scrolloff=10
set softtabstop=0
set updatetime=100 "Vim gitgutter
"--My ColorScheme
set background=dark
set termguicolors
colorscheme molika
noremap ,1 1gt
noremap ,2 2gt
noremap ,3 3gt
noremap ,4 4gt
noremap ,5 5gt
noremap ,6 6gt
noremap ,7 7gt
noremap ,8 8gt
noremap ,9 9gt
noremap ,0 0gt
colorscheme onedark
hi Comment guifg=#b7ffbd ctermfg=102
hi Normal guifg=#bec3ce guibg=#00000ee
let mapleader=","
noremap <leader>1 1gt
noremap <leader>2 2gt
noremap <leader>3 3gt
noremap <leader>4 4gt
noremap <leader>5 5gt
noremap <leader>6 6gt
noremap <leader>7 7gt
noremap <leader>8 8gt
noremap <leader>9 9gt
noremap <leader>0 0gt
inoremap jj <Esc>
inoremap <C-P> <C-\><C-O>:call CocActionAsync('showSignatureHelp')<cr>
noremap <leader>w :e<SPACE>
noremap <leader>e :GFiles<CR>
noremap <leader>E :Files<CR>
noremap <leader>b :Buffers<CR>
nnoremap <C-k> :bprev<CR>
nnoremap <C-j> :bnext<CR>
"nnoremap <leader>d :bd<CR>
nnoremap <leader>d :bp<cr>:bd #<cr>
" (f)ind in file, (g)rep, (h)elp
noremap <leader>f :tabnew<CR>:Find<CR>
noremap <leader>g :GoRun<CR>
noremap <leader>h :help<SPACE>
noremap <leader>n :cn<CR>
noremap <leader>p :cp<CR>
noremap <leader>so :so ~/.config/nvim/init.vim<CR>
autocmd BufNewFile,BufRead .*config,*.config,config
\ setlocal filetype=gitconfig
autocmd BufNewFile,BufRead *.bolt
\ setlocal filetype=typescript
autocmd BufNewFile,BufRead *.cql
\ setlocal filetype=cql
autocmd BufNewFile,BufRead *.gradle,*.groovy
\ setlocal filetype=groovy
autocmd BufNewFile,BufRead *.osgjs,*.osgjs.gz
\ setlocal filetype=json
autocmd BufNewFile,BufRead *.go.tpl,*.peg,*.qtpl
\ setlocal syntax=go
autocmd BufNewFile,BufRead *.gunk
\ setlocal filetype=gunk syntax=go
autocmd BufNewFile,BufRead *.gltf
\ setlocal filetype=gltf syntax=json
autocmd BufNewFile,BufRead *.frag
\ setlocal filetype=glsl syntax=glsl
" Coc.NVIM
" Set internal encoding of vim, not needed on neovim, since coc.nvim using some
" unicode characters in the file autoload/float.vim
set encoding=utf-8
" TextEdit might fail if hidden is not set.
set hidden
" Give more space for displaying messages.
set cmdheight=2
" Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable
" delays and poor user experience.
set updatetime=300
" Don't pass messages to |ins-completion-menu|.
set shortmess+=c
" Always show the signcolumn, otherwise it would shift the text each time
" diagnostics appear/become resolved.
if has("patch-8.1.1564")
" Recently vim can merge signcolumn and number column into one
set signcolumn=number
else
set signcolumn=yes
endif
" vim sideways
nnoremap <c-h> :SidewaysLeft<cr>
nnoremap <c-l> :SidewaysRight<cr>
" Use <c-space> to trigger completion.
if has('nvim')
inoremap <silent><expr> <c-space> coc#refresh()
else
inoremap <silent><expr> <c-@> coc#refresh()
endif
" Make <CR> auto-select the first completion item and notify coc.nvim to
" format on enter, <cr> could be remapped by other vim plugin
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
" GoTo code navigation.
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
" Use K to show documentation in preview window.
nnoremap <silent> K :call <SID>show_documentation()<CR>
function! s:show_documentation()
if (index(['vim','help'], &filetype) >= 0)
execute 'h '.expand('<cword>')
elseif (coc#rpc#ready())
call CocActionAsync('doHover')
else
execute '!' . &keywordprg . " " . expand('<cword>')
endif
endfunction
function! s:doHover()
if coc#rpc#ready()
let diagnostics = CocAction('diagnosticList')
if empty(diagnostics)
call CocActionAsync('doHover')
return
endif
let file = expand('%:p')
let lnum = line('.')
let cnum = col('.')
for v in diagnostics
if v['file'] != file
\ || lnum != v['lnum']
\ || cnum < v['location']['range']['start']['character']
\ || cnum > v['location']['range']['end']['character']
call CocActionAsync('doHover')
return
endif
endfor
endif
endfunction
" Highlight the symbol and its references when holding the cursor.
autocmd CursorHold * silent call CocActionAsync('highlight')
" Symbol renaming.
nmap <leader>rn <Plug>(coc-rename)
augroup mygroup
autocmd!
" Setup formatexpr specified filetype(s).
autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected')
" Update signature help on jump placeholder.
autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
augroup end
" Map function and class text objects
" NOTE: Requires 'textDocument.documentSymbol' support from the language server.
xmap if <Plug>(coc-funcobj-i)
omap if <Plug>(coc-funcobj-i)
xmap af <Plug>(coc-funcobj-a)
omap af <Plug>(coc-funcobj-a)
xmap ic <Plug>(coc-classobj-i)
omap ic <Plug>(coc-classobj-i)
xmap ac <Plug>(coc-classobj-a)
omap ac <Plug>(coc-classobj-a)
" Remap <C-f> and <C-b> for scroll float windows/popups.
if has('nvim-0.4.0') || has('patch-8.2.0750')
nnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
nnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
inoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(1)\<cr>" : "\<Right>"
inoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(0)\<cr>" : "\<Left>"
vnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
vnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
endif
" Add `:Format` command to format current buffer.
command! -nargs=0 Format :call CocAction('format')
" Add `:Fold` command to fold current buffer.
command! -nargs=? Fold :call CocAction('fold', <f-args>)
" Add `:OR` command for organize imports of the current buffer.
command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport')
" Add (Neo)Vim's native statusline support.
" NOTE: Please see `:h coc-status` for integrations with external plugins that
" provide custom statusline: lightline.vim, vim-airline.
set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')}
let g:airline_theme='bubblegum'
" Mappings for CoCList
" Show all diagnostics.
nnoremap <silent><nowait> <space>a :<C-u>CocList diagnostics<cr>
" Manage extensions.
nnoremap <silent><nowait> <space>e :<C-u>CocList extensions<cr>
" Show commands.
nnoremap <silent><nowait> <space>c :<C-u>CocList commands<cr>
" Find symbol of current document.
nnoremap <silent><nowait> <space>o :<C-u>CocList outline<cr>
" Search workspace symbols.
nnoremap <silent><nowait> <space>s :<C-u>CocList -I symbols<cr>
" Do default action for next item.
nnoremap <silent><nowait> <space>j :<C-u>CocNext<CR>
" Do default action for previous item.
" filenames like *.xml, *.html, *.xhtml, ...
" These are the file extensions where this plugin is enabled.
"
let g:closetag_filenames = '*.html,*.xhtml,*.phtml,*.svelte'
" filenames like *.xml, *.xhtml, ...
" This will make the list of non-closing tags self-closing in the specified files.
"
let g:closetag_xhtml_filenames = '*.xhtml,*.jsx,*.svelte'
" filetypes like xml, html, xhtml, ...
" These are the file types where this plugin is enabled.
"
let g:closetag_filetypes = 'html,xhtml,phtml,svelte'
" filetypes like xml, xhtml, ...
" This will make the list of non-closing tags self-closing in the specified files.
"
let g:closetag_xhtml_filetypes = 'xhtml,jsx,svelte'
" integer value [0|1]
" This will make the list of non-closing tags case-sensitive (e.g. `<Link>` will be closed while `<link>` won't.)
"
let g:closetag_emptyTags_caseSensitive = 1
noremap <A-Left> 0
inoremap <A-Left> <Esc>0i
noremap <A-Right> $
inoremap <A-Right> <Esc>$a
noremap ,e :tabedit<SPACE>
noremap ,q :wq<CR>
noremap ,gb :GoBuild<CR>
noremap ,gr :GoRun<CR>
noremap ,s :so ~/.config/nvim/init.vim<CR>
" dict
" Disables auto-close if not in a "valid" region (based on filetype)
"
let g:closetag_regions = {
\ 'typescript.tsx': 'jsxRegion,tsxRegion',
\ 'javascript.jsx': 'jsxRegion',
\ 'typescriptreact': 'jsxRegion,tsxRegion',
\ 'javascriptreact': 'jsxRegion',
\ }
set autowrite
" Shortcut for closing tags, default is '>'
"
let g:closetag_shortcut = '>'
" Add > at current position without closing the current tag, default is ''
"
let g:closetag_close_shortcut = '<leader>>'

12
nvim/nvim/.netrwhist

@ -0,0 +1,12 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhistcnt =0
let g:netrw_dirhist_0='/home/hamza/code/misc/docker-images/postgres'
let g:netrw_dirhist_9='/var/log/journal/a5b543d1988a42b0888fef190018dc1f'
let g:netrw_dirhist_8='/home/hamza/Videos'
let g:netrw_dirhist_7='/home/hamza/code/web/factory-calculator'
let g:netrw_dirhist_6='/home/hamza/.config/nvim'
let g:netrw_dirhist_5='/home/hamza/code/misc/coverage/cmd/server'
let g:netrw_dirhist_4='/home/hamza/code/misc/coverage/cmd'
let g:netrw_dirhist_3='/home/hamza/code/misc/coverage/cmd/ci'
let g:netrw_dirhist_2='/home/hamza/.config/nvim'
let g:netrw_dirhist_1='/home/hamza/.config'

9
nvim/nvim/coc-settings.json

@ -0,0 +1,9 @@
{
"languageserver": {
"golang": {
"command": "gopls",
"rootPatterns": ["go.mod", ".vim/", ".git/", ".hg/"],
"filetypes": ["go"]
}
}
}

256
nvim/nvim/init.vim

@ -0,0 +1,256 @@
set nocompatible
so ~/.config/nvim/plugins.vim
"so ~/.config/nvim/word_processing.vim
" --Plugin Configurations
let g:go_metalinter_enabled = [
\'bodyclose', 'deadcode', 'errcheck', 'goconst', 'gocritic', 'gocyclo', 'golint', 'gomnd', 'gosimple', 'govet',
\'ineffassign', 'interfacer', 'lll', 'misspell', 'prealloc', 'staticcheck', 'structcheck', 'typecheck', 'unconvert',
\'unparam', 'unused', 'varcheck'
\]
let g:go_highlight_build_constraints = 1
let g:go_highlight_extra_types = 1
let g:go_highlight_fields = 1
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_operators = 1
let g:go_highlight_structs = 1
let g:go_highlight_types = 1
let g:go_def_mapping_enabled = 0
let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1
set title "Update title of the terminal
set number "Display line numbers
set relativenumber
set ruler "Display cursor position
set wrap "Wrap lines when they are long
set scrolloff=3 "Display 3 lines around the cursor when scrolling
set clipboard+=unnamedplus " use system clipboard
set guicursor+=a:blinkon0
filetype on
filetype plugin on
filetype plugin indent on
filetype indent on
"--Search
set ignorecase "Case insensitive search
set smartcase "Just in case I still want case sensitive search
"Case sensitive when there's upper case
set incsearch "Incremental search
set hlsearch "Highlight search results
noremap // :nohls<RETURN>
"--Beep
set noerrorbells "Vim is annoying
set shiftwidth=4
set tabstop=4
set scrolloff=10
set softtabstop=0
set updatetime=100 "Vim gitgutter
"--My ColorScheme
set background=dark
set termguicolors
colorscheme challenger_deep
hi Comment guifg=#f4b0f0 ctermfg=102
hi Normal guibg=#00000ee
let mapleader=","
noremap <leader>1 1gt
noremap <leader>2 2gt
noremap <leader>3 3gt
noremap <leader>4 4gt
noremap <leader>5 5gt
noremap <leader>6 6gt
noremap <leader>7 7gt
noremap <leader>8 8gt
noremap <leader>9 9gt
noremap <leader>0 0gt
inoremap jj <Esc>
noremap <leader>w :e<SPACE>
noremap <leader>e :Files<CR>
noremap <leader>b :Buffers<CR>
nnoremap <C-k> :bprev<CR>
nnoremap <C-j> :bnext<CR>
"nnoremap <leader>d :bd<CR>
nnoremap <leader>d :bp<cr>:bd #<cr>
" (f)ind in file, (g)rep, (h)elp
noremap <leader>f :tabnew<CR>:Find<CR>
noremap <leader>g :vimgrep // **/*.<C-R>=expand('%:e')<CR><C-Left><C-Left><Right>
noremap <leader>h :help<SPACE>
noremap <leader>n :cn<CR>
noremap <leader>p :cp<CR>
noremap <leader>so :so ~/.config/nvim/init.vim<CR>
autocmd BufNewFile,BufRead .*config,*.config,config
\ setlocal filetype=gitconfig
autocmd BufNewFile,BufRead *.bolt
\ setlocal filetype=typescript
autocmd BufNewFile,BufRead *.cql
\ setlocal filetype=cql
autocmd BufNewFile,BufRead *.gradle,*.groovy
\ setlocal filetype=groovy
autocmd BufNewFile,BufRead *.osgjs,*.osgjs.gz
\ setlocal filetype=json
autocmd BufNewFile,BufRead *.go.tpl,*.peg,*.qtpl
\ setlocal syntax=go
autocmd BufNewFile,BufRead *.gunk
\ setlocal filetype=gunk syntax=go
autocmd BufNewFile,BufRead *.gltf
\ setlocal filetype=gltf syntax=json
autocmd BufNewFile,BufRead *.frag
\ setlocal filetype=glsl syntax=glsl
" Coc.NVIM
" Set internal encoding of vim, not needed on neovim, since coc.nvim using some
" unicode characters in the file autoload/float.vim
set encoding=utf-8
" TextEdit might fail if hidden is not set.
set hidden
" Give more space for displaying messages.
set cmdheight=2
" Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable
" delays and poor user experience.
set updatetime=300
" Don't pass messages to |ins-completion-menu|.
set shortmess+=c
" Always show the signcolumn, otherwise it would shift the text each time
" diagnostics appear/become resolved.
if has("patch-8.1.1564")
" Recently vim can merge signcolumn and number column into one
set signcolumn=number
else
set signcolumn=yes
endif
" vim sideways
nnoremap <c-h> :SidewaysLeft<cr>
nnoremap <c-l> :SidewaysRight<cr>
" Use <c-space> to trigger completion.
if has('nvim')
inoremap <silent><expr> <c-space> coc#refresh()
else
inoremap <silent><expr> <c-@> coc#refresh()
endif
" Make <CR> auto-select the first completion item and notify coc.nvim to
" format on enter, <cr> could be remapped by other vim plugin
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
" GoTo code navigation.
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
" Use K to show documentation in preview window.
nnoremap <silent> K :call <SID>show_documentation()<CR>
function! s:show_documentation()
if (index(['vim','help'], &filetype) >= 0)
execute 'h '.expand('<cword>')
elseif (coc#rpc#ready())
call CocActionAsync('doHover')
else
execute '!' . &keywordprg . " " . expand('<cword>')
endif
endfunction
function! s:doHover()
if coc#rpc#ready()
let diagnostics = CocAction('diagnosticList')
if empty(diagnostics)
call CocActionAsync('doHover')
return
endif
let file = expand('%:p')
let lnum = line('.')
let cnum = col('.')
for v in diagnostics
if v['file'] != file
\ || lnum != v['lnum']
\ || cnum < v['location']['range']['start']['character']
\ || cnum > v['location']['range']['end']['character']
call CocActionAsync('doHover')
return
endif
endfor
endif
endfunction
" Highlight the symbol and its references when holding the cursor.
autocmd CursorHold * silent call CocActionAsync('highlight')
" Symbol renaming.
nmap <leader>rn <Plug>(coc-rename)
augroup mygroup
autocmd!
" Setup formatexpr specified filetype(s).
autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected')
" Update signature help on jump placeholder.
autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
augroup end
" Map function and class text objects
" NOTE: Requires 'textDocument.documentSymbol' support from the language server.
xmap if <Plug>(coc-funcobj-i)
omap if <Plug>(coc-funcobj-i)
xmap af <Plug>(coc-funcobj-a)
omap af <Plug>(coc-funcobj-a)
xmap ic <Plug>(coc-classobj-i)
omap ic <Plug>(coc-classobj-i)
xmap ac <Plug>(coc-classobj-a)
omap ac <Plug>(coc-classobj-a)
" Remap <C-f> and <C-b> for scroll float windows/popups.
if has('nvim-0.4.0') || has('patch-8.2.0750')
nnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
nnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
inoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(1)\<cr>" : "\<Right>"
inoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(0)\<cr>" : "\<Left>"
vnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
vnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
endif
" Add `:Format` command to format current buffer.
command! -nargs=0 Format :call CocAction('format')
" Add `:Fold` command to fold current buffer.
command! -nargs=? Fold :call CocAction('fold', <f-args>)
" Add `:OR` command for organize imports of the current buffer.
command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport')
" Add (Neo)Vim's native statusline support.
" NOTE: Please see `:h coc-status` for integrations with external plugins that
" provide custom statusline: lightline.vim, vim-airline.
set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')}
let g:airline_theme='bubblegum'
" Mappings for CoCList
" Show all diagnostics.
nnoremap <silent><nowait> <space>a :<C-u>CocList diagnostics<cr>
" Manage extensions.
nnoremap <silent><nowait> <space>e :<C-u>CocList extensions<cr>
" Show commands.
nnoremap <silent><nowait> <space>c :<C-u>CocList commands<cr>
" Find symbol of current document.
nnoremap <silent><nowait> <space>o :<C-u>CocList outline<cr>
" Search workspace symbols.
nnoremap <silent><nowait> <space>s :<C-u>CocList -I symbols<cr>
" Do default action for next item.
nnoremap <silent><nowait> <space>j :<C-u>CocNext<CR>
" Do default action for previous item.

32
nvim/nvim/plugins.vim

@ -0,0 +1,32 @@
call plug#begin('~/.vim/plugged')
Plug 'challenger-deep-theme/vim', { 'as': 'challenger-deep' }
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'airblade/vim-matchquote'
Plug 'andrewradev/sideways.vim'
Plug 'preservim/nerdtree'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-fugitive'
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'dense-analysis/ale'
Plug 'cespare/vim-toml'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
call plug#end()

11
nvim/nvim/spell/en.utf-8.add

@ -0,0 +1,11 @@
Unban
veksen
TPH
online
unban
veksen
API
backend
JavaScript
frontend
TypeScript

BIN
nvim/nvim/spell/en.utf-8.add.spl

Binary file not shown.

18
nvim/nvim/word_processing.vim

@ -0,0 +1,18 @@
func! WordProcessor()
" movement changes
map j gj
map k gk
map 0 g0
map $ g$
" formatting text
setlocal formatoptions=1
setlocal noexpandtab
setlocal wrap
setlocal linebreak
" spelling and thesaurus
setlocal spell spelllang=en_us
set thesaurus+=/home/hamza/.config/spell/mthesaur.txt
" complete+=s makes autocompletion search the thesaurus
set complete+=s
endfu
com! WP call WordProcessor()

36
nvim/plugins.vim

@ -1,19 +1,23 @@
call plug#begin('~/.vim/plugged')
Plug '~/code/vim-molika'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'vim-syntastic/syntastic'
Plug 'vim-airline/vim-airline'
call plug#begin()
Plug 'airblade/vim-gitgutter'
Plug 'airblade/vim-matchquote'
Plug 'alvan/vim-closetag'
Plug 'cespare/vim-toml'
Plug 'evanleck/vim-svelte', {'branch': 'main'}
Plug 'fatih/vim-go'
Plug 'georgewitteman/vim-fish'
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
Plug 'jiangmiao/auto-pairs'
Plug 'joshdick/onedark.vim'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'mattn/emmet-vim'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-fugitive'
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
Plug 'kovetskiy/sxhkd-vim'
Plug 'leafgarland/typescript-vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'yuezk/vim-js'
call plug#end()

2
polybar/colors.ini

@ -77,7 +77,7 @@ purple-a1 = #ea80fc
purple-a2 = #e040fb
purple-a4 = #d500f9
purple-a7 = #aa00ff
red-a1 = #ff8a80
red-a1 = #ff4f3f
red-a2 = #ff5252
red-a4 = #fd4285
red-a7 = #d50000

7
polybar/config.ini

@ -17,12 +17,13 @@ include-file = $HOME/.config/polybar/modules/pulseaudio.ini
include-file = $HOME/.config/polybar/modules/session.ini
include-file = $HOME/.config/polybar/modules/title.ini
include-file = $HOME/.config/polybar/modules/xworkspaces.ini
include-file = $HOME/.config/polybar/modules/updates.ini
[bar/main]
monitor = ${env:MONITOR:}
width = 100%
height = 30
offset-y = 10
offset-y = 5
fixed-center = true
override-redirect = true
@ -36,10 +37,10 @@ include-file = $HOME/.config/polybar/fonts.ini
modules-left = margin round-left i3 round-right margin round-left title round-right
modules-center = round-left date round-right
modules-right = margin round-left cpu round-right margin round-left memory round-right margin round-left network round-right margin round-left pulseaudio round-right margin round-left session round-right margin
modules-right = round-left updates round-right margin round-left cpu round-right margin round-left memory round-right margin round-left network round-right margin round-left pulseaudio round-right margin
tray-background = ${colors.grey-9}
tray-position = left
tray-position = none
tray-maxsize = 16
cursor-click = pointer

2
polybar/fonts.ini

@ -1,5 +1,5 @@
font-0 = "JetBrainsMono Nerd Font:style=Medium:size=11;2"
font-1 = "JetBrainsMono Nerd Font:style=Bold:size=11;2"
font-1 = "JetBrainsMono Nerd Font:style=Bold:size=11;3"
font-2 = "JetBrainsMono Nerd Font:size=12;3"
font-3 = "JetBrainsMono Nerd Font:size=10;3"
font-4 = "JetBrainsMono Nerd Font:size=18;4"

11
polybar/modules/cpu.ini

@ -2,13 +2,13 @@
type = internal/cpu
interval = 1
format = <ramp-load> <bar-load>
format = <label>
;format = <ramp-load>
format-background = ${colors.grey-9}
format-padding = 1
label = %percentage:2%%
;label-foreground = ${colors.light-blue-a4}
;label-padding = 1
label = %{T3} %{T-} %{T2}%percentage:2%%%{T-}
label-foreground = ${colors.red-a1}
label-padding = 0
bar-load-empty =
bar-load-fill =
@ -28,8 +28,9 @@ ramp-load-2 = %{T3} %{T-}
ramp-load-3 = %{T3} %{T-}
ramp-load-4 = %{T3} %{T-}
ramp-load-5 = %{T3} %{T-}
ramp-used-0-foreground = ${colors.blue-a4}
ramp-used-1-foreground = ${colors.green-a4}
ramp-used-2-foreground = ${colors.yellow-a4}
ramp-used-3-foreground = ${colors.orange-a4}
ramp-used-4-foreground = ${colors.red-a4}
ramp-used-4-foreground = ${colors.red-a1}

6
polybar/modules/i3.ini

@ -6,6 +6,8 @@ wrapping-scroll = false
format = <label-state> <label-mode>
label = hello
label-focused = %icon%
label-focused-background = ${colors.grey-9}
label-focused-foreground = ${colors.yellow-a4}
@ -31,7 +33,7 @@ lebal-separator-padding = 1
label-separator-background = ${colors.grey-9}
label-separator-foreground = ${colors.red-a4}
ws-icon-0 = "1; "
ws-icon-1 = "2; "
ws-icon-0 = "1; "
ws-icon-1 = "2; "
ws-icon-2 = "3; "
ws-icon-default = " "

7
polybar/modules/memory.ini

@ -2,13 +2,12 @@
type = internal/memory
interval = 1
format = <ramp-used> <bar-used>
format = <ramp-used> <label>
;format = <ramp-used>
format-background = ${colors.grey-9}
format-padding = 1
label =
label-foreground = ${colors.light-blue-a4}
label = %{T2}%mb_used%%{T-}
label-foreground = ${colors.blue-a4}
bar-used-empty =
bar-used-fill =
bar-used-indicator =

3
polybar/modules/network.ini

@ -2,10 +2,11 @@
type = internal/network
interface = enp30s0
format-connected = <label-connected>
format-connected-background = ${colors.grey-9}
format-connected-padding = 1
label-connected = %{T7}%{T-} %{T2}%downspeed%%{T-}
label-connected = %{T7}%{T-} %{T2}%downspeed%%{T-} %{T7}%{T-} %{T2}%upspeed%%{T-}
label-connected-foreground = ${colors.green-a4}
format-disconnected = <label-disconnected>

2
polybar/modules/pulseaudio.ini

@ -6,7 +6,7 @@ use-ui-max = false
format-volume = <ramp-volume> <label-volume>
format-volume-background = ${colors.grey-9}
format-volume-padding = 1
label-volume = %percentage%%
label-volume = %{T2}%percentage%%%{T-}
label-volume-foreground = ${colors.yellow-a4}
label-volume-padding = 0

18
polybar/modules/updates.ini

@ -0,0 +1,18 @@
[module/updates]
type = custom/script
; Available tokens:
; %counter%
; Command to be executed (using "/bin/sh -c [command]")
exec = updates
; Seconds to sleep between updates
; Default: 5 (0 if `tail = true`)
interval = 900
format = <label>
format-background = ${colors.grey-9}
format-padding = 1
label = %{T3} %{T-} %{T2}%output%%{T-}
label-foreground = ${colors.purple-a7}
label-padding = 0

2
polybar/modules/xworkspaces.ini

@ -6,7 +6,7 @@ format-padding = 1
label-active = %{T4}%icon%%{T-}
label-active-foreground = ${colors.blue-a4}
label-active-padding = 1
label-active-padding = 0
label-occupied = %{T4}%icon%%{T-}
label-occupied-foreground = ${colors.blue-a1}

9
scripts/killcompton

@ -0,0 +1,9 @@
#!/bin/sh
compton=$(ps aux | grep -w "picom")
if [ "$compton" != "" ]
then
killall compton
else
compton -cC
fi

3
scripts/logout

@ -0,0 +1,3 @@
#! /bin/sh
betterlockscreen -t "Access denied. Please login." --lock

12
scripts/start-polybar

@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Terminate already running bar instances
killall polybar
# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
# Launch polybar for all monitors
for monitor in $(polybar --list-monitors | cut -d ":" -f 1); do
MONITOR=$monitor polybar main -c $HOME/.config/polybar/config.ini -r &
done

27
scripts/workspace

@ -0,0 +1,27 @@
#! /bin/bash
current_ws() {
echo $(i3-msg -t get_workspaces | jq '.[] | select(.focused) | .num')
}
other_ws() {
echo $(i3-msg -t get_workspaces | jq '.[] | select((.focused | not) and .visible) | .num')
}
set_ws() {
let WS=$1
if [ "$(current_ws)" -gt 9 ]; then
let WS=$WS+9
fi
if [ -z $2 ]; then
i3-msg workspace $WS
else
i3-msg move container to workspace $WS
fi
}
toggle_ws() {
i3msg workspace $(other_ws)
}
$@

65
termite/config

@ -1,65 +0,0 @@
[options]
allow_bold = true
audible_bell = false
#bold_is_bright = true
#cell_height_scale = 1.0
#cell_width_scale = 1.0
clickable_url = true
dynamic_title = true
font = JetBrains Mono 14
#fullscreen = true
mouse_autohide = true
# Length of the scrollback buffer, 0 disabled the scrollback buffer
# and setting it to a negative value means "infinite scrollback"
scrollback_lines = 10000
#search_wrap = true
#urgent_on_bell = true
#hyperlinks = false
# $BROWSER is used by default if set, with xdg-open as a fallback
browser = xdg-open
# Hide links that are no longer valid in url select overlay mode
filter_unmatched_urls = true
# "off", "left" or "right"
scrollbar = off
[colors]
# If both of these are unset, cursor falls back to the foreground color,
# and cursor_foreground falls back to the background color.
#cursor = #dcdccc
#cursor_foreground = #dcdccc
foreground = #c7c7c7
#foreground_bold = #ffffff
background = rgba(22, 22, 22, 0.90)
# Colors from color0 to color254 can be set
color0 = #161616
color8 = #aaaaaa
color1 = #fd4285
color9 = #fa7fac
color2 = #a6e22d
color10 = #bde271
color3 = #e5da72
color11 = #fff27f
color4 = #0094d8
color12 = #00bdff
color5 = #9a37ff
color13 = #bd9eff
color6 = #50b6d8
color14 = #5ed6fe
color7 = #c7c7c7
color15 = #feffff
# vim: ft=dosini cms=#%s
Loading…
Cancel
Save