dwmbar/modules/os-release

15 lines
175 B
Text
Raw Permalink Normal View History

#!/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