-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfunc.h
More file actions
53 lines (48 loc) · 902 Bytes
/
func.h
File metadata and controls
53 lines (48 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include <stdio.h>
void enableRawMode();
void tty_raw_mode(void);
void disableRawMode();
char *strcat(char *dest, const char *src);
void increase()
{
char str[80];
strcpy(str, "mpc volume +");
strcat(str, upinterval);
strcat(str," |grep volume |cut -d % -f1");
system(str);
}
void decrease()
{
char str[80];
strcpy(str, "mpc volume -");
strcat(str, downinterval);
strcat(str," |grep volume |cut -d % -f1");
system(str);
}
void fastitforward()
{
char str[80];
strcpy(str, "mpc seek +");
strcat(str, seekforwardint);
strcat(str, " |grep -m2 -F '#' |cut -d ' ' -f4-");
system(str);
}
void fastitbackward()
{
char str[80];
strcpy(str, "mpc seek -");
strcat(str, seekbackint);
strcat(str, " |grep -m2 -F '#' |cut -d ' ' -f4-");
system(str);
}
void headfull_check(bool headfull)
{
if (headfull == true)
{
printf("\e[1;1H\e[2J\n");
}
}
/*
* version
*/
char *version= "v1.4.5";