File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ command=$SCRIPT_DIR/ytdl-mpv
20
20
markup =pango
21
21
interval =once
22
22
signal =4
23
+ # CACHE_DEFAULT=1048576
24
+ # PLAYING_COLOR=red
25
+ # NOT_PLAYING_COLOR=white
23
26
```
24
27
25
28
Copy a youtube URL into your clipboard and then click on the blocklet to make sure everything works.
Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ use warnings;
10
10
use utf8;
11
11
use Data::Validate::URI;
12
12
13
- my $cache_default = 1048576;
14
- my $signal = 4 ;
13
+ my $cache_default = $ENV { CACHE_DEFAULT } || 1048576;
14
+ my $signal = $ENV { SIGNAL } || or die ;
15
15
my $notify_i3bar = " pkill -RTMIN+$signal i3blocks" ;
16
16
my $string = qx/ xclip -out/ ;
17
17
$string =~ s / [';\\ ]// g ; # remove characters that can cause i3-msg to crash
18
18
my $uriValidator = new Data::Validate::URI();
19
19
my $BLOCK_BUTTON = $ENV {BLOCK_BUTTON } || 0;
20
- my $PLAYING_COLOR = " red" ;
21
- my $NOT_PLAYING_COLOR = " white" ;
20
+ my $PLAYING_COLOR = $ENV { PLAYING_COLOR } || " red" ;
21
+ my $NOT_PLAYING_COLOR = $ENV { PLAYING_COLOR } || " white" ;
22
22
my $USER = $ENV {USER };
23
23
my $i3cmd = " " ;
24
24
my $i3cmdexitstatus = 0;
You can’t perform that action at this time.
0 commit comments