summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-04-28 19:03:25 +0200
committerJulian T <julian@jtle.dk>2021-04-28 19:03:25 +0200
commitdc6fed0f0a9424655929e1edf4965ddcfa78d5d3 (patch)
tree595d2f845a4a0aea3891d76780973ae48af57842
parent901712e29e90e79815016d618f5472b9c90aea60 (diff)
Script, zsh and vim changes
-rwxr-xr-xscripts/Scripts/volume8
-rw-r--r--vim-extra/.config/nvim/extra.vim7
-rw-r--r--zsh/.zshrc20
3 files changed, 29 insertions, 6 deletions
diff --git a/scripts/Scripts/volume b/scripts/Scripts/volume
index 68e7bde..21a0e08 100755
--- a/scripts/Scripts/volume
+++ b/scripts/Scripts/volume
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
+plctl_flags="-i chromium,firefox"
+
case $1 in
micmutetoggle)
pacmd set-source-mute @DEFAULT_SOURCE@ toggle
@@ -21,12 +23,12 @@ case $1 in
;;
playtoggle)
- playerctl play-pause
+ playerctl $plctl_flags play-pause
;;
forward)
- playerctl next
+ playerctl $plctl_flags next
;;
backward)
- playerctl previous
+ playerctl $plctl_flags previous
;;
esac
diff --git a/vim-extra/.config/nvim/extra.vim b/vim-extra/.config/nvim/extra.vim
index a51bb2d..55f8006 100644
--- a/vim-extra/.config/nvim/extra.vim
+++ b/vim-extra/.config/nvim/extra.vim
@@ -27,15 +27,15 @@
Plugin 'sgur/vim-editorconfig'
" Color theme
- " Plugin 'agude/vim-eldar'
+ Plugin 'agude/vim-eldar'
" Plugin 'ntk148v/vim-horizon'
- " Plugin 'rakr/vim-colors-rakr'
+ Plugin 'rakr/vim-colors-rakr'
" Plugin 'rakr/vim-one'
Plugin 'morhetz/gruvbox'
" Plugin 'ntk148v/vim-horizon'
" Git
- " Plugin 'tpope/vim-fugitive'
+ Plugin 'tpope/vim-fugitive'
" File support
" Plugin 'cespare/vim-toml'
@@ -78,6 +78,7 @@
let g:LanguageClient_useVirtualText = "No"
let g:LanguageClient_loggingFile = "/tmp/lsp.log"
let g:LanguageClient_loggingLevel = "DEBUG"
+ let g:LanguageClient_diagnosticsList = "Disabled"
" Setup lsp servers
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 08977b7..a62efd5 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -57,6 +57,15 @@ PROMPT='$MAINCOL%~$(git_info)$MAINCOL %(!.#.$) %F{255}'
eval "$(dircolors)"
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
+#
+# Terminal specific settings
+#
+case $TERM in
+ xterm*)
+ precmd () {print -Pn "\e]0;%~\a"}
+ ;;
+esac
+
# Expand with dots
# https://michael.thegrebs.com/2012/09/04/zsh-completion-waiting-dots/
expand-or-complete-with-dots() {
@@ -104,6 +113,7 @@ function extra_env {
alias vim="$EDITOR"
alias ls='ls --color=auto'
alias python="python3"
+alias ipy="ipython"
#
# Functions
@@ -137,5 +147,15 @@ function goto {
fi
}
+function gotos {
+ goto $@
+ if [ -f "shell.drv" ]; then
+ echo Loading shell.drv
+ nix-shell shell.drv
+ else
+ nix-shell
+ fi
+}
+
source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh