This commit is contained in:
Syed Daanish
2025-02-09 15:45:42 +03:00
parent 2fb189efc7
commit 1d81a67e00
6 changed files with 66 additions and 21 deletions

19
main.go
View File

@@ -24,25 +24,6 @@ var symbols []rune
func main() {
symbols = []rune("󰞔󰪸󰸞")
/*
// ╭───╮
// │  │
// ╰───╯
disk := "nvme0n1"
parts := getPartitions()
mounted_parts(disk, parts)
part_labels(disk, parts)
fmt.Println(parts)
for _, val := range parts {
x, y := get_used_p(disk+"p"+val[0], val[4])
if y != nil {
fmt.Println(disk+"p"+val[0], val[4], "--")
} else {
fmt.Println(disk+"p"+val[0], val[4], fmt.Sprintf("%.2f%%", x))
}
}
return
//*/
screen_tmp, err := tcell.NewScreen()
if err != nil {
log.Fatalf("Error creating screen: %v", err)