From 506c43762d047b2cc9e5f605192e4a809b5bf936 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Fri, 5 Feb 2021 23:41:40 -0600 Subject: [PATCH] a --- dot_config/aerc/aerc.conf | 3 +++ dot_config/aerc/binds.conf | 2 +- dot_config/rofi/config.rasi | 3 +++ dot_local/scripts/executable_passmenu.sh | 4 ++-- dot_local/scripts/executable_rofiwrap.sh | 2 +- dot_zshrc | 1 + 6 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 dot_config/rofi/config.rasi diff --git a/dot_config/aerc/aerc.conf b/dot_config/aerc/aerc.conf index 3fbe197..8fac4f1 100644 --- a/dot_config/aerc/aerc.conf +++ b/dot_config/aerc/aerc.conf @@ -1,6 +1,9 @@ [compose] editor=nvim +[triggers] +new-email=exec notify-send "New email from %n" "%s" + [filters] subject,~^\[PATCH=awk -f /usr/share/aerc/filters/hldiff text/html=/usr/share/aerc/filters/html diff --git a/dot_config/aerc/binds.conf b/dot_config/aerc/binds.conf index 5f53108..d9a1d22 100644 --- a/dot_config/aerc/binds.conf +++ b/dot_config/aerc/binds.conf @@ -83,8 +83,8 @@ $noinherit = true $ex = = :prev-field = :next-field - = :prev-tab = :next-tab + = :prev-tab [compose::review] # Keybindings used when reviewing a message to be sent diff --git a/dot_config/rofi/config.rasi b/dot_config/rofi/config.rasi new file mode 100644 index 0000000..b300bc4 --- /dev/null +++ b/dot_config/rofi/config.rasi @@ -0,0 +1,3 @@ +configuration { + theme: "/usr/share/rofi/themes/Arc-Dark.rasi"; +} diff --git a/dot_local/scripts/executable_passmenu.sh b/dot_local/scripts/executable_passmenu.sh index 471b625..60a7796 100644 --- a/dot_local/scripts/executable_passmenu.sh +++ b/dot_local/scripts/executable_passmenu.sh @@ -18,6 +18,6 @@ password=$(printf '%s\n' "${password_files[@]}" | $HOME/.local/scripts/rofiwrap. [[ -n $password ]] || exit -pass show -c1 "$password" 2>/dev/null -xclip -o -sel clip | wl-copy +MSG=$(pass show -c1 "$password" 2>&1) +notify-send "Password copied." "$MSG" diff --git a/dot_local/scripts/executable_rofiwrap.sh b/dot_local/scripts/executable_rofiwrap.sh index c896600..e7d2598 100644 --- a/dot_local/scripts/executable_rofiwrap.sh +++ b/dot_local/scripts/executable_rofiwrap.sh @@ -1,3 +1,3 @@ #!/bin/bash -source $HOME/.zshrc +source $HOME/.zshrc >/dev/null 2>/dev/null exec rofi -font "Roboto Mono 11" $@ diff --git a/dot_zshrc b/dot_zshrc index fbea379..56ea646 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -22,6 +22,7 @@ export DOTNET_CLI_TELEMETRY_OPTOUT=1 # export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src" export EDITOR=nvim export MAILDIR=$HOME/Mail +export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock source_if_exists $HOME/.cargo/env source_if_exists $HOME/.ghcup/env