summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2020-10-14 15:37:42 +0200
committerMarc Vertes <mvertes@free.fr>2020-10-14 15:37:42 +0200
commitafbf517309c9809516645e3b35cdc2be7852b884 (patch)
tree466184c793f4043ef4d53a6545595d493e6c9436
parent5487201d526a5ceb42aa051a3c44afffe932d352 (diff)
update
-rw-r--r--.bash-powerline.sh31
-rw-r--r--.config/dunst/dunstrc3
-rw-r--r--.config/i3/config1
3 files changed, 19 insertions, 16 deletions
diff --git a/.bash-powerline.sh b/.bash-powerline.sh
index 556391f..d939f57 100644
--- a/.bash-powerline.sh
+++ b/.bash-powerline.sh
@@ -9,12 +9,12 @@ __powerline() {
readonly COLOR_CWD='\[\033[0;34m\]' # blue
readonly COLOR_GIT='\[\033[0;36m\]' # cyan
#readonly COLOR_SUCCESS='\[\033[0;32m\]' # green
- readonly COLOR_SUCCESS='\[\033[0;34m\]' # blue
- readonly COLOR_FAILURE='\[\033[0;31m\]' # red
+ readonly COLOR_SUCCESS='\[\033[0;1;34m\]' # blue, bold
+ readonly COLOR_FAILURE='\[\033[0;1;31m\]' # red, bold
#readonly SYMBOL_GIT_BRANCH='⑂'
readonly SYMBOL_GIT_BRANCH='→'
- readonly SYMBOL_GIT_MODIFIED='*'
+ readonly SYMBOL_GIT_MODIFIED='¤'
readonly SYMBOL_GIT_PUSH='↑'
readonly SYMBOL_GIT_PULL='↓'
@@ -26,14 +26,15 @@ __powerline() {
host=$(hostname)
fi
- if [[ -z "$PS_SYMBOL" ]]; then
- case "$(uname)" in
- # Darwin) PS_SYMBOL='';;
- Darwin) PS_SYMBOL='$';;
- Linux) PS_SYMBOL='$';;
- *) PS_SYMBOL='%';;
- esac
- fi
+ [ "$PS_SYMBOL" ] || PS_SYMBOL=';'
+ #if [[ -z "$PS_SYMBOL" ]]; then
+ # case "$(uname)" in
+ # # Darwin) PS_SYMBOL='';;
+ # Darwin) PS_SYMBOL='$';;
+ # Linux) PS_SYMBOL='$';;
+ # *) PS_SYMBOL='%';;
+ # esac
+ #fi
__git_info() {
[[ $POWERLINE_GIT = 0 ]] && return # disabled
@@ -74,9 +75,9 @@ __powerline() {
# Check the exit code of the previous command and display different
# colors in the prompt accordingly.
if [ $? -eq 0 ]; then
- local symbol="$COLOR_SUCCESS $PS_SYMBOL $RESET"
+ local symbol="$COLOR_SUCCESS$PS_SYMBOL $RESET"
else
- local symbol="$COLOR_FAILURE $PS_SYMBOL $RESET"
+ local symbol="$COLOR_FAILURE$PS_SYMBOL $RESET"
fi
local cwd="$COLOR_CWD\w$RESET"
@@ -93,9 +94,9 @@ __powerline() {
local git="$COLOR_GIT$(__git_info)$RESET"
fi
- PS1="$cwd$git$symbol"
+ PS1=": $cwd$git$symbol"
if [ "$SSH_TTY" ]; then
- PS1="$host:$PS1"
+ PS1=": $host:$PS1"
fi
}
diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc
index c670303..245a60c 100644
--- a/.config/dunst/dunstrc
+++ b/.config/dunst/dunstrc
@@ -256,7 +256,8 @@
# will be executed in sequence.
mouse_left_click = close_current
mouse_middle_click = do_action, close_current
- mouse_right_click = close_all
+ mouse_right_click = do_action, close_current
+ #mouse_right_click = close_all
# Experimental features that may or may not work correctly. Do not expect them
# to have a consistent behaviour across releases.
diff --git a/.config/i3/config b/.config/i3/config
index 441753d..22a61af 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -38,6 +38,7 @@ exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock -c 000000 --nofork
# Notification daemon (see ~/.config/dunst/dunstrc for configuration)
exec --no-startup-id dunst
bindsym $mod+a exec --no-startup-id dunstctl action
+bindsym $mod+c exec --no-startup-id dunstctl context
bindsym $mod+n exec --no-startup-id dunstctl close
bindsym $mod+twosuperior exec --no-startup-id dunstctl history-pop