Dotfiles-dwm/dwmbar/modules/username
2024-06-02 14:02:06 +03:00

14 lines
160 B
Bash
Executable File

#!/bin/bash
# Prints the effective username of the current user
PREFIX=''
get_username()
{
USERNAME=$(whoami)
echo "$PREFIX $USERNAME"
}
get_username