Browse Source

Added environment variable control of a quiet launch to not show ufetch or tasks

master
Micah Halter 1 month ago
parent
commit
6db2fb86e0
Signed by: mehalter GPG Key ID: 4224A6EA9A8CAAA8
3 changed files with 9 additions and 6 deletions
  1. +1
    -1
      scripts/.local/bin/i3-cliprog
  2. +1
    -0
      scripts/.local/bin/i3-runner
  3. +7
    -5
      zsh/.config/zsh/.zshrc

+ 1
- 1
scripts/.local/bin/i3-cliprog View File

@ -5,7 +5,7 @@ COMMAND=$2
if ! xdotool search --classname "$INSTANCE" > /dev/null; then
i3-msg "exec $TERMINAL --name=$INSTANCE i3-runner \"$COMMAND\""
sleep .4
sleep .6
fi
i3-msg "[instance=\"$INSTANCE\"] scratchpad show; [instance=\"$INSTANCE\"] move position center"

+ 1
- 0
scripts/.local/bin/i3-runner View File

@ -1,5 +1,6 @@
#!/usr/bin/env zsh
QUIET_STARTUP=1
. $ZDOTDIR/.zshrc
eval "$@"

+ 7
- 5
zsh/.config/zsh/.zshrc View File

@ -93,11 +93,13 @@ export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
[ -f $XDG_CONFIG_HOME/wpg/sequences ] && (cat $XDG_CONFIG_HOME/wpg/sequences &)
ufetch
if [ $(t|wc -l) -gt 0 ]; then
echo "Tasks:"
echo "$(t)"
echo ""
if [ -z "$QUIET_STARTUP" ]; then
ufetch
if [ $(t|wc -l) -gt 0 ]; then
echo "Tasks:"
echo "$(t)"
echo ""
fi
fi
# Configure Virtual Terminal Emulator settings


Loading…
Cancel
Save