summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
author--global <ik.boikov.public@protonmail.com>2021-02-06 13:52:44 +0100
committer--global <ik.boikov.public@protonmail.com>2021-02-06 13:52:44 +0100
commit47d2a8e9699b689e39cb9fa4de5ddcd064695988 (patch)
tree0d18bb479d413369c9d98ef318991fda37176b52 /shell
parent9a4542606b0ad1352fada51fdc499741875bb123 (diff)
terminal swallowing, added gtk3 bookmarks
Diffstat (limited to 'shell')
-rw-r--r--shell/.config/shell/aliasrc15
-rw-r--r--shell/.config/shell/profile17
2 files changed, 25 insertions, 7 deletions
diff --git a/shell/.config/shell/aliasrc b/shell/.config/shell/aliasrc
index c5e28ec..febcce4 100644
--- a/shell/.config/shell/aliasrc
+++ b/shell/.config/shell/aliasrc
@@ -1,5 +1,8 @@
[ -x "$(command -v nvim)" ] && alias vim='nvim' vimdiff='nvim -d'
+# allow calls of aliases by xargs
+alias xargs='xargs '
+
# Verbosity and settings that you pretty much just always are going to want.
alias \
cp='cp -iv' \
@@ -32,12 +35,12 @@ alias \
a='sudo apt' \
z='zathura'
+# spawn terminal
+alias st="$TERMINAL </dev/null &>/dev/null & disown ;"
+
# run mpv with SVP, if SVP not active, works as usual mpv
alias mpv60='mpv --input-ipc-server=/tmp/mpvsocket --hwdec=auto-copy'
-# allow calls of aliases by xargs
-alias xargs='xargs '
-
# pass files selected in nnn to a program
# e.g. "nsel mpv60" to play multiple videos one after another
nsel_internal() {
@@ -45,3 +48,9 @@ nsel_internal() {
tr '\0' '\n' | awk 'NF { print "\""$0"\""}' | tr '\n' ' '
}
alias nsel='nsel_internal | xargs '
+
+
+# window swallowing
+alias sxiv="devour sxiv"
+alias mpv="devour mpv"
+alias zathura="devour zathura"
diff --git a/shell/.config/shell/profile b/shell/.config/shell/profile
index a86e017..4e30500 100644
--- a/shell/.config/shell/profile
+++ b/shell/.config/shell/profile
@@ -19,7 +19,7 @@ if [ -n "$BASH_VERSION" ]; then
fi
# Adds `~/.local/bin` to $PATH
-export PATH="$PATH:$(du "$HOME/.local/bin" | cut -f2 | paste -sd ':')"
+export PATH="$PATH:$(du -a "$HOME/.local/bin" | cut -f2 | paste -sd ':')"
export EDITOR="nvim"
export TERMINAL="st"
@@ -31,11 +31,20 @@ export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export GTK2_RC_FILES="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-2.0/gtkrc-2.0"
-export LESSHISTFILE="-"
export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
export GNUPGHOME="${XDG_DATA_HOME:-$HOME/.local/share}/gnupg"
export WINEPREFIX="${XDG_DATA_HOME:-$HOME/.local/share}/wineprefixes/default"
export HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/history"
-export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme.
-export MOZ_USE_XINPUT2="1" # Mozilla smooth scrolling/touchpads
+# I don't need history from less
+export LESSHISTFILE="-"
+
+# Have QT use gtk2 theme.
+export QT_QPA_PLATFORMTHEME="gtk2"
+
+# Mozilla smooth scrolling/touchpad support
+export MOZ_USE_XINPUT2="1"
+
+# nnn things
+export NNN_BMS='w:/media/wdblue;v:~/vid;d:~/dox;m:/mnt;M:/media'
+export NNN_PLUG="t:st"