Dotfiles-dwm/dwmbar/modules/os-release
2024-06-02 14:02:06 +03:00

15 lines
175 B
Bash
Executable File

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