mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-12-22 21:22:52 +00:00
Added username module
This commit is contained in:
parent
0e8e7ab63d
commit
d66e4af5a1
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