diff --git a/home-manager/dots/bashrc b/home-manager/dots/bashrc index a9598a0..8aa74e6 100644 --- a/home-manager/dots/bashrc +++ b/home-manager/dots/bashrc @@ -2,6 +2,17 @@ set -o vi unset HISTFILE +if [ "$TERM" != "dumb" ] || [ -n "$INSIDE_EMACS" ]; then + PROMPT_COLOR="1;31m" + ((UID)) && PROMPT_COLOR="1;32m" + if [ -n "$INSIDE_EMACS" ]; then + # Emacs term mode doesn't support xterm title escape sequence (\e]0;) + PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] " + else + PS1="\n\[\033[$PROMPT_COLOR\][\[\e]0;\u@\h:\w\a\]\u@\h:\w]\\$\[\033[0m\]\n" + fi +fi +export "$PS1" # Functions function search() { diff --git a/home-manager/dots/sxhkd/sxhkdrc b/home-manager/dots/sxhkd/sxhkdrc index 0fdc0a9..0389c33 100644 --- a/home-manager/dots/sxhkd/sxhkdrc +++ b/home-manager/dots/sxhkd/sxhkdrc @@ -23,10 +23,8 @@ super + v clipmenu # volume controls -super + shift + comma - notify-desktop "Volume is now $(amixer sset Master 5%- | awk -F '[][]' '/Right:/ \{ print $2 \}')" -super + shift + period - notify-desktop "Volume is now $(amixer sset Master 5%+ | awk -F '[][]' '/Right:/ \{ print $2 \}')" +super + shift + bracket{left,right} + notify-desktop "Volume is now $(amixer sset Master 5%{-,+} | awk -F '[][]' '/Right:/ \{ print $2 \}')" # make sxhkd reload its configuration files: super + shift + r diff --git a/nixos/cli.nix b/nixos/cli.nix index 37fb937..6acb763 100644 --- a/nixos/cli.nix +++ b/nixos/cli.nix @@ -103,6 +103,7 @@ oed pandoc pdfgrep + phetch profanity recutils #sc-im