Dotfiles-dwm/dwmbar/modules/username

14 lines
160 B
Plaintext
Raw Permalink Normal View History

2024-06-02 11:02:06 +00:00
#!/bin/bash
# Prints the effective username of the current user
PREFIX=''
get_username()
{
USERNAME=$(whoami)
echo "$PREFIX $USERNAME"
}
get_username