From 802f0166edd82dddc9d748bace6f9916f882114c Mon Sep 17 00:00:00 2001 From: Sergey Besedin Date: Mon, 11 Oct 2021 11:18:48 +0400 Subject: [PATCH] Update configuration --- config/fd/ignore | 28 +++++++++++++++++++++ config/htop/htoprc | 2 +- config/i3/config | 6 +++-- config/nvim/coc-settings.json | 1 + config/nvim/init.vim | 6 ++++- config/redshift.conf | 47 +++++++++++++++++++++++++++++++++++ config/redshift/hooks | 5 ++++ gitignore_global | 2 ++ rgignore | 5 ++++ xinitrc | 3 ++- 10 files changed, 100 insertions(+), 5 deletions(-) create mode 100644 config/fd/ignore create mode 100644 config/redshift.conf create mode 100644 config/redshift/hooks mode change 100644 => 100755 xinitrc diff --git a/config/fd/ignore b/config/fd/ignore new file mode 100644 index 0000000..dc44508 --- /dev/null +++ b/config/fd/ignore @@ -0,0 +1,28 @@ +*.swp +.bundle/ +.vim/ +npm-debug.log +vendor/bundle/ +vendor/cache/ +.sass-cache/ +node_modules/ +yarn-error.log +.env.local +*.gem +.pgsync.yml +stats.json +tags +.ctags.d/ + +.direnv/ +*.pid +*.sock + +report*.json +.clinic/ + +.elixir_ls/ +_build/ +deps/ + +priv/static diff --git a/config/htop/htoprc b/config/htop/htoprc index b4dde8a..48ccd40 100644 --- a/config/htop/htoprc +++ b/config/htop/htoprc @@ -3,7 +3,7 @@ fields=0 48 17 18 38 39 40 2 46 47 49 1 sort_key=47 sort_direction=1 -tree_sort_key=47 +tree_sort_key=46 tree_sort_direction=1 hide_kernel_threads=0 hide_userland_threads=0 diff --git a/config/i3/config b/config/i3/config index 9ac6d29..9b577d9 100644 --- a/config/i3/config +++ b/config/i3/config @@ -45,8 +45,10 @@ for_window [class="(?i)discord"] move container to workspace $ws2 for_window [class="mpv"] floating enable for_window [class="(?i)zooout"] floating enable -for_window [class="(?i)qjackctl"] move container to workspace $ws5 floating enable -for_window [class="(?i)cadence"] move container to workspace $ws5 floating enable +for_window [class="(?i)qjackctl"] move container to workspace $ws7 floating enable +for_window [class="(?i)cadence"] move container to workspace $ws7 floating enable +for_window [class="(?i)reaper"] move container to workspace $ws7 +for_window [class="(?i)renoise"] move container to workspace $ws7 for_window [class="(?i)uvi"] floating enable for_window [class="(?i)arturia"] floating enable for_window [class="(?i)ilok"] floating enable diff --git a/config/nvim/coc-settings.json b/config/nvim/coc-settings.json index e10711a..674161c 100644 --- a/config/nvim/coc-settings.json +++ b/config/nvim/coc-settings.json @@ -16,6 +16,7 @@ "highlight.disableLanguages": ["slim", "md"], "coc.source.omni.filetypes": [], "coc.source.omni.enable": false, + "tailwindCSS.emmetCompletions": true, "languageserver": { "golang": { "command": "gopls", diff --git a/config/nvim/init.vim b/config/nvim/init.vim index dfd749a..8e034bb 100644 --- a/config/nvim/init.vim +++ b/config/nvim/init.vim @@ -31,6 +31,10 @@ Plug 'fatih/vim-go' Plug 'Glench/Vim-Jinja2-Syntax' Plug 'HerringtonDarkholme/yats.vim' +" Elixir +Plug 'elixir-editors/vim-elixir' +Plug 'mhinz/vim-mix-format' + Plug 'tomtom/tcomment_vim' Plug 'majutsushi/tagbar', { 'on': 'TagbarToggle' } @@ -362,7 +366,7 @@ highlight link GitGutterAddLineNr GitGutterAddLine highlight link GitGutterDeleteLineNr GitGutterDeleteLine " fzf -let $FZF_DEFAULT_COMMAND="fd --type file --full-path -c never -H -E node_modules -E vendor -E public -E tmp -E log -E .git -E .hg -E .svn -E '*.min.js' -E '*.log' -E '.keep'" +let $FZF_DEFAULT_COMMAND="fd --type file --full-path -c never -H" silent! nmap :Files diff --git a/config/redshift.conf b/config/redshift.conf new file mode 100644 index 0000000..5a0a696 --- /dev/null +++ b/config/redshift.conf @@ -0,0 +1,47 @@ +[redshift] +; Set the day and night screen temperatures +temp-day=6500 +temp-night=4500 + +; Enable/Disable a smooth transition between day and night +; 0 will cause a direct change from day to night screen temperature. +; 1 will gradually increase or decrease the screen temperature +transition=1 + +; Set the screen brightness. Default is 1.0 +;brightness=0.9 +; It is also possible to use different settings for day and night since version 1.8. +;brightness-day=0.7 +brightness-night=0.7 + +; Set the screen gamma (for all colors, or each color channel individually) +;gamma=0.9 +gamma-night=0.9 + +;gamma=0.8:0.7:0.8 +; Set the location-provider: 'geoclue', 'gnome-clock', 'manual' +; type 'redshift -l list' to see possible values +; The location provider settings are in a different section. +location-provider=manual + +; Set the adjustment-method: 'randr', 'vidmode' +; type 'redshift -m list' to see all possible values +; 'randr' is the preferred method, 'vidmode' is an older API +; but works in some cases when 'randr' does not. +; The adjustment method settings are in a different section. +adjustment-method=randr + +; Configuration of the location-provider: +; type 'redshift -l PROVIDER:help' to see the settings +; e.g. 'redshift -l manual:help' +[manual] +lat=41.70565241961369 +lon=44.77003519848199 + +; Configuration of the adjustment-method +; type 'redshift -m METHOD:help' to see the settings +; ex: 'redshift -m randr:help' +; In this example, randr is configured to adjust screen 1. +; Note that the numbering starts from 0, so this is actually the second screen. +[randr] +screen=0 diff --git a/config/redshift/hooks b/config/redshift/hooks new file mode 100644 index 0000000..350f335 --- /dev/null +++ b/config/redshift/hooks @@ -0,0 +1,5 @@ +#!/bin/sh +case $1 in + period-changed) + exec notify-send "Redshift" "Period changed to $3" +esac diff --git a/gitignore_global b/gitignore_global index 3f0f62d..fe1b1db 100644 --- a/gitignore_global +++ b/gitignore_global @@ -21,3 +21,5 @@ tags report*.json .clinic/ + +/.elixir_ls/ diff --git a/rgignore b/rgignore index 2dc6059..7209c1e 100644 --- a/rgignore +++ b/rgignore @@ -2,3 +2,8 @@ vendor/bundle .git/ .import/ target/debug/ +.elixir_ls/ +_build/ +deps/ +node_modules/ +priv/static diff --git a/xinitrc b/xinitrc old mode 100644 new mode 100755 index a0b751f..ae184db --- a/xinitrc +++ b/xinitrc @@ -27,4 +27,5 @@ xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 6 7 4 5 # exec ck-launch-session dbus-launch xrdb -merge ~/.Xresources -exec i3 > $HOME/log/i3.txt 2>&1 + +exec dbus-launch --exit-with-session i3 > $HOME/log/i3.txt 2>&1