mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-09 22:19:45 +00:00
commit
a0cb7fddca
1 changed files with 14 additions and 0 deletions
14
modules/username
Executable file
14
modules/username
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Prints the effective username of the current user
|
||||
|
||||
PREFIX=''
|
||||
|
||||
get_username()
|
||||
{
|
||||
USERNAME=$(whoami)
|
||||
|
||||
echo "$PREFIX $USERNAME"
|
||||
}
|
||||
|
||||
get_username
|
Loading…
Reference in a new issue