dwmbar/modules/os-release
Baitinq e5b929d981
Add os-release module
Prints your distro's name
2021-10-21 13:41:03 +01:00

14 lines
175 B
Bash

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