Dotfiles-dwm/dwmbar/modules/os-release

15 lines
175 B
Plaintext
Raw Permalink Normal View History

2024-06-02 11:02:06 +00:00
#!/bin/bash
# Prints out your OS name
PREFIX=' '
get_os_name()
{
OS=$(cat /etc/os-release | head -n 1 | sed 's/NAME=//g')
echo "$PREFIX$OS"
}
get_os_name