diff options
author | andreas | 2020-08-30 14:49:52 +0200 |
---|---|---|
committer | andreas | 2020-08-30 14:49:52 +0200 |
commit | 1080280d7bf1ac5ad505cccd5dc2c97d49cc63b0 (patch) | |
tree | e6b7796d8f410ed1cf0353683c6dacf50bf3d847 | |
parent | 230ded017bb59c81215e5fc519ed04097511592f (diff) | |
download | dotfiles-1080280d7bf1ac5ad505cccd5dc2c97d49cc63b0.zip dotfiles-1080280d7bf1ac5ad505cccd5dc2c97d49cc63b0.tar.gz |
Cleanup openbox environ setup AND Add vim nerdTreeToggle shortcut.
-rw-r--r-- | src/openbox/environment | 3 | ||||
-rw-r--r-- | src/session-init/setup-env | 25 | ||||
-rw-r--r-- | src/session-init/setup-gui | 12 | ||||
-rw-r--r-- | src/session-init/setup-shell | 6 | ||||
-rw-r--r-- | src/vi/_vimrc | 5 |
5 files changed, 31 insertions, 20 deletions
diff --git a/src/openbox/environment b/src/openbox/environment index fded15d..2fcf133 100644 --- a/src/openbox/environment +++ b/src/openbox/environment @@ -2,6 +2,5 @@ # "~/.config/openbox/environment" # -# Make sure launchers (eg gmrun) are able to find custom executables. -export PATH=~/.bin:$PATH +source ~/.config/user/setup-env diff --git a/src/session-init/setup-env b/src/session-init/setup-env new file mode 100644 index 0000000..98fd924 --- /dev/null +++ b/src/session-init/setup-env @@ -0,0 +1,25 @@ +# +# "~/.config/user/setup-env" +# + +# Make sure launchers (eg gmrun) are able to find custom executables. +export PATH=~/.bin:$PATH + +# For ls command. +export TIME_STYLE=+%Y-%m-%d_%H:%M + +# Use ISO date format (originates from configuring thunderbird) +export LC_TIME=en_DK.UTF-8 + +# Configure UI colors +# .. for GTK-2 +export GTK2_RC_FILES=/usr/share/themes/Adwaita-dark/gtk-2.0/gtkrc +# .. for GTK-3 +export GTK_THEME=Adwaita:dark +# .. Qt 5 (needs 'qt5-style-plugins' to be installed) +export QT_QPA_PLATFORMTHEME=gtk2 + +# Disable QT DPI scaling. Can be really helpful for eg vlc in a multi-monitor +# setup. +export QT_AUTO_SCREEN_SCALE_FACTOR=0 + diff --git a/src/session-init/setup-gui b/src/session-init/setup-gui index 4e8884e..8da24a6 100644 --- a/src/session-init/setup-gui +++ b/src/session-init/setup-gui @@ -2,15 +2,3 @@ # "~/.config/user/setup-gui" # -# Configure UI colors -# .. for GTK-2 -export GTK2_RC_FILES=/usr/share/themes/Adwaita-dark/gtk-2.0/gtkrc -# .. for GTK-3 -export GTK_THEME=Adwaita:dark -# .. Qt 5 (needs 'qt5-style-plugins' to be installed) -export QT_QPA_PLATFORMTHEME=gtk2 - -# Disable QT DPI scaling. Can be really helpful for eg vlc in a multi-monitor -# setup. -export QT_AUTO_SCREEN_SCALE_FACTOR=0 - diff --git a/src/session-init/setup-shell b/src/session-init/setup-shell index 029175c..d16b645 100644 --- a/src/session-init/setup-shell +++ b/src/session-init/setup-shell @@ -2,9 +2,3 @@ # "~/.config/user/setup-shell" # -# For ls command. -export TIME_STYLE=+%Y-%m-%d_%H:%M - -# Use ISO date format (originates from configuring thunderbird) -export LC_TIME=en_DK.UTF-8 - diff --git a/src/vi/_vimrc b/src/vi/_vimrc index 29422ed..05387bc 100644 --- a/src/vi/_vimrc +++ b/src/vi/_vimrc @@ -165,6 +165,11 @@ map <silent> ,cc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_leader,'\/')<CR>/< map <silent> ,cu :<C-B>silent <C-E>s/^\V<C-R>=escape(b:comment_leader,'\/')<CR>//e<CR>:nohlsearch<CR> +" NERDTree config ------------------------------------------------------------- + +nnoremap ° :NERDTreeToggle<CR> + + " YCM config ------------------------------------------------------------------ command YcmEnable call YcmEnable() |