mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-09 14:19:43 +00:00
Added hostname module
This commit is contained in:
parent
570963e08c
commit
fce557554a
1 changed files with 12 additions and 0 deletions
12
modules/hostname
Normal file
12
modules/hostname
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Prints USER@hostname
|
||||
|
||||
PREFIX=' '
|
||||
|
||||
get_hostname()
|
||||
{
|
||||
echo "$PREFIX$USER@$(hostname)"
|
||||
}
|
||||
|
||||
get_hostname
|
Loading…
Reference in a new issue