Edited PS1 to end with a newline, added phetch package to nixos/cli.nix, and edited sxhkd volume controls to one line

This commit is contained in:
Thai Noodles 2023-11-23 10:58:06 -08:00
parent 0b5c56e36a
commit 769ae73f68
3 changed files with 14 additions and 4 deletions

View File

@ -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() {

View File

@ -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

View File

@ -103,6 +103,7 @@
oed
pandoc
pdfgrep
phetch
profanity
recutils
#sc-im