From 9eba64edd6ced4a630b612ed4ff28c83a1e29d43 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 2 Oct 2018 09:55:09 +0200 Subject: [zsh] Add [vifm] in prompt when appropriate --- feh/.config/feh/keys | 3 +++ i3/.config/i3/config | 3 +++ zsh/.zshrc | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/feh/.config/feh/keys b/feh/.config/feh/keys index fa16ee6..3528efa 100644 --- a/feh/.config/feh/keys +++ b/feh/.config/feh/keys @@ -12,3 +12,6 @@ zoom_in plus zoom_out minus zoom_fill s zoom_fit a + +orient_1 r +reload_image R diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 010808c..fd90b91 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -13,6 +13,9 @@ bindsym $mod+Return exec --no-startup-id i3-sensible-terminal for_window [instance="scratchpad"] move window to scratchpad, scratchpad show bindsym $mod+Shift+Return exec --no-startup-id i3-sensible-terminal -name scratchpad +# Assign applications to certain workspaces +# assign [class="qutebrowser"] 1:qutebrowser + # kill focused window bindsym $mod+d kill diff --git a/zsh/.zshrc b/zsh/.zshrc index 9b06a94..96a86d3 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -50,6 +50,10 @@ PROMPT='%F{red}[%M]%f %0~ $ ' else PROMPT='%0~ $ ' fi + +if [[ -n $VIFM ]]; then +PROMPT="%F{green}[VIFM]%f $PROMPT" +fi # }}} ## Plugins {{{ [ ! -d ~/.zsh/zgen ] && git clone https://github.com/tarjoilija/zgen.git ~/.zsh/zgen -- cgit v1.2.3